Repository navigation
Conversation
Say that only prod auto-deploys in CI comments and audit notes
A journal recording was subtracted from every link in its own phase whatever project it named, and a recording that named no project at all was treated the same way. So a devlog with an unnamed timelapse cancelled Hackatime time on a link it had nothing to do with, and a recording of one project cancelled another project's time in the same phase. windowsForLink now takes only the recordings that name the link's project, whichever phase or week they were journalled in. A recording without a project is tracked through its journal entry and is not deducted from Hackatime. The ledger, the cache warmers and the contract checks all share that rule.
The overlap between a Lapse recording and a Hackatime link is now measured by Hackatime's own stats for each recording window, instead of by intersecting its spans locally. These columns hold that measurement. The span columns are left in place for the additive-migration rule and are no longer read or written.
…pse time out A Lapse recording of a sitting names the Hackatime project it was filmed under. Its Hackatime time is now measured by Hackatime itself: one stats request per merged recording window, clipped to the week the link counts, cached per window on hackatime_link.cachedOverlap. The local span intersection and the span cache are gone. Which recordings take Hackatime time out has changed: - Every recording that names a link's project takes its Hackatime time out of that link, whatever its entry is: a live devlog, a tracked entry, or a deleted one. - Only a live devlog also claims the sitting's hours in the journal. A recording on a tracked or deleted entry therefore removes Hackatime time without adding any, because tracked time has to be shown with a devlog. - A recording with no project, or another project's name, touches only its own entry. makerRecordings and recordingsByOwner are the one source for those recordings, and every total, trail, profile and admin report reads them. The sync warms the measurements in batches, and attaching a recording measures it straight away. The old span columns stay in place (additive migrations), and no longer read or written.
The sync batch read the week for every project and phase before checking whether any of its links had a recording to measure. It is now read on first use, once per batch, so a batch of links with nothing to measure costs no week lookups.
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.
Promotes `main` to `prod`.
Checks run on `main`: `tsc --noEmit`, `bun test src/lib` (779 pass), `verify-contracts` (all pass), biome and oxlint on changed files. `verify-store` (DB-backed) was not run.