-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Add badge capabilities to users #20607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't get it, whats the use case for this? |
@noerw for community instances, where they may wish to "award" some badge for certain situations. |
Co-authored-by: silverwind <[email protected]>
Sorry to be that guy, but this feels very feature-creepy to me. Currently this PR is rather slim LoC-wise, but until it's a working feature (configure badges via UI or config file, updating badges via cron task or adding hooks into every other route), I'd estimate some extra 500LoC, lower bound. |
Badges can be useful also in private instances to motivate developers etc |
Developers do meaningful work when they are intrinsically motivated, not by some made up metric or status icon. But what do I know.
Doing hundreds of API calls to check if a badge should be applied seems more than wasteful to me. I'll shut up, seems like I'm in the minority here |
It's probably not the best way to reward developers, but I see no problem in at least supporting it on a invisible api- or even database-only level. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wonder how to add badge?
Co-authored-by: zeripath <[email protected]>
Co-authored-by: zeripath <[email protected]>
Co-authored-by: silverwind <[email protected]>
Co-authored-by: silverwind <[email protected]>
Could you put a screenshot? |
updated with a screenshot |
Would be nice to have followup PR to add API that would be accessible only for admin to define badges and add user badges |
Is this released? I haven't found it on the release notes |
@bauermarkus yup, it's in 1.18, however it's just the absolute base code needed to present badges stored in the DB to show on user's profiles. I have a followup PR where you can manage badges with the API. |
Similar to how github profiles have badges/achievements, this adds the capabilities to Gitea to be able to utilize that in the future