Restrict identity overrides to a single multivariate variant

Aperta
#8,597 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api, backend, databases

Direzione di ricerca

Locate FeatureStateSerializerBasic, WritableNestedFeatureStateSerializer, and EdgeIdentityFeatureStateSerializer, then trace validation when identity or identifier is set. Check how Core and DynamoDB store existing identity overrides and clarify the pending migration scope. Done means serializers accept no multivariate values or exactly one at 100%, with existing split states addressed if migration is in scope.

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

Descrizione

Identity overrides can store a multivariate split, e.g. 30/40, although an identity is only ever served one variant. The dashboard only writes a single variant at 100%, or none for the control value, but the API accepts any split. We need to bring the API validation in line with the dashboard behaviour.

Acceptance criteria
  • Every serialiser writing an identity override accepts either no multivariate values or exactly one at 100%:
    • Core: FeatureStateSerializerBasic and WritableNestedFeatureStateSerializer, when identity or identifier is set.
    • Edge: EdgeIdentityFeatureStateSerializer.
  • (pending scoping) Existing identity overrides storing a split, in Core and DynamoDB, are migrated to a legitimate state.
Lingua principale
Python
Stelle
7.1k
Fork
603
Merge medio
3g 8h
PR unite (30g)
102

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.