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

Make reviewer pending rejection input a datetime widget and allow changing it through an action #23001

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

diox
Copy link
Member

@diox diox commented Jan 20, 2025

Fixes mozilla/addons#14920

Description

This allows reviewers to change the pending rejection date of versions pending rejection through a widget where they can select the date and time.

Because the actions menu is already pretty large, the clear pending rejection date action is reused, with an option to change or clear ; to tie everything together and make the UI more consistent, the rejection action use the same widgets, making the date choice absolute rather than relative.

Screenshots

New reject multiple versions UI

Screenshot 2025-01-03 at 17-17-44 Ui-Addon-Install – Add-ons for Firefox

Modified Clear pending rejection action (now Change pending rejection) UI

Screenshot 2025-01-03 at 17-18-37 Ui-Addon-Install – Add-ons for Firefox

Testing

See tests. Non-exhaustive list of scenarios, after submitting an add-on and going to its review page:

  • Use the reject multiple versions action with immediate effect
  • Use the reject multiple versions action with a delay, then use the change pending rejection action to...
    • clear the delay
    • change the delay to a date in the future

Changing the delay (not clearing it) should send an email to the developer following copy that can be found as a comment in the issue.

Changing a delay should require the new date to be at least one extra day in the future compared to now. Changing the delay of multiple versions at once is possible, but the existing pending rejection date should all be the same.

methods=['post'],
permission_classes=[GroupPermission(amo.permissions.REVIEWS_ADMIN)],
)
def clear_pending_rejections(self, request, **kwargs):
Copy link
Member Author

Choose a reason for hiding this comment

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

Drive-by cleanup to reduce confusion - This API was already obsolete since 9f1e462

@diox diox force-pushed the change-pending-rejection branch from e99835a to dbcb1ee Compare January 20, 2025 13:43
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.

[Task]: Ability to Modify a Pending Rejection Date
1 participant