insight: valid two-year ranges fail when they span a leap day
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 74/100
Línea de trabajo
Empieza con la prueba existente de determineTimeRange y la implementación de ListCompletedDeployments en insightstore; el issue proporciona un par reproducible de límites en segundos Unix e indica que basta con un almacén de archivos simulado vacío. Comprueba cómo se aplica el límite de 730 días a los rangos de calendario inclusivos. Se habrá terminado cuando ambos gráficos de Insights acepten el rango indicado que abarca un día bisiesto y se sigan rechazando las solicitudes que superen dos años naturales.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened
The Last 2 years filter in Insights can fail to load the deployment frequency and change failure rate charts. ListCompletedDeployments returns too large duration because the backend caps requests at 730 days, while the UI calculates the range using calendar years.
What you expected to happen
Both charts should load for valid two-year calendar ranges, including ranges that span a leap day. Requests beyond the two-year calendar limit should still be rejected.
How to reproduce it
- Use the clock from the existing
determineTimeRangetest (2024-06-15T12:00:00Z) with Daily and Last 2 years. The UI generates June 16, 2022 through June 15, 2024, inclusive. - In an
insightstoreunit test, callListCompletedDeploymentswith Unix-second bounds1655337600and1718495999. An empty fake file store is sufficient. - The call returns
too large duration.
Environment
pipedversion N/A, reproduced in a unit testcontrol-planeversion source checkout2080402c2- Others Go 1.26.8
- Lenguaje dominante
- Go
- Estrellas
- 1.4k
- Forks
- 403
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 40
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pipe-cd/pipecd
-
pipedv1 Terraform plugin fails to parse plans that invoke actionsPosiblemente ocupada @abhiraj75 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Add a community meetings calendar to the websitePosiblemente ocupada @Dhirenderchoudhary la tomó hace 8 días. Abiertoarea/docs community good first issue
Dificultad 2/5 Medio día Aptitud para principiantes 65/100
pipe-cd/pipecd#7648 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
plugin/waitapproval: approvers list is unenforced, allowing approvals from unauthorized usersAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
pipe-cd/pipecd#7643 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
pipedv1: stopSignal handler panics on closed channel upon concurrent or duplicate signal callsQuizá libre de nuevo @darshpatel1052 la tomó hace 11 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pipe-cd/pipecd#7642 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
pipedv1: deployment remains stuck in PENDING when deploy source preparation fails in plannerPosiblemente ocupada @vikash7485 la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
pipe-cd/pipecd#7641 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de pipe-cd/pipecd
Issues similares
-
hive
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
/v1/chat/completions logprobs leave out top_logprobs when none are requestedPosiblemente ocupada @Shizoqua la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
service stage:spec
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[BUG] 172.15.0.0/16 rejected as "not a private LAN address", causing "Pairing port not found"Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
bug(terraform): a `kubernetes_manifest` the scan can't fully read is dropped and nothing says soPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día