Remove unreachable/invalid commits related entries from activity feed
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
Do not list in the profile activity feed (or delete the activity entries) for the following:
- commits that are unreachable or dangling
- commits that have invalid hashes (ie: the one where https://gitlab.com/\<username>/<project>/-/commit/<commit hash> displays a 404 Git Resource Not Found)
note : this proposal may be extended to any object (blob, tree, branch, etc) that is unreachable or with invalid hash.
note 2: in case dangling objects may have some uses, we can just consider the ones with invalid hashes.
Steps to reproduce
- create repo
- make some commits and push
- introduce a dangling commit and force push
- run housekeeping and Prune Unreachable Objects
- make sure the commit hash return a 404 (using https://gitlab.com/\<username>/<project>/-/commit/<commit hash>)
- go to the profile and still see the entry related to the commit with a now invalid hash
@gitlab-bot label user profile
Edited by 🤖 GitLab Bot 🤖