Admin: allow editing badges and creating new badges from existing rules
Los mantenedores suelen responder en 6 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- go, react, typescript
- Área
- backend, frontend, full-stack
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Go
- Estrellas
- 15.7k
- Forks
- 1.4k
- Merge medio
- 9 d 6 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/answer
-
Hardening: cap the invite_user list size in UpdateQuestionInviteUser to bound notification fan-outPosiblemente ocupada @TastyHeadphones la tomó hace 47 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/answer#1617 · 1 comentario ·
Los mantenedores suelen responder en 6 días
-
Admin AI settings silently reset the assistant prompt, which cannot be edited in the UIPosiblemente ocupada @Andy-Sverdlov-LucaNet la tomó hace 63 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 6 días
-
🌐 Contribute a translationAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 75/100
apache/answer#158 · 16 comentarios ·
Los mantenedores suelen responder en 6 días
-
Server-rendered <time datetime> and JSON-LD dates ignore the site time zone (server-local wall clock labeled as UTC)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 78/100
apache/answer#1669 · 1 comentario ·
Los mantenedores suelen responder en 6 días
-
Searching user:<username> returns the wrong posts when the username starts with "me"Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
Los mantenedores suelen responder en 6 días
Todos los issues de apache/answer
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
bazel-contrib/rules_go#4784 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Уязвимые компоненты в GoAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
POSIdev-community/aictl#40 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
nebari-dev/nebari-infrastructure-core#774 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
oracle/terraform-provider-oci#2662 ·