-
Notifications
You must be signed in to change notification settings - Fork 538
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
Update Licenses available for add-on developers to choose from on AMO #22818
base: master
Are you sure you want to change the base?
Conversation
f51b50e
to
0ab26c2
Compare
# a new set of licenses. | ||
|
||
|
||
class Command(BaseCommand): |
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.
Would it be possible to simply stop importing licenses from prod? I'm not really sure why we have to do that in the first place and it very likely could be the case this is just some historical artifact. If we have the licenses we want now defined in a migration.. why not just use the migration to populate the local DB and remove the logic that would remove them.
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.
We must import the new licenses to prod in order to show them. We have to run this command to prod.
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.
Your migration will get run in prod once this PR is shipped... so I'm not sure why we need a command for it.
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.
The migration does not create new licenses. It changes the built-in values of anything already existing in the DB, which is consistent with what we have for the previous licenses.
560d912
to
eadc82f
Compare
Fixes: mozilla/addons/15092
Description
WIP - do not review this code yet.
Context
Testing
Checklist
#ISSUENUM
at the top of your PR to an existing open issue in the mozilla/addons repository.