Admin: allow editing badges and creating new badges from existing rules
Mantenedores costumam responder em até 6 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- go, react, typescript
- Domínio
- backend, frontend, full-stack
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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).
- Linguagem predominante
- Go
- Estrelas
- 15.7k
- Forks
- 1.4k
- Merge médio
- 9d 6h
- PRs com merge (30d)
- 8
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de apache/answer
-
Hardening: cap the invite_user list size in UpdateQuestionInviteUser to bound notification fan-outTalvez já em andamento @TastyHeadphones assumiu há 47 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
apache/answer#1617 · 1 comentário ·
Mantenedores costumam responder em até 6 dias
-
Admin AI settings silently reset the assistant prompt, which cannot be edited in the UITalvez já em andamento @Andy-Sverdlov-LucaNet assumiu há 63 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 6 dias
-
🌐 Contribute a translationAberta
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 75/100
apache/answer#158 · 16 comentários ·
Mantenedores costumam responder em até 6 dias
-
Server-rendered <time datetime> and JSON-LD dates ignore the site time zone (server-local wall clock labeled as UTC)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 78/100
apache/answer#1669 · 1 comentário ·
Mantenedores costumam responder em até 6 dias
-
Searching user:<username> returns the wrong posts when the username starts with "me"Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 45/100
Mantenedores costumam responder em até 6 dias
Todas as issues de apache/answer
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
bazel-contrib/rules_go#4784 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Уязвимые компоненты в GoAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
POSIdev-community/aictl#40 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
nebari-dev/nebari-infrastructure-core#774 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
oracle/terraform-provider-oci#2662 ·