Admin: allow editing badges and creating new badges from existing rules
維護者通常 6 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 42/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- go, react, typescript
- 領域
- backend, frontend, full-stack
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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).
- 主要語言
- Go
- 星號
- 15.7k
- 分支
- 1.4k
- 平均合併
- 9 天 6 小時
- 30 天內合併 PR
- 8
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
apache/answer 的其他 Issue
-
Hardening: cap the invite_user list size in UpdateQuestionInviteUser to bound notification fan-out可能已有人在做 @TastyHeadphones 於 47 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 6 天內回覆
-
Admin AI settings silently reset the assistant prompt, which cannot be edited in the UI可能已有人在做 @Andy-Sverdlov-LucaNet 於 63 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 6 天內回覆
-
難度 1/5 1-3 小時 新手友好度 75/100
維護者通常 6 天內回覆
-
Server-rendered <time datetime> and JSON-LD dates ignore the site time zone (server-local wall clock labeled as UTC)可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 3/5 1-2 天 新手友好度 78/100
維護者通常 6 天內回覆
-
Searching user:<username> returns the wrong posts when the username starts with "me"可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 45/100
維護者通常 6 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
bazel-contrib/rules_go#4784 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
POSIdev-community/aictl#40 ·
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
nebari-dev/nebari-infrastructure-core#774 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
oracle/terraform-provider-oci#2662 ·