time_window does not read ISO datetimes in start and end

Abierto
#1,156 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

Start by locating the rules-engine parsing for time_window and the flag/experiment save validation path, then compare how start/end, start_time/end_time, and date fields are read. Add or update tests around ISO datetime windows, including the now-1h to now+1h case. Done means either start/end interpret ISO datetimes as an absolute window, or saving rejects unsupported values with a message listing accepted forms.

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

Descripción

enhancement post-launch

A time_window condition whose start/end are ISO datetimes is not read by the rules engine. Measured on 0.28.2 with flag targeting: a window from now-1h to now+1h does not match. Experiment targeting matches it today, but #1145 makes experiments use the same implementation as flags, so after #1145 neither matches.

The engine reads HH:MM times (start/end in the dashboard shape, start_time/end_time natively), days, and start_date/end_date.

Expected: one of these:

  • start/end accept ISO datetimes and mean an absolute window;
  • or the API refuses a time_window value it cannot read when the flag or experiment is saved, with a message naming the accepted forms.

Not needed for launch: after #1145 such a window matches nobody, which is the safe direction; this issue makes it usable.

🤖 Generated with Claude Code

Lenguaje dominante
Python
Estrellas
0
Forks
4
Merge medio
5 h 19 min
PR fusionados (30 d)
503

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 Controlvar/controlvar

Todos los issues de Controlvar/controlvar

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.