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

feat!: Support transient identities and traits #23

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Oct 3, 2024

Closes #22, Flagsmith/flagsmith-rust-flag-engine#14.

This introduces the models::SDKTrait struct to be used in lieu of flagsmith_flag_engine::identities::Trait when calling get_identity_flags, and a new transient argument to get_identity_flags.

The SDKTrait struct offers two constructors:

  • SDKTrait::new that generates a non-transient trait, analogous to flagsmith_flag_engine::identities::Trait.
  • SDKTrait::new_with_transient accepting a third transient boolean argument.

@khvn26 khvn26 changed the title feat: Support transient identities and traits feat!: Support transient identities and traits Oct 3, 2024
Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

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

Approved with a minor nit.

tests/integration_test.rs Outdated Show resolved Hide resolved
Co-authored-by: Matthew Elwell <[email protected]>
@khvn26 khvn26 merged commit bd12c19 into main Oct 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support transient identities and traits
2 participants