-
Notifications
You must be signed in to change notification settings - Fork 120
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
3. refactor(state): move database reads and writes to a new zebra_db module #3579
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3579 +/- ##
==========================================
- Coverage 79.88% 79.87% -0.01%
==========================================
Files 280 281 +1
Lines 32554 32582 +28
==========================================
+ Hits 26005 26025 +20
- Misses 6549 6557 +8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good, i will approve after #3578 gets merged.
6493d05
to
634f5da
Compare
c755bd1
to
8a277ae
Compare
634f5da
to
d3ee9da
Compare
8a277ae
to
d584e61
Compare
I rebased the PR series on |
Unfortunately, I've lost the interim changes to this file, so this commit might be the only one that compiles.
d584e61
to
ef8ca0b
Compare
@oxarbitrage I rebased this PR on |
Motivation
As part of changing the database, we'll need to make sure all database accesses go through a well-defined API.
As the third step, we need to make sure all database reads and writes go through the same module.
(This makes sure all access to the database respects any consistency rules.)
Solution
Code Movement:
commit_finalized_direct
into validation and writeszebra_db
modulezebra_db
module to the cached state CI job filterRelated Cleanups:
Resolves #2588
(#2588 was needed for #3151 anyway.)
Part of ticket #3151.
Based on PR #3578, feel free to move this PR out of draft after it merges.
Review
@oxarbitrage can review this PR.
git diff --color-moved
could make the review a lot easier.Reviewer Checklist
Follow Up Work