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(gofeatureflag): Provider refactor #313

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

thomaspoignant
Copy link
Member

@thomaspoignant thomaspoignant commented Feb 7, 2025

This PR

In this PR we have done a few refactoring for the GO Feature Flag provider.
Here is the list of changes:

  • Moving to the OFREP endpoint.
  • Support FlagMetadata.
  • Support ExporterMetadata feature from GO Feature Flag that allows to send static information to GOFF relay proxy in order to do proper analytics.
  • Clean de formatting to follow the rules of dotnet-format

@thomaspoignant thomaspoignant force-pushed the feat-goff-exporter-metadata branch 19 times, most recently from a0af470 to e45465c Compare February 8, 2025 08:54
@thomaspoignant thomaspoignant marked this pull request as ready for review February 8, 2025 09:14
@thomaspoignant thomaspoignant requested review from a team as code owners February 8, 2025 09:14
@thomaspoignant thomaspoignant requested a review from askpt February 8, 2025 09:14
@thomaspoignant thomaspoignant force-pushed the feat-goff-exporter-metadata branch from e45465c to a29981b Compare February 8, 2025 09:15
Copy link
Member

@askpt askpt left a comment

Choose a reason for hiding this comment

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

LGTM. Just a tiny comment.

@@ -53,6 +69,10 @@ private void ValidateInputOptions(GoFeatureFlagProviderOptions options)
/// <param name="options">Options used while creating the provider</param>
private void InitializeProvider(GoFeatureFlagProviderOptions options)
{
_exporterMetadata = options.ExporterMetadata ?? new ExporterMetadata();
_exporterMetadata.Add("provider", ".NET");
Copy link
Member

Choose a reason for hiding this comment

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

Should it be?

Suggested change
_exporterMetadata.Add("provider", ".NET");
_exporterMetadata.Add("provider", "GoFeatureFlag .NET");

Copy link
Member Author

Choose a reason for hiding this comment

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

Since this is used by GOFF internally .NET is enough in that case.

@thomaspoignant thomaspoignant merged commit c30446e into main Feb 10, 2025
8 checks passed
MJRichardson pushed a commit to OctopusDeploy/openfeature-dotnet-sdk-contrib that referenced this pull request Mar 12, 2025
Signed-off-by: Thomas Poignant <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
MJRichardson pushed a commit to OctopusDeploy/openfeature-dotnet-sdk-contrib that referenced this pull request Mar 12, 2025
Signed-off-by: Thomas Poignant <[email protected]>
Signed-off-by: Michael Richardson <[email protected]>
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.

2 participants