-
Notifications
You must be signed in to change notification settings - Fork 375
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
fix(ghverify): fix avl tree iteration in Render
and GetFeedDefinitions
#2933
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2933 +/- ##
==========================================
- Coverage 60.97% 60.95% -0.02%
==========================================
Files 564 564
Lines 75273 75273
==========================================
- Hits 45897 45883 -14
- Misses 26008 26020 +12
- Partials 3368 3370 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ed414e5
to
928010f
Compare
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.
Ha, cool. Didn't catch this. I think it could also be a good improvement to make the render a bit nicer, but that's for another PR.
The title isn't clear. Could you please add a scope, such as To the reviewers, please be mindful of this. |
…r and GetFeedDefinitions function
928010f
to
2ba9aad
Compare
@moul |
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.
LGTM
Render
and GetFeedDefinitions
This pull request resolves a bug in the iteration logic of the
iterate
function fromgno.land/p/demo/avl
(avlTree) as used in two key areas: theRender
function ofgno.land/r/gnoland/ghverify
and theGetFeedDefinitions
function ofgno.land/p/demo/gnorkle/gnorkle
.Problem:
In both instances, the
iterate
function was returningtrue
after processing the first item, which prematurely halted the iteration. As a result, only the first item was processed, and all subsequent items were ignored.