Time arithmetic that crosses midnight returns null instead of wrapping
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- backend
Direzione di ricerca
Start by reproducing the three rows of the table in the issue against cql-execution's test-server build, since the payload does not name the source file. Locate where Time addition and subtraction are implemented and find why they return null instead of wrapping past midnight. Done when @T23:30:00 + 1 hour, @T23:30:00 + 30 minutes and @T00:30:00 - 1 hour return the expected wrapped Time values, with a test covering the midnight crossing.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Add (2.0):
As Time is cyclic, the result of overflowing the time value will be wrapped around the beginning of the day, so that adding 1 hour to @T23:30:00 will result in @T00:30:00 of the previous day, which is consistent with the behavior of DateTime values
(The 2.0 text says "of the previous day". It presumably means the following day. That's a typo in the spec and doesn't change the expected Time.) This sentence is new in 2.0. 1.5.3 doesn't say what happens.
| Expression | cql-execution | Spec (2.0) | Java engine 5.8.0 |
|---|---|---|---|
@T23:30:00 + 1 hour |
null |
@T00:30:00 |
@T00:30:00 |
@T23:30:00 + 30 minutes |
null |
@T00:00:00 |
|
@T00:30:00 - 1 hour |
null |
@T23:30:00 |
@T23:30:00 |
Environment
cql-execution master e8096c6, through test-server (the build has two unrelated Quantity modulo commits on top). The Java engine column is HAPI FHIR 9.0.0 with clinical-reasoning 4.17.0, through $cql.
- Lingua principale
- JavaScript
- Stelle
- 86
- Fork
- 40
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cqframework/cql-execution
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
cqframework/cql-execution#410 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
cqframework/cql-execution#407 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
cqframework/cql-execution#406 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
cqframework/cql-execution#414 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
cqframework/cql-execution#413 ·
Tutte le issue di cqframework/cql-execution
Issue simili
-
Mend: dependency security vulnerability
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ManageIQ/manageiq-ui-service#2259 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
electerious/Ackee#411 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[bug] 提瓦特记事本原石检测框宽度较窄Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
babalae/bettergi-scripts-list#3905 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 87/100
dedicatedcode/reitti#1445 ·
I maintainer di solito rispondono entro 1 giorno