Repository navigation
Anushka - PR Review Team Admin Dashboard – Remove Reviewer should hide reviewers, not delete them - #2461
Open
anushkaadwivedii wants to merge 1 commit into
Open
Anushka - PR Review Team Admin Dashboard – Remove Reviewer should hide reviewers, not delete them#2461anushkaadwivedii wants to merge 1 commit into
anushkaadwivedii wants to merge 1 commit into
Conversation
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Removing a reviewer currently permanently deletes a weekly grading document. This change hides the selected team's reviewer for the selected week while retaining their graded PRs, review counts, version history, and other weeks' records.
Implements task 45 in the PR Review Team Admin and Analytics Dashboard document (HGN task 1587).
Source: https://docs.google.com/document/d/11KglDgr_l3-8NdTLMGfu6YGmpGj-BSip_LD8IQbCtp8/edit
Original task
Related PRS (if any):
Main changes explained:
isRemoved,removedAt, andremovedByto the weekly grading model.accessPRTeamDashboardauthorization and authenticated requestor auditing.How to test:
/pr-grading-dashboardwithaccessPRTeamDashboardpermission.isRemoved: true, a removal timestamp, and the authenticated remover ID.Screenshots or videos of changes:
Before removal
Hidden after refresh
Previous week retained
Records and PRs retained
Dark-mode confirmation
Dark mode after refresh
Validation
git diff --checkpasses.Note:
Existing records need no migration: a missing removal flag is treated as visible. The API path and successful removal response stay compatible with the frontend. This change cannot recover documents already permanently deleted before deployment.