-
Notifications
You must be signed in to change notification settings - Fork 61
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
feat: strategy variants #265
Conversation
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
for more information, see https://pre-commit.ci
…t/strategy_variants
for more information, see https://pre-commit.ci
…t/strategy_variants # Conflicts: # tests/unit_tests/strategies/test_strategy_variants.py
for more information, see https://pre-commit.ci
…t/strategy_variants
for more information, see https://pre-commit.ci
…t/strategy_variants
Regarding the failing tests:
This one I expected to see. I ran into the same one when I was doing python a little while back. @sighphyre and I both couldn't figure out why it fails, but it appears to have been a breaking change in one of our dependencies. What we did then was just to say that this test should be ignored until some date. You could just extend that for a bit, but we should really look into it.
Now this one worries me a bit more. This is what I was working on previously. It didn't have any issues back then, so it's strange that it should fail now. Does this test also fail on main? |
Thanks for the info on the first one. The second is around the area I have been working, so I will look into it |
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.
The changes here look good to me 😄 As long as the tests pass and the client spec is updated, then that's good! I'm guessing that the cases where you get the old variants are the same as they were before, so we don't need new tests for that?
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 the null handling needs some work here, there look like a lot of dead paths or strange paths being executed. We shouldn't be checking for None when the result is coming back from a function that can't return None
The overall approach looks fine to me though
for more information, see https://pre-commit.ci
…t/strategy_variants # Conflicts: # UnleashClient/features/Feature.py
for more information, see https://pre-commit.ci
…t/strategy_variants
for more information, see https://pre-commit.ci
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.
Still waiting on a patch to the default property that isn't used. Outside of that I'm happy to approve, the null handling looks substantially saner, nice one!
…t/strategy_variants
for more information, see https://pre-commit.ci
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!
Description
Implements strategy variants based on Client Specification v4.3.0
Strategy variants take priority over feature variants. A feature variant (if present) will be returned if one is not found in the enabled strategy
Fixes # (issue)
Type of change
Please delete options that are not relevant.
[1] New feature (non-breaking change which adds functionality)
[1 ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: