Skip to content

Parse user id from notifications#116

Merged
j4r0u53k merged 3 commits into
mainfrom
parse-user-id-from-notifications
May 15, 2026
Merged

Parse user id from notifications#116
j4r0u53k merged 3 commits into
mainfrom
parse-user-id-from-notifications

Conversation

@j4r0u53k
Copy link
Copy Markdown
Collaborator

No description provided.

j4r0u53k added 2 commits May 14, 2026 17:33
The user_id (if present) will get recorder in dirtylog.
@j4r0u53k j4r0u53k requested a review from syyyr May 14, 2026 15:40
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 14, 2026

Code coverage report for 4a17aa0

Coverage difference

❌ Code coverage worsened.

Filename Stmts Miss Cover Missing
src/dirtylog.rs +23 0 +0.29%
src/getlog.rs +4 +4 -0.50% 74, 123, 124, 125, 127, 128, 147
src/sites.rs +4 0 +0.13%
TOTAL +31 +4 +0.19%

Overall coverage

Click to expand
Filename Stmts Miss Cover Missing
src/bin/hp.rs 55 55 0.00% 58-127
src/getlog.rs 685 98 85.69% 34-148, 263, 273-279, 324, 328-332
src/sync.rs 664 256 61.45% 61-62, 72, 80, 88, 97, 148, 150-151, 174, 179, 195, 238-244, 319-336, 343-345, 356-365, 440, 488-710, 772, 799, 806-829, 839, 844, 881-900, 904, 908-918, 927
src/alarm.rs 236 86 63.56% 28-38, 44-46, 49-50, 56-124, 140-142, 149-151, 156, 162, 166-174, 183, 224, 254
src/alarmlog.rs 64 64 0.00% 29-103
src/util.rs 298 59 80.20% 32, 59-60, 63-66, 68, 83-88, 100, 140-186, 200, 217, 239, 244-252, 256, 267, 274, 281, 308, 322, 460-465
src/cleanup.rs 63 35 44.44% 54-109
src/pushlog.rs 107 107 0.00% 21-164
src/tree.rs 421 421 0.00% 75-702
src/sites.rs 630 127 79.84% 165-197, 209-210, 230-262, 293-303, 381, 420-421, 429-430, 435-445, 515-521, 542, 568, 575-593, 616-618, 622, 626, 639-642, 648-650, 654, 669-680, 688, 694
src/lib.rs 100 30 70.00% 68-89, 116, 120, 124, 156, 164, 175-179, 195-203
src/dirtylog.rs 458 25 94.54% 73, 96-100, 107-108, 123, 132-134, 146-147, 153-157, 194-198, 206-207, 238, 308
TOTAL 3781 1363 63.95%

HTML reports

@j4r0u53k j4r0u53k force-pushed the parse-user-id-from-notifications branch from 1fd0fa4 to d674fb2 Compare May 14, 2026 18:27
The previous implementation used `Path::ends_with`, which checks for
full path components rather than string suffixes. This caused
`.log3` files to be misidentified as version 2 logs.

Switched to string-based suffix checking using `to_string_lossy()`
to ensure the correct reader is initialized.
@j4r0u53k j4r0u53k force-pushed the parse-user-id-from-notifications branch from d674fb2 to 4a17aa0 Compare May 14, 2026 18:41
@j4r0u53k j4r0u53k enabled auto-merge May 14, 2026 18:53
@j4r0u53k j4r0u53k merged commit 4ab92ac into main May 15, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants