feat(general): Update range includes to handle range values #6867
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.
User description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
range_includes can handle ranges in the value like [4,10-20]
Checklist:
Generated description
Below is a concise technical summary of the changes proposed in this PR:
Enhance the
RangeIncludesAttributeSolver
class to support range values in thevalue
parameter, allowing for more flexible attribute checks. This update processes range strings (e.g., "10-20") by converting them into a list of integers, thus enabling the solver to handle both single values and ranges effectively. Additionally, new test cases have been added to validate this functionality, ensuring that bothrange_includes
andrange_not_includes
operations work correctly with the updated logic.RangeIncludesAttributeSolver
, ensuring bothrange_includes
andrange_not_includes
operations work correctly.Modified files (6)
Latest Contributors(2)
RangeIncludesAttributeSolver
to support range values in thevalue
parameter, allowing for more flexible attribute checks.Modified files (1)
Latest Contributors(2)