Restrict identity overrides to a single multivariate variant

Abierto
#8,597 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
7.1k
Forks
603
Merge medio
3 d 8 h
PR fusionados (30 d)
102

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Flagsmith/flagsmith

Todos los issues de Flagsmith/flagsmith

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.