fix: read JSON without schedules the same way everywhere (audit B5) #62
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!62
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/audit-b5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audit B5. JSON compiled before 1.4.0 has no
schedules. Measured on a stored 1.3.0-style result: renderer outputs fell back on the old total (2h 31m),diffRecipesread 0 (a fake '150 -> 0' delta), the Gantt is empty, the CLI commands always compile from source so never see it.Decision (maintainer): unified fallback + document.
scheduleTimes(compiled, mode?)= the timeline's total/idle, else the deprecatedmetrics.totalTime/idleTime, else 0. The single place the fallback lives, dropped with the deprecated fields in 2.0New tests fail on the previous code (diff of stored JSON). ci and conformance 98/98 pass.