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 181b57e
Browse filesBrowse the repository at this point in the historyBrowse files
Meter v1 projection history bytes in Core's canonical unit
Server #812 (#770) makes PHP's Waterline v1 projection count history bytes
as Core's HistoryBudget::sizeOfEvent does: the event type's bytes plus its
payload encoded with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE, the
unit DW_V2_LIMIT_HISTORY_TRANSACTION_BYTES limits everywhere else. Native,
like published PHP through 2.11.5, counted each whole event's JSON with its
id, sequence and time and escaped Unicode.
Native now uses the canonical unit for the byte limit and for the stored
summary's history_size_bytes. #812's LegacyV1Projection::normalize, run on
the published 2.11.5 image's Core, counts the bare test source's two events
as 1280 and 402 bytes (1682 in all, where the old unit gave 1870); native
matches.
Hold until the shared fixture reference moves to a Server release carrying
#812: the waterline-import fixture records history_size_bytes from the
published reference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
// PHP 2.11.1: LegacyV1Projection::normalize('src-1', bare source, 'ns-1')
1370
-
// printed these event encodings (json_encode, JSON_UNESCAPED_SLASHES).
1366
+
// printed these event encodings (json_encode, JSON_UNESCAPED_SLASHES),
1367
+
// which fix the events' ids and payloads.
1371
1368
let source = super::super::php_value::decode(br#"{"operator_id":"v1:4501","engine_source":"v1","class":"App\\Workflows\\Legacy\\Bare","status":"completed"}"#)
0 commit comments