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: allow for listing the flags known to the SDK #252

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

sighphyre
Copy link
Member

@sighphyre sighphyre commented Oct 31, 2024

Adds a method to list the features known to the SDK. This is intended to replace the legacy option to access the feature flags directly, which is typically used to iterate the known flags and evaluate them all

There's a bunch of noise her moving from IsEnabled to Enabled in the engine but that's all internal

Also fixes the client spec header because that's wantonly out of sync at this point

public string Description { get; set; }
public UnleashContextDefinition Context { get; set; }
public string ToggleName { get; set; }
public Variant ExpectedResult
Copy link
Member Author

Choose a reason for hiding this comment

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

This wasn't loading feature enabled correctly. So the spec tests haven't been checking feature_enabled correctly until now

Copy link

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -17,7 +17,7 @@ internal class UnleashServices : IDisposable
private readonly CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
private readonly IUnleashScheduledTaskManager scheduledTaskManager;

public const string supportedSpecVersion = "4.5.1";
public const string supportedSpecVersion = "5.1.7";

Choose a reason for hiding this comment

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

Neat!

@sighphyre sighphyre merged commit 8f3e10e into main Oct 31, 2024
2 checks passed
@sighphyre sighphyre deleted the feat/list-known-toggles branch October 31, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants