-
Notifications
You must be signed in to change notification settings - Fork 24
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
Eliminate proposal "filtering" in favor of throwing hard errors #245
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 1.x-main #245 +/- ##
============================================
- Coverage 90.23% 89.66% -0.57%
============================================
Files 176 176
Lines 31222 29737 -1485
============================================
- Hits 28172 26664 -1508
- Misses 3050 3073 +23 ☔ View full report in Codecov by Sentry. |
019912e
to
92feb7e
Compare
@mulmarta ignored two tests you can take a look at if you have a chance before I get back online |
tomleavy
commented
Jan 23, 2025
92feb7e
to
d8ec776
Compare
d8ec776
to
bba48cd
Compare
mulmarta
approved these changes
Jan 23, 2025
stefunctional
approved these changes
Jan 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes:
We previously had code to filter received proposals when you commit so that the commit would work based on the maximum valid set. In practice is problematic because although the proposals that aren't consumed wind up in unused_proposals, it is very easy to ignore the fact that some expected change to the group was not enacted.
As an alternative approach we are moving towards hard failing if any proposal is not valid in the context of all the cached + by value proposals we have within a commit. This also allows us to remove the forked "lite" version of filtering + batch_edit on the tree.
Call-outs:
With this PR, there is no way to recover when you get into a bad state due to receiving a proposal that is not valid in the context of the other received proposals. This is not the final form of this feature change. Follow ups are as follows:
Testing:
Adjusted existing tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT license.