Show only active users on Starrers page of a project
What does this MR do and why?
On the Starrers page of a project (e.g. https://gitlab.com/gitlab-org/gitlab/-/starrers), all starring users are shown - even blocked or other non-active users. With this MR, only active users are shown on the Starrers page of a project.
Related issue: Do not count stars of blocked users (!100023 - merged)
/cc @bufferoverflow
Screenshots or screen recordings
Before MR | After MR |
---|---|
How to set up and validate locally
- Star a project as a user (http://localhost:3000/twitter/Typeahead.Js):
user = User.find(17)
project = Project.find(7)
user.toggle_star(project)
- Navigate to the Starrers page of the project (http://localhost:3000/twitter/Typeahead.Js/-/starrers) and verify that the user is shown.
- Block the user:
user.block!
- Navigate to the Starrers page of the project and verify that the user is NOT shown.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.