Skip to content
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

fix(feature-flags): revert RuleAction Enum inheritance on str #1910

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

royygael
Copy link
Contributor

@royygael royygael commented Feb 8, 2023

Signed-off-by: royygael 116807865+royygael@users.noreply.github.com

Issue number: #1909

Summary

The PR #1846 added a breaking change to RuleAction which not serializes the enum thus when used as an enum it breaks.

Changes

RuleAction should inherent str first to be dict serilizable

User experience

Breaking changes that now throws due to dict() func keeps the enum and not gives its value

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

The PR aws-powertools#1846 added a breaking change to RuleAction which not serializes the enum thus when used as an enum it breaks.

Signed-off-by: royygael <116807865+royygael@users.noreply.github.com>
@royygael royygael requested a review from a team as a code owner February 8, 2023 13:17
@royygael royygael requested review from leandrodamascena and removed request for a team February 8, 2023 13:17
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 8, 2023

Thanks a lot for your first contribution! Please check out our contributing guidelines and don't hesitate to ask whatever you need.
In the meantime, check out the #python channel on our AWS Lambda Powertools Discord: Invite link

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 8, 2023
@heitorlessa heitorlessa added need-more-information Pending information to continue do-not-merge labels Feb 10, 2023
@leandrodamascena leandrodamascena changed the title Revert breaking change from PR #1846 fix(feature_flags): Add str type to RuleAction class Feb 13, 2023
@github-actions github-actions bot added the bug Something isn't working label Feb 13, 2023
@leandrodamascena leandrodamascena changed the title fix(feature_flags): Add str type to RuleAction class fix(feature-flags): revert RuleAction Enum inheritance on str Feb 13, 2023
Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!
Thanks you @royygael!

@leandrodamascena leandrodamascena merged commit 2c6ed14 into aws-powertools:develop Feb 13, 2023
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 13, 2023

Awesome work, congrats on your first merged pull request and thank you for helping improve everyone's experience!

@royygael
Copy link
Contributor Author

royygael commented Feb 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants