-
Notifications
You must be signed in to change notification settings - Fork 74
feat: Update in-process resolver to support flag metadata #1102 #1122
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
Merged
toddbaert
merged 19 commits into
open-feature:main
from
chrfwow:feat/Update-in-process-resolver-to-support-flag-metadata
Jan 14, 2025
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d127cb5
feat: Update in-process resolver to support flag metadata #1102
chrfwow 0bedec3
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow 319ee49
Merge branch 'main' into feat/Update-in-process-resolver-to-support-f…
chrfwow c08e7bc
feat: Update in-process resolver to support flag metadata #1102
chrfwow 4c6393a
Merge remote-tracking branch 'origin/feat/Update-in-process-resolver-…
chrfwow da9e92b
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow 18219c0
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow af0006c
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow f8e69aa
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow 72d1fbc
Merge branch 'main' into feat/Update-in-process-resolver-to-support-f…
chrfwow b495c6b
Merge branch 'main' into feat/Update-in-process-resolver-to-support-f…
toddbaert 65a508c
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow 9b49abc
Merge remote-tracking branch 'origin/feat/Update-in-process-resolver-…
chrfwow a8a2cd6
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow 53f570f
Merge branch 'main' into feat/Update-in-process-resolver-to-support-f…
toddbaert 1579eff
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow 0551684
fixup! feat: Update in-process resolver to support flag metadata #1102
chrfwow 242b262
fixup: merge conflicts
toddbaert b0868e0
fixup: more conflicts
toddbaert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...in/java/dev/openfeature/contrib/providers/flagd/resolver/process/model/ParsingResult.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| package dev.openfeature.contrib.providers.flagd.resolver.process.model; | ||
|
|
||
| import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
| import java.util.Map; | ||
| import lombok.Getter; | ||
|
|
||
| /** | ||
| * The result of the parsing of a json string containing feature flag definitions. | ||
| */ | ||
| @Getter | ||
| @SuppressFBWarnings( | ||
| value = {"EI_EXPOSE_REP"}, | ||
| justification = "Feature flag comes as a Json configuration, hence they must be exposed") | ||
| public class ParsingResult { | ||
| private final Map<String, FeatureFlag> flags; | ||
| private final Map<String, Object> flagSetMetadata; | ||
|
|
||
| public ParsingResult(Map<String, FeatureFlag> flags, Map<String, Object> flagSetMetadata) { | ||
| this.flags = flags; | ||
| this.flagSetMetadata = flagSetMetadata; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.../dev/openfeature/contrib/providers/flagd/resolver/process/storage/StorageQueryResult.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package dev.openfeature.contrib.providers.flagd.resolver.process.storage; | ||
|
|
||
| import dev.openfeature.contrib.providers.flagd.resolver.process.model.FeatureFlag; | ||
| import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
| import java.util.Map; | ||
| import lombok.Getter; | ||
|
|
||
| /** | ||
| * To be returned by the storage when a flag is queried. Contains the flag (iff a flag associated with the given key | ||
| * exists, null otherwise) and flag set metadata | ||
| */ | ||
| @Getter | ||
| @SuppressFBWarnings( | ||
| value = {"EI_EXPOSE_REP"}, | ||
| justification = "The storage provides access to both feature flags and flag set metadata") | ||
| public class StorageQueryResult { | ||
| private final FeatureFlag featureFlag; | ||
| private final Map<String, Object> flagSetMetadata; | ||
|
|
||
| public StorageQueryResult(FeatureFlag featureFlag, Map<String, Object> flagSetMetadata) { | ||
| this.featureFlag = featureFlag; | ||
| this.flagSetMetadata = flagSetMetadata; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.