Admin: allow editing badges and creating new badges from existing rules
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go, react, typescript
- Ambito
- backend, frontend, full-stack
Direzione di ricerca
Read the existing Admin → Badges implementation and the backend badge data and rule handling described in the issue; inspect the related issue #1036 for the original scope. Map how badge fields and rule parameters reach the admin interface, then identify the decisions around custom text and existing users who meet new thresholds. Done means admins can edit badges and create badges from existing rules with parameters, with those decisions resolved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your enhancement request related to a problem? Please describe
Admin → Badges currently only lets an admin activate or deactivate a badge.
But each badge is already stored as data in the badge table: name,
description, icon, level, single/multiple award, and a rule (handler) with
parameters (param, e.g. {"amount":"25"}).
So a community can't, for example:
- Lower "Good Answer" from 25 to 15 votes for a small site
- Change a badge's icon or level
- Add an "Epic Answer" badge at 100 votes, even though the existing
ReachAnswerVoterule already supports it
Today these changes require editing the database directly.
Describe the solution you'd like
Extend Admin → Badges so an admin can:
- Edit a badge's name, description, icon, level, and rule parameters
- Create a new badge by choosing one of the existing rules
(ReachAnswerVote,ReachQuestionVote,ReachAnswerAcceptedAmount, ...)
and setting its parameters
This doesn't need any new award rules. It only exposes what the backend
already stores.
Points that may need deciding:
- Default badge names and descriptions are i18n keys
(badge.default_badges.*). Custom badges would need plain text, or a way
to add translations. - Badge rules only run on new events, so changing a threshold won't award
the badge to users who already qualify.
Describe alternatives you've considered
Editing the badge table directly works, but is error-prone and outside
the supported interface.
Related: #1036 (original badges feature, where admin "Badge management"
shipped as activate/deactivate only).
- Lingua principale
- Go
- Stelle
- 15.7k
- Fork
- 1.4k
- Merge medio
- 9g 6h
- PR unite (30g)
- 8
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/answer
-
Hardening: cap the invite_user list size in UpdateQuestionInviteUser to bound notification fan-outForse già presa @TastyHeadphones l’ha presa 47 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
apache/answer#1617 · 1 commento ·
I maintainer di solito rispondono entro 6 giorni
-
Admin AI settings silently reset the assistant prompt, which cannot be edited in the UIForse già presa @Andy-Sverdlov-LucaNet l’ha presa 63 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 6 giorni
-
🌐 Contribute a translationAperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
apache/answer#158 · 16 commenti ·
I maintainer di solito rispondono entro 6 giorni
-
Server-rendered <time datetime> and JSON-LD dates ignore the site time zone (server-local wall clock labeled as UTC)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
apache/answer#1669 · 1 commento ·
I maintainer di solito rispondono entro 6 giorni
-
Searching user:<username> returns the wrong posts when the username starts with "me"Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di apache/answer
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
bazel-contrib/rules_go#4784 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Уязвимые компоненты в GoAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
POSIdev-community/aictl#40 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nebari-dev/nebari-infrastructure-core#774 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
oracle/terraform-provider-oci#2662 ·