fix: [FIND-115] createConfiguration Prematurely Finalizes In-Progress Batch Configuration#1183
Merged
Conversation
Signed-off-by: jaime-iobermudez <jaime.bermudez@io.builders>
Signed-off-by: jaime-iobermudez <jaime.bermudez@io.builders>
This file contains hidden or 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
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.
This pull request introduces a stricter validation for configuration batch management in the DiamondCutManager, preventing accidental merging or finalization of incomplete batches. The key change is that calling
createConfigurationon a configuration ID with an ongoing (incomplete) batch will now revert with a custom error, enforcing explicit batch management and avoiding silent merges.Batch management and error handling improvements:
OngoingBatchConfigurationNotPermittedto bothIDiamondCutManagerinterface files, which is thrown whencreateConfigurationis called for a configuration ID that already has an in-progress batch. This prevents premature finalization and unintended facet absorption. [1] [2]DiamondCutManagerWrapperto revert with the new error ifcreateConfigurationis called on an ongoing batch, instead of silently continuing or merging facets into the existing batch.Test updates:
DiamondCutManagerto expect the new error when attempting to create a configuration on an ongoing batch, replacing previous tests that allowed silent merges. This ensures the new validation logic is enforced and tested. [1] [2]Type of change
Testing
Node version:
Checklist