Skip to content

reduced scanning - #3

Merged
bartman merged 4 commits into
masterfrom
reduced-scanning
Sep 4, 2026
Merged

reduced scanning#3
bartman merged 4 commits into
masterfrom
reduced-scanning

Conversation

@bartman

@bartman bartman commented Sep 4, 2026

Copy link
Copy Markdown
Owner
  • Add DateScan helpers for cache-aware date listing
  • Scan recent days for new workouts instead of full history
  • Document -s/--scan-days date listing
  • Reformat with rustfmt

resolve_date_scan turns a scan-days policy into Full, CacheOnly, or a
hybrid [oldest, latest] window. latest_cached_date is the newest cache
filename. These are pure so get_dates can skip the full jrange walk.
Default scan_days=0 lists dates from cache and only networks from the
last cached day through today, so table/list/fetch stay local on a warm
cache. -s N scans [today-N, today]; -s -1 restores sequential jrange.
Empty cache or --no-cache with -s 0 still walks the full range.
Default 0 scans since the last cached workout; -1 is full history.
Note that the flag must appear before the subcommand because list/show
already use -s for --summary.
Add rustfmt to dependencies.sh and run it over src/ and tests/.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 61.55914% with 143 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.86%. Comparing base (4601be6) to head (0a5e129).

Files with missing lines Patch % Lines
src/workouts.rs 70.80% 40 Missing ⚠️
src/api.rs 6.89% 27 Missing ⚠️
src/main.rs 0.00% 18 Missing ⚠️
src/table.rs 65.11% 15 Missing ⚠️
src/auth.rs 56.00% 11 Missing ⚠️
src/heatmap.rs 21.42% 11 Missing ⚠️
src/fetch.rs 10.00% 9 Missing ⚠️
src/list.rs 0.00% 6 Missing ⚠️
src/credentials.rs 0.00% 5 Missing ⚠️
src/parsers.rs 97.50% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master       #3      +/-   ##
==========================================
- Coverage   64.26%   63.86%   -0.40%     
==========================================
  Files          12       12              
  Lines        1679     1871     +192     
==========================================
+ Hits         1079     1195     +116     
- Misses        600      676      +76     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bartman
bartman merged commit 0097667 into master Sep 4, 2026
1 check passed
@bartman
bartman deleted the reduced-scanning branch September 4, 2026 18:57
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