You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d65bb0c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(usage): state the window as observed extrema, and prove the tests
Three review findings, all correct.
The notice said totals cover usage 'from start to end' and that older
entries exceed the read limit. Both claims overstate what the data
supports, and they overstate it in exactly the way this PR exists to
stop: usage.jsonl is appended on request completion while rows carry the
request start time, so retained rows can have gaps and the dropped
prefix can contain requests whose start times fall inside the displayed
interval. The wording now describes the bounds as what they are — the
range of request start times among loaded rows — in all eight locales.
The filter-invariance test was vacuous. A 256-byte tail retained a
single row, so the surface and range filters discarded nothing and the
comparisons held trivially; on unmodified dev every compared field was
undefined, which also compared equal. It now builds its own fixture
where the retained set is 3 rows that the filters cut to 2 and then 1,
asserts exact independently computed bounds, and asserts the fields are
numeric. The cache test now asserts the second request is a cache hit.
Presence-checking the bounds prevented an omitted field from rendering
'Invalid Date' but not an out-of-range one, and the reader preserves
whatever a hand-edited row carries. Both bounds now have to round-trip
through Date before the detailed wording is used, with a rendered test
covering the unrenderable case.
"usage.historyTruncated": "Die Summen beziehen sich nur auf den verfügbaren Verlauf, da ältere Nutzungsdaten nicht geladen wurden.",
740
-
"usage.historyTruncatedWindow": "Die Summen umfassen nur die von {start} bis {end} geladene Nutzung. Ältere Einträge überschreiten das Leselimit, daher kann jeder gewählte Zeitraum unvollständig sein.",
740
+
"usage.historyTruncatedWindow": "Die geladenen Zeilen haben Anfragestartzeiten zwischen {start} und {end}. Frühere Dateieinträge wurden durch das Leselimit ausgelassen, daher kann jeder gewählte Zeitraum unvollständig sein.",
Copy file name to clipboardExpand all lines: gui/src/i18n/en.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -768,7 +768,7 @@ export const en = {
768
768
"usage.range.all": "All",
769
769
"usage.range.available": "Available history",
770
770
"usage.historyTruncated": "Totals cover available history only because older usage was not loaded.",
771
-
"usage.historyTruncatedWindow": "Totals cover only the usage loaded from {start} to {end}. Older entries exceed the read limit, so any selected range may be incomplete.",
771
+
"usage.historyTruncatedWindow": "Loaded rows have request start times ranging from {start} to {end}. Earlier file entries were omitted by the read limit, so any selected range may be incomplete.",
"usage.historyTruncated": "Итоги охватывают только доступную историю, поскольку старые данные не загружены.",
761
-
"usage.historyTruncatedWindow": "Итоги охватывают только использование, загруженное с {start} по {end}. Более старые записи превышают лимит чтения, поэтому выбранный период может быть неполным.",
761
+
"usage.historyTruncatedWindow": "У загруженных записей время начала запроса находится в диапазоне от {start} до {end}. Более ранние записи файла пропущены из-за лимита чтения, поэтому выбранный период может быть неполным.",
"usage.historyTruncated": "Toplamlar yalnızca mevcut geçmişi kapsar.",
768
-
"usage.historyTruncatedWindow": "Toplamlar yalnızca {start} - {end} aralığında yüklenen kullanımı kapsar. Daha eski kayıtlar okuma sınırını aştığı için seçilen aralık eksik olabilir.",
768
+
"usage.historyTruncatedWindow": "Yüklenen satırların istek başlangıç zamanları {start} ile {end} arasındadır. Dosyanın önceki kayıtları okuma sınırı nedeniyle atlandı, bu yüzden seçilen aralık eksik olabilir.",
0 commit comments