-
Notifications
You must be signed in to change notification settings - Fork 30
fix: various custom operator conformance fixes #386
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
Draft
leakonvalinka
wants to merge
3
commits into
open-feature:main
Choose a base branch
from
open-feature-forking:fix/evaluator-inconsistencies
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+25
−9
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule test-harness
updated
13 files
| +1 −1 | .release-please-manifest.json | |
| +30 −0 | CHANGELOG.md | |
| +1 −1 | docker-compose.yaml | |
| +183 −2 | evaluator/flags/testkit-flags.json | |
| +25 −0 | evaluator/gherkin/evaluator-refs.feature | |
| +28 −0 | evaluator/gherkin/fractional.feature | |
| +72 −0 | evaluator/gherkin/semver.feature | |
| +29 −0 | evaluator/gherkin/string.feature | |
| +69 −0 | flags/custom-ops.json | |
| +92 −4 | flags/edge-case-flags.json | |
| +72 −0 | flags/evaluator-refs.json | |
| +138 −0 | gherkin/targeting.feature | |
| +1 −1 | version.txt |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ | |
| "~unixsocket", | ||
| "~deprecated", | ||
| "~fractional-v1", | ||
| "~operator-errors", | ||
| ] | ||
|
|
||
|
|
||
|
|
||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,7 +66,7 @@ def test_starts_with_no_args(self) -> None: | |
|
|
||
| def test_starts_with_non_string(self) -> None: | ||
| result = starts_with({}, 123, "abc") | ||
| assert result is False | ||
| assert result is None | ||
|
|
||
|
|
||
| class TestEndsWith: | ||
|
|
@@ -78,6 +78,10 @@ def test_ends_with_false(self) -> None: | |
| result = ends_with({}, "hello world", "hello") | ||
| assert result is False | ||
|
|
||
| def test_ends_with_non_string(self) -> None: | ||
| result = ends_with({}, 123, "abc") | ||
| assert result is None | ||
|
|
||
|
|
||
| class TestSemVer: | ||
| def test_equal(self) -> None: | ||
|
|
@@ -113,6 +117,9 @@ def test_minor_no_match(self) -> None: | |
| def test_v_prefix(self) -> None: | ||
| assert sem_ver({}, "v2.0.0", "=", "2.0.0") is True | ||
|
|
||
| def test_partial_version(self) -> None: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you also add the |
||
| assert sem_ver({}, "2", "=", "2.0.0") is True | ||
|
|
||
| def test_invalid_version(self) -> None: | ||
| result = sem_ver({}, "not-a-version", "=", "1.0.0") | ||
| assert result is None | ||
|
|
||
Oops, something went wrong.
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.
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.
Renaming
parse_versiontonormalize_versionis a breaking change for consumers of this module. Given that this file is explicitly intended for backward compatibility (as noted in the header comment), it should continue to exportparse_versionas an alias.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.
Not sure about this one, is this necessary? I changed it locally but the pre-commit hook reverted it :D
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.
i think it is is ok. this is an internal function, I don't think anyone relied on it. just to be a bit more carful let's add it as a change in the description.