-
Notifications
You must be signed in to change notification settings - Fork 31
feat: Add DeleteRange method to Store
#347
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
feat: Add DeleteRange method to Store
#347
Conversation
|
One thing we should explore is making DeleteRange [from:to) instead of introducing a new method. It's gonna have better ergonomics, allow both usecase, and have less duplicated code and easier to maintain longer term. We actually wanted to make it |
DeleteFromHead method to StoreDeleteRange method to Store
Wondertan
left a comment
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.
First pass.
I still need to sit down and verify new logic of DeleteRange
|
Thanks! Implementing your suggestions... |
This PR was blocked but got merged: #2638. It isn't bad to merge it, but we are relying on a fork of go-header for the apps until celestiaorg/go-header#347 is merged. Let's delete it in the main go.mod
|
Any update on this @Wondertan? |
|
We qim to get it done by this week |
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
|
gentle ping on this |
|
@tac0turtle, hey, apologies for the delay here. The merge is blocked mainly by me. I am botted with fibre da and can't find time to sit down and do another proper pass here, but we will get to it, I promise. |
|
Finally got to review the PR. These are the final comments from the in-depth review:
|
|
@tac0turtle, @julienrbrt, I understand that coming back to this after a while might be hard, and context switching here is relatively expensive, so I made this PR to your PR that addresses the comments above. This should accelerate the lingering completion of this PR (my fault) and meet maintenance-quality expectations. |
renaynay
left a comment
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.
Pls take a look at julienrbrt#3 @julienrbrt
…ge deletion (#3) * fix(store): Cleanup `DeleteRange` and disallow silent err on noop range deletion * nit
|
weird, linter complains after merging main in, but looking at main branches ci - linter is doing fine |
|
yeah! this PR hasn't even touched those files |
|
This sometimes happens in node's repo too, its likely linter misfunctioning and they only solution we found was actually fixing the complaints. Can you do this for the last time hopefully? |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #347 +/- ##
==========================================
+ Coverage 52.99% 54.51% +1.52%
==========================================
Files 41 41
Lines 4663 4760 +97
==========================================
+ Hits 2471 2595 +124
+ Misses 2007 1969 -38
- Partials 185 196 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Failed again : ( |
looks like it was. Just installed from source (2.8), fedora repo had 2.7 only. |
|
Nice, CI passed. Congrats! |
Overview
d
Implement
DeleteRangeon store.This methods truncates the head to the given height. (different from DeleteTo that truncates the tail to the given height)