-
Notifications
You must be signed in to change notification settings - Fork 535
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
Change Wording of Escalated Appeals in Version History #22972
Change Wording of Escalated Appeals in Version History #22972
Conversation
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.
This isn't enough - that NHR reason is currently used for non-appeal escalations/forwards from Cinder too.
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 need to change VersionManager.get_due_date_reason_q_objects too (look for where CINDER_ESCALATION is referenced)
src/olympia/abuse/cinder.py
Outdated
'dsa-appeals-review' | ||
if appeal | ||
else 'dsa-cinder-forwarded-review' | ||
'dsa-cinder-forwarded-review' | ||
if forwarded | ||
else 'dsa-appeals-review' | ||
if appeal |
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.
mmm, was this change necessary?
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.
If CINDER_APPEAL_ESCALATION
is meant to behave virtually identical to CINDER_ESCALATION
(beyond the history), it would make sense for this waffle switch name to be the same, no? If it's the other way around, CINDER_APPEAL_ESCALATION
would have 'dsa-appeals-review' as the name instead.
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.
I can see the logic (and don't disagree), but one of reasons we have these series of waffles switches it the rollout is being phased, and reviewers handling appeals is a later phase than handling forwarded reports. So for now I we're going to have to stick with the inconsistency.
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.
r+wc - just revert the waffle switch logic and we're gtg
src/olympia/abuse/cinder.py
Outdated
'dsa-appeals-review' | ||
if appeal | ||
else 'dsa-cinder-forwarded-review' | ||
'dsa-cinder-forwarded-review' | ||
if forwarded | ||
else 'dsa-appeals-review' | ||
if appeal |
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.
I can see the logic (and don't disagree), but one of reasons we have these series of waffles switches it the rollout is being phased, and reviewers handling appeals is a later phase than handling forwarded reports. So for now I we're going to have to stick with the inconsistency.
NeedsHumanReview.REASONS.CINDER_ESCALATION, | ||
NeedsHumanReview.REASONS.CINDER_APPEAL_ESCALATION, |
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.
There could be a follow-up to break these out - so they can be filtered separately - but this is fine for now.
src/olympia/users/utils.py
Outdated
return UserProfile.objects.get(pk=settings.TASK_USER_ID) | ||
try: | ||
return UserProfile.objects.get(pk=settings.TASK_USER_ID) | ||
except UserProfile.DoesNotExist: | ||
return None |
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 don't want this change - if there's a test failing because the task user doesn't exist, just create a user profile with TASK_USER_ID
as the id in the test. (use user_factory
)
Fixes: mozilla/addons#14809
Description
Adds CINDER_APPEAL_ESCALATION to distinguish appeal escalations.
Checklist
#ISSUENUM
at the top of your PR to an existing open issue in the mozilla/addons repository.