Skip to content

Conversation

@eviljeff
Copy link
Member

@eviljeff eviljeff commented Mar 16, 2017

fixes mozilla/addons#4074
After a lot of trial and error this is a minimal change that doesn't try to touch the circular logic used for status=AMO_NOMINATED add-ons. It possibly should but there are a surprising number of tests for existing code that start to break. (could be a follow-up)

return
addon = instance.addon
if (instance.nomination is None and
addon.status in amo.UNREVIEWED_ADDON_STATUSES and not
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this particular condition the cause of the problem? Since inherit_nomination() is called on post_save, it feels weird to keep that condition in there and manually call a different method to fix this issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into it, and the call from addons.models.watch_status, but taking it out only created test fails. The problem is, with updates, we don't want the version to inherit the nomination date of the original approval, or previous approved updates. I can't see how it ever worked with updates tbh.

If anything I'm tempted to remove the inherit_nomination calls from post_save and watch_status and only have it set in handle_upload

@eviljeff eviljeff merged commit 71dbbec into mozilla:master Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants