Release v0.1.2: drop device identity, incremental scan, timezone - #4
Merged
Conversation
- Updated LoadEntriesFromPaths function to accept a file filter parameter for selective file processing. - Modified Provider struct to include a file filter and added WithFileFilter method for configuration. - Adjusted scanning logic to skip unchanged files based on their stat snapshots. - Added tests to verify the behavior of file filtering and unchanged file handling.
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.
What
Cuts CLI v0.1.2.
Device identity removed
installation_idno longer exists. Event identity is the content hash alreadycarried in each event, so scoping dedupe to a device demoted a globally unique
id to unique-per-device — the same event re-inserted once per device identity
and double-counted its tokens. The server now dedupes on (user, event id);
device name/platform/version remain as display metadata only.
This also removes the generated
~/.tokitoki/installation_idfile and itscrypto/rand/encoding/hexmachinery from the store.Incremental scan
scanned_filesrecords each source file's size and mtime so unchanged files areskipped instead of reparsed on every run. Existing databases pick the table up
automatically on open.
Timezone
Uploads carry the machine's IANA zone so per-user day boundaries are correct
without the server guessing.
Verification
go vet ./...cleango test -race ./...all pass(user, event id) groups, per-day counts match the local queue exactly