chore: align the feature flag list with the notification settings it reports
Maintainer antworten meist innerhalb von 1 Tag
@Wikid82 arbeitet bereits daran.
Seit 03.12.2026.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 70/100
Rechercherichtung
Read backend/internal/api/handlers/feature_flags_handler.go and backend/internal/services/notification_service.go, then inspect backend/internal/services/notification_feature_flags.go and the existing handler tests. Compare the endpoint's notification flag keys and defaults with those used by dispatch. Done when the endpoint reports matching defaults, omits unread keys, and a test checks the defaults agree.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What
GET /api/v1/feature-flags reports values for notification settings that differ from what notification sending uses, and lists two keys that nothing reads.
backend/internal/api/handlers/feature_flags_handler.go:36-60listsfeature.notifications.service.gotify.enabled,...webhook.enabledand...telegram.enabledwith a default offalse. When no stored setting exists,NotificationService.isDispatchEnabled(backend/internal/services/notification_service.go,getFeatureFlagValue(..., true)) treats the same keys astrueand sends. The endpoint therefore reports these provider types as off while Charon sends to them.feature.notifications.service.slack/pushover/ntfy/webpush.enabledare read byisDispatchEnabledbut not listed by the endpoint.feature.notifications.engine.notify_v1.enabledandfeature.notifications.service.discord.enabledare listed, but no code reads them (FlagNotifyEngineEnabledandFlagDiscordServiceEnabledinbackend/internal/services/notification_feature_flags.gohave no reader).
Severity
Low. No user-facing page reads these keys; scripts reading the endpoint get values that do not match sending.
Suggested approach
Derive the notification entries of defaultFlags / defaultFlagValues from one table shared with isDispatchEnabled (key + default), drop the two keys nothing reads, and add a test that the endpoint's defaults equal the dispatch defaults.
Found while planning #2132.
- Vorherrschende Sprache
- Go
- Sterne
- 17
- Forks
- 2
- Ø Merge
- 1 Std. 42 Min.
- Gemergte PRs (30 T.)
- 173
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Wikid82/Charon
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Docs promise signed SLSA provenance that the image build does not produceEvtl. vergeben @Wikid82 hat das heute übernommen. Offenarchitecture documentation security ui
Wikid82/Charon#2152 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Orthrus agent images are not signed or SBOM-attestedEvtl. vergeben @Wikid82 hat das heute übernommen. Offensecurity ssl testing
Wikid82/Charon#2151 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 daysEvtl. vergeben @Wikid82 hat das heute übernommen. Offencritical testing
Wikid82/Charon#2150 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Minor follow-ups from the country-allow-list local-network reviewEvtl. vergeben @Wikid82 hat das heute übernommen. Offenarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
agent:ready
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
turbot/flowpipe#1162 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costsEvtl. vergeben @weirong-ui hat das heute übernommen. Offenkind/bug needs-priority needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
kubernetes-sigs/karpenter#3728 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
compaction: redundant exclusion checks after inRangeEvtl. vergeben @moodbased hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag