Skip to content

Always record Promoted Approval when approving add-on versions#24824

Merged
diox merged 2 commits intomozilla:masterfrom
diox:record-promoted-approval-for-non-human-review
May 5, 2026
Merged

Always record Promoted Approval when approving add-on versions#24824
diox merged 2 commits intomozilla:masterfrom
diox:record-promoted-approval-for-non-human-review

Conversation

@diox
Copy link
Copy Markdown
Member

@diox diox commented Apr 30, 2026

This allows the listed_pre_review and unlisted_pre_review flags to be flipped back and forth for promoted group without any negative consequences for the versions approved while they are off: they would still have their approval recorded, so they would still be considered approved for the promoted group if the flags are turned back on.

Fixes mozilla/addons#16165

This allows the listed_pre_review and unlisted_pre_review flags
to be flipped back and forth for promoted group without any
negative consequences for the versions approved while they are
off: they would still have their approval recorded, so they would
still be considered approved for the promoted group if the flags
are turned back on.
@diox diox requested a review from eviljeff May 4, 2026 10:04
Comment thread src/olympia/reviewers/utils.py
Comment thread src/olympia/reviewers/tests/test_utils.py
@diox diox merged commit 4149c80 into mozilla:master May 5, 2026
43 checks passed
# These addons shouldn't be be attempted for auto approval anyway,
# but double check that the cron job isn't trying to approve it.
assert not self.user.id == settings.TASK_USER_ID
if self.addon.promoted_groups(currently_approved=False):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I can see you've already merged this, but

Suggested change
if self.addon.promoted_groups(currently_approved=False):
if group:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Warning banner is shown for recommended add-ons if flipping listed_pre_review for the promoted group

2 participants