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: Update in-process resolver to support flag metadata #305 #309

Conversation

chrfwow
Copy link
Contributor

@chrfwow chrfwow commented Jan 15, 2025

This PR

Adds support for metadata to the flagd provider

Related Issues

Fixes #305

@chrfwow chrfwow changed the title Update in-process resolver to support flag metadata #305 feat: Update in-process resolver to support flag metadata #305 Jan 17, 2025
@chrfwow chrfwow marked this pull request as ready for review January 17, 2025 09:01
@chrfwow chrfwow requested review from a team as code owners January 17, 2025 09:01
Copy link
Member

@aepfli aepfli left a comment

Choose a reason for hiding this comment

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

Thank you, looks good to me. i just have a few questions/suggestions, but nothing which should block a merge ;)

return;
}

throw new ParseErrorException("Metadata entry for key " + key + " and value " + value +
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this the proper exception type?

Copy link
Member

Choose a reason for hiding this comment

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

Ya I think it's the best one.

}
else
{
foreach (var key in new List<string>(data.Metadata.Keys))
Copy link
Member

@toddbaert toddbaert Jan 27, 2025

Choose a reason for hiding this comment

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

nit: I think it would be more typical to do this functionally with Linq (.Select) but it's a style choice.

@toddbaert toddbaert merged commit e603c08 into open-feature:main Jan 27, 2025
8 checks passed
@chrfwow chrfwow deleted the Update-in-process-resolver-to-support-flag-metadata-#305 branch January 27, 2025 14:24
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.

[flagd] Update in-process resolver to support flag metadata
4 participants