-
Notifications
You must be signed in to change notification settings - Fork 14
✨ [#564] add command to import objecttypes from api #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #711 +/- ##
==========================================
+ Coverage 84.12% 84.62% +0.50%
==========================================
Files 134 138 +4
Lines 2576 2738 +162
Branches 208 215 +7
==========================================
+ Hits 2167 2317 +150
- Misses 362 373 +11
- Partials 47 48 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@alextreme is this what you had in mind in terms of releases for combining Objects+Objecttypes? I guess instead of 3.7.0 it would be a 4.0.0 release? Or do we want to release 3.7.0 where we both support the old situation + local objecttypes?
|
I would indeed make this a major version, in which we drop the old situation (external Objecttypes). How this should work for 3.7.0 is up for debate. Some options:
I don't have a preference, up to you @stevenbal to make the call |
|
I'm inclined to go for option 1, that minimizes the amount of code paths and it also gives an incentive for people to upgrade to 4.0 |
|
|
@alextreme should this only be a management command, or should it also be possible to run from the admin? Since I remember the discussion about devops not wanting to run commands? |
|
@Floris272 I also noticed |
I'd say give the option to do it either way, this django app ( https://github.com/Lcrs123/django-admin-commander ) looks interesting but the approach is up to you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Floris272 added a checklist item in the issue for running the command via the admin and marked it as nice to have, if we have time left we can implement that
Partially fixes #564
Changes
To make the migration easier i would suggest to first only merge this pr that adds the model and the command and add everything from objecttypes in the next pr/release.
The update path would be to update objects to 3.6.0 which will include the script which just needs to be run before updating to 4.0.0 which would include the whole refactor.