Repository navigation
Conversation
a-d-j-i
commented
Oct 28, 2026
Collaborator
- SCHEMA adds telemetryBatches + batchId_timestamp compound index on verificationResults
- claimUnclaimed dedups unclaimed rows by eventKey (SHA-256 prefix of identity tuple), stamps batchId back atomically
- markSent / bumpAttempt take id arrays for atomic multi-batch state flips
- sentAt field encodes waiting vs sent; sentAt index naturally scans only sent for purge
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
from
October 29, 2026 15:45
d2994bf to
d266224
Compare
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
4 times, most recently
from
November 3, 2026 14:46
30ea22c to
9a5e841
Compare
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
2 times, most recently
from
November 5, 2026 18:08
dfc3a9c to
2b12b6f
Compare
a-d-j-i
requested review from
agustingianni,
emiliorizzo,
friccobaldi and
juli
November 5, 2026 18:09
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
from
November 16, 2026 15:10
2b12b6f to
d72f469
Compare
✅ Deploy Preview for dappfence-templates canceled.
|
Base automatically changed from
refactor/verification-results-per-row
to
main
November 16, 2026 16:59
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
3 times, most recently
from
November 16, 2026 22:18
24b8b7b to
6250484
Compare
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
from
November 27, 2026 16:35
6250484 to
ccc9d98
Compare
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
from
December 4, 2026 17:23
ccc9d98 to
c7a9882
Compare
- SCHEMA adds telemetryBatches + batchId_timestamp compound index on verificationResults - claimUnclaimed dedups unclaimed rows by eventKey (SHA-256 prefix of identity tuple), stamps batchId back atomically - markSent / bumpAttempt take id arrays for atomic multi-batch state flips - sentAt field encodes waiting vs sent; sentAt index naturally scans only sent for purge
crypto.subtle.digest inside the readwrite tx let the browser auto-commit before the batch writes ran, so no batch was ever claimed. Replace the async SHA-256 prefix key with a sync JSON-identity string; drop the stored event.key since dedup only needs it in memory. Add withTransactionLifetime() so the in-memory mock reproduces real IDB's auto-commit, pinning the regression in a unit test.
Rename claimUnclaimed → createBatch; take a selectVerdicts callback so the caller owns sort, dedup, and size policy. Storage keeps atomicity, the unclaimed-row filter, and batchId stamping. Drop events[] from the batch row — verificationResults is the single source of truth; the executor joins by batchId at send time. Add VerdictRow typedef and getAll() on verification-results-store.
a-d-j-i
force-pushed
the
refactor/telemetry-batches-store
branch
from
December 4, 2026 18:00
c7a9882 to
60c9107
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.