Skip to content

Conversation

@moloney
Copy link
Owner

@moloney moloney commented Aug 1, 2022

Attempt to add a local only non-naive data store for smallish amounts of data. Mostly leverage existing ability to serialize our QueryResult class to/from JSON.

moloney added 3 commits July 29, 2022 14:46
Need to flush out query functionality, integrate with `test_sync`
module, and integrate with CLI.
Use the decorator in remaining portions of code where appropriate.
@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2022

Codecov Report

Merging #9 (5aa6a69) into main (b3f4e4c) will decrease coverage by 1.62%.
The diff coverage is 82.78%.

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
- Coverage   77.71%   76.09%   -1.63%     
==========================================
  Files          25       28       +3     
  Lines        6407     6993     +586     
==========================================
+ Hits         4979     5321     +342     
- Misses       1428     1672     +244     
Impacted Files Coverage Δ
dcm/filt.py 42.12% <50.00%> (ø)
dcm/query.py 77.98% <61.38%> (-2.58%) ⬇️
dcm/store/base.py 73.86% <73.86%> (ø)
dcm/store/local_dir.py 60.35% <77.50%> (+1.63%) ⬆️
dcm/tests/conftest.py 78.88% <78.37%> (-16.08%) ⬇️
dcm/util.py 79.39% <79.54%> (+2.25%) ⬆️
dcm/cli.py 71.37% <81.81%> (+0.13%) ⬆️
dcm/store/qr_repo.py 84.84% <84.84%> (ø)
dcm/net.py 79.12% <91.66%> (-3.91%) ⬇️
dcm/sync.py 76.61% <93.75%> (-5.05%) ⬇️
... and 21 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

moloney added 2 commits August 3, 2022 13:52
Be smarter about syncing the JSON to disk. Handle intraprocess
concurrency by making QrRepo a singleton on any given path and
serializing writes through a single thread. Handle interprocess
concurrency (including on NFS) with 'flufl.lock' package.
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.

3 participants