-
Notifications
You must be signed in to change notification settings - Fork 45
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: emit changed flags in configuration change event #925
feat: emit changed flags in configuration change event #925
Conversation
39bcab6
to
46fbbe5
Compare
providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/FlagdProvider.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...rc/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/InProcessResolver.java
Outdated
Show resolved
Hide resolved
...rc/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/storage/FlagStore.java
Outdated
Show resolved
Hide resolved
...flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/grpc/GrpcConnector.java
Show resolved
Hide resolved
d86fbf4
to
2b817c5
Compare
...rc/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/storage/FlagStore.java
Outdated
Show resolved
Hide resolved
@UtkarshSharma2612 I squashed your branch to a single commit and left a comment here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@UtkarshSharma2612 I think this looks good already; my thoughts for the review are more regarding complexity and maybe unneeded transformations for data, which can increase our footprint. Please have a look and let me know what you think
providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/FlagdProvider.java
Outdated
Show resolved
Hide resolved
...n/java/dev/openfeature/contrib/providers/flagd/resolver/process/storage/StorageStateDTO.java
Outdated
Show resolved
Hide resolved
...n/java/dev/openfeature/contrib/providers/flagd/resolver/process/storage/StorageStateDTO.java
Outdated
Show resolved
Hide resolved
@aepfli have implemented changes please help with re-review |
...rc/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/storage/FlagStore.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, i am just thinking that actually a set should be enough for the flag keys, maybe instead of class List
for the changedFlags
we can even use the interface Collection
so we can easier switch between different collection implementations. wdyt about using a Hashset, rather than a list for the changedflags? do we need that safety of no duplicates within the changedflags?
beb78f9
to
9519a9e
Compare
Signed-off-by: utkarsh <[email protected]>
eec04d1
to
71a73e6
Compare
...s/flagd/src/test/java/dev/openfeature/contrib/providers/flagd/e2e/steps/StepDefinitions.java
Show resolved
Hide resolved
71a73e6
to
e506a6b
Compare
e506a6b
to
1ec024c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@UtkarshSharma2612 I squashed all your changes, and made a few small changes in this commit:
- added the changed flags to RPC mode as well (this was just a couple of lines, with the work you already did it was very easy)
- added a new assertion in the e2e test suite which was previously not implemented because we didn't support
flagsChanged
- some minor checkstyle and spotbugs fixes
Really great work! Thanks for doing all the heavy lifting here!
1ec024c
to
067129f
Compare
Signed-off-by: Todd Baert <[email protected]>
067129f
to
ac5896c
Compare
Thank you, @toddbaert! I really enjoyed working on this issue and learned a lot in the process. Are there any other open issues I could contribute to? I'd love to continue helping out. 😄 |
@UtkarshSharma2612 I'm sure there is. I'll let you know. I will also invite you to the org, which is the first step to getting more involved. |
Sure, Thanks! |
Hey @UtkarshSharma2612, it was also a pleasure working with you. As you seem to be interested, today I opened #957, which would be a cool improvement for our testing tooling. ;) |
Adds changed flags to in-process change event.
Fixes: #901