[Task]: Allow for different enforcement actions based on version status

Open
#16,520 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
backend

Research direction

The issue does not name implementation files or tests. Start by tracing how reviewer policy decisions select enforcement actions for pending and public versions, then identify where version status is available in that flow. Done means one decision can trigger different actions for each version status, including multiple actions where needed.

Written by the indexing model from the issue text.

Description

Description

With changes we made earlier this year, e.g. to retroactive reviews, actioning a public version would be different from actioning pending versions for many policies.

As an example, a reviewer selecting policy violation X might result in:

  • The pending versions being rejected immediately.
  • The public versions being rejected with a delay.

The distinction for public vs pending versions for actions is needed to accommodate appropriate enforcement, balancing safety and developer friction and meeting requirements from initiatives like the ones mentioned above.

This feature is needed in order to enable the policy selections-only work in the reviewer tools, which in turn was made a dependency on re-enabling content-review.

Acceptance Criteria
  • Enforcement actions take into account versions status and one decision can take different and multiple actions depending on the version status.

┆Issue is synchronized with this Jira Task

Dominant language
Makefile
Stars
135
Forks
52
Avg merge
6d 18h
Merged PRs (30d)
7

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/addons

All issues in mozilla/addons

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.