Page MenuHomePhabricator

API endpoints for suppressing an edit
Closed, ResolvedPublic

Description

Suppress an edit (like Special:RevisionDelete in MediaWiki)

  • PATCH /api/tools/{tool_name}/revisions/{id}/hide/
  • PATCH /api/tools/{tool_name}/revisions/{id}/reveal/

When a revision is hidden:

  • edit history should show that something is there, but not the backing data
  • users should not be able to see the details of the edit
    • unless they have the oversighter or admin roles
  • diffs should not show the hidden revision
    • unless the user has the oversighter or admin roles
  • the most recent revision cannot be hidden

Event Timeline

Change 697884 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] api: Add endpoints for suppressing a toolinfo edit

https://gerrit.wikimedia.org/r/697884

Change 697885 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] ui: Handle suppressed edits in toolinfo history

https://gerrit.wikimedia.org/r/697885

Change 698077 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] api: enforce suppression when creating diffs

https://gerrit.wikimedia.org/r/698077

Change 697884 merged by jenkins-bot:

[wikimedia/toolhub@main] api: Add endpoints for suppressing a toolinfo edit

https://gerrit.wikimedia.org/r/697884

Change 697885 merged by jenkins-bot:

[wikimedia/toolhub@main] ui: Handle suppressed edits in toolinfo history

https://gerrit.wikimedia.org/r/697885

Change 698077 merged by jenkins-bot:

[wikimedia/toolhub@main] api: enforce suppression when creating diffs

https://gerrit.wikimedia.org/r/698077

Change 698268 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] api: Add missing unit tests for hide/reveal

https://gerrit.wikimedia.org/r/698268

Change 698268 merged by jenkins-bot:

[wikimedia/toolhub@main] api: Add missing unit tests for hide/reveal

https://gerrit.wikimedia.org/r/698268