UI: "View / Edit as JSON" mode for rapid visibility of complex Features and Segments

Aperta
#7,074 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
react
Ambito
frontend

Direzione di ricerca

Non sono indicati file, test o punti di ingresso. Inizia individuando la pagina dei dettagli della feature nella dashboard e determina come vengono caricati e salvati i dati di override della feature e del segmento. Il lavoro è completato quando la pagina può passare dalla vista del modulo esistente a una vista JSON leggibile e il comportamento richiesto per la modifica e il salvataggio è definito e testato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Is your feature request related to a problem?

When a feature has multiple Segment Overrides (e.g., targeting by Client Type like Android/iOS, Internal Users, or specific User IDs), understanding the full evaluation logic from the dashboard is very tedious.

Currently, our developers have to manually scroll and open each Segment Override one by one just to see its conditions and values. There is no way to get a single, holistic view of the feature's entire state. When you are trying to quickly debug why a specific user_id is getting a certain value, digging through UI accordions is slow and frustrating.

Describe the solution you'd like.

We would love a "UI View / JSON View" toggle directly on the feature detail page.

Switching to "JSON View" would replace the standard UI forms with a syntax-highlighted code editor displaying the feature and all of its segments in a single, readable JSON payload. Ideally, this JSON view would also be directly editable, allowing developers to make quick tweaks (like updating a list of User IDs) and hitting "Save" without touching the visual UI.

Example of the desired JSON representation:

{
  "feature": {
    "name": "new_checkout_flow",
    "description": "Revamped checkout experience",
    "default_enabled": false,
    "default_value": "standard"
  },
  "segment_overrides": [
    {
      "segment_name": "internal_qa_team",
      "conditions": [
        { "property": "user_id", "operator": "IN", "value": "1001, 1002, 1055" }
      ],
      "override_enabled": true,
      "override_value": "debug_checkout"
    },
    {
      "segment_name": "mobile_beta_users",
      "conditions": [
        { "property": "client_type", "operator": "EQUALS", "value": "Android" },
        { "property": "app_version", "operator": "GREATER_THAN", "value": "2.1.0" }
      ],
      "override_enabled": true,
      "override_value": "v2_mobile_checkout"
    }
  ]
}
Describe alternatives you've considered
  • Clicking through the UI: The current method. It is incredibly time-consuming to open 5+ segment overrides just to audit the current targeting logic.

  • Using Terraform/API to read state: As mentioned in other feedback, we use Terraform. However, forcing developers to pull down state via CLI or write API queries just to quickly read how a feature is configured completely defeats the purpose of having a fast, accessible Flagsmith Dashboard. We want the agility of the UI, but with the readability of code.

Additional context

Giving developers a raw JSON view drastically reduces cognitive load. It allows them to use standard browser search (Ctrl+F / Cmd+F) to instantly find if a specific rule or ID exists within a massive feature configuration, saving a significant amount of time during debugging and incident response.

Lingua principale
Python
Stelle
9.9k
Fork
658
Merge medio
1g 15h
PR unite (30g)
168

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Flagsmith/flagsmith

Tutte le issue di Flagsmith/flagsmith

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.