Skip to content
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

Merged
merged 14 commits into from
Jan 10, 2025

Conversation

chrstinalin
Copy link
Contributor

@chrstinalin chrstinalin commented Jan 6, 2025

Fixes: mozilla/addons#14809

Description

Adds CINDER_APPEAL_ESCALATION to distinguish appeal escalations.

Checklist

  • Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.

@chrstinalin chrstinalin requested review from a team and eviljeff and removed request for a team January 6, 2025 21:03
Copy link
Member

@eviljeff eviljeff left a 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.

@chrstinalin chrstinalin marked this pull request as draft January 8, 2025 14:40
@chrstinalin chrstinalin marked this pull request as ready for review January 9, 2025 14:12
@chrstinalin chrstinalin requested a review from eviljeff January 9, 2025 14:12
Copy link
Member

@eviljeff eviljeff left a 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)

Comment on lines 518 to 521
'dsa-appeals-review'
if appeal
else 'dsa-cinder-forwarded-review'
'dsa-cinder-forwarded-review'
if forwarded
else 'dsa-appeals-review'
if appeal
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

@chrstinalin chrstinalin requested a review from eviljeff January 9, 2025 19:09
Copy link
Member

@eviljeff eviljeff left a 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

Comment on lines 518 to 521
'dsa-appeals-review'
if appeal
else 'dsa-cinder-forwarded-review'
'dsa-cinder-forwarded-review'
if forwarded
else 'dsa-appeals-review'
if appeal
Copy link
Member

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.

Comment on lines +227 to +228
NeedsHumanReview.REASONS.CINDER_ESCALATION,
NeedsHumanReview.REASONS.CINDER_APPEAL_ESCALATION,
Copy link
Member

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.

@chrstinalin chrstinalin requested a review from eviljeff January 10, 2025 15:52
Comment on lines 64 to 67
return UserProfile.objects.get(pk=settings.TASK_USER_ID)
try:
return UserProfile.objects.get(pk=settings.TASK_USER_ID)
except UserProfile.DoesNotExist:
return None
Copy link
Member

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)

@chrstinalin chrstinalin requested a review from eviljeff January 10, 2025 16:41
@chrstinalin chrstinalin merged commit 88f7b6e into mozilla:master Jan 10, 2025
49 checks passed
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]: Escalated appeals should have a better wording in version history
2 participants