I think I accidentally gave a repo -1 stars... #2376
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#2376
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Comment
I tried unstarring a repository, but it didn't get through, so I refreshed and tried again, until at one point I refreshed and saw that the repo now has -1 stars.
When I look at who has starred the repo it still shows 1 person. Surely Codeberg, or maybe even Forgejo itself, has automations that automatically fix the count, right...?
Still felt like I should mention it though.
My Starred repositories also says -2 now..
@mfenniak: Do you want to look into this by chance? Anything we could provide for debugging here?
I don't think there's much value in digging through logs to try to find a root cause. These fields weren't factors in my deadlock work because it was focused on making sure everything in the path of a PR merge was safe. The
num_starsstat on the user and repo are among many fields that weren't addressed.They should either go through a conversion into an async stat (like forgejo/forgejo#9916) if they're used in sorting and need to remain in a database table, or into a cached stat (like forgejo/forgejo#9927) otherwise.
I'm juggling quite a few projects at the moment and don't have space to do more work like this in the short-term, but I'll keep it on my radar for when some of those other efforts are complete.