-
Notifications
You must be signed in to change notification settings - Fork 51
Harden sync #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Harden sync #99
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
db9da26
feat(koplugin): flush in-memory stats to DB before sync
tku137 34f45cb
fix(koplugin): use os.time() for last_open instead of summary.modified
tku137 70d5187
fix(server): validate last_open and filter invalid page stats on upload
tku137 6432746
fix(web): guard avgPerDay against division by zero
tku137 fca946b
fix(server): return 0 from getStartedReading when stats array is empty
tku137 eaf7742
fix(server): normalize stats payload to array before filtering
tku137 46fe715
fix(koplugin): set last_open to 0 in annotation path, statistics sync…
tku137 ad129ed
test(server): add empty-stats case for getStartedReading
tku137 25705ab
docs(server): typo in comment
tku137 9634b35
fix(server): derive deviceId from first valid stat entry with a strin…
tku137 ae90f63
fix(server): guard page stat filter against null/non-object entries
tku137 9b8da99
fix(server): consolidate page stat validation and add input hardening…
tku137 ee48853
fix(koplugin): log flush result and warn on insertDB failure
tku137 6d4a17d
fix: less typeof; nullish coalescence instead of non-null assertion
tku137 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.