Skip to content

feat: only fire modify event when FeatureFlagConfiguration Generation field has changed - #167

Merged
AlexsJones merged 5 commits into
open-feature:mainfrom
skyerus:issue-166_modify-event
Oct 4, 2022
Merged

AlexsJones merged 5 commits into
open-feature:mainfrom
skyerus:issue-166_modify-event

Conversation

@skyerus

@skyerus skyerus commented Sep 21, 2022

Copy link
Copy Markdown
Contributor

Signed-off-by: Skye Gill gill.skye95@gmail.com

@skyerus

skyerus commented Sep 21, 2022

Copy link
Copy Markdown
Contributor Author

This field changes when FeatureFlagConfiguration has been updated in some way

@AlexsJones

Copy link
Copy Markdown
Member

Have you tested this? I had this in the original implementation but issues ever getting it to work.

@skyerus

skyerus commented Sep 21, 2022

Copy link
Copy Markdown
Contributor Author

Have you tested this? I had this in the original implementation but issues ever getting it to work.

Confirmed that this works for me. There is a slight delay in the update but there always was, right? Or did the delay get fixed at some point?

@AlexsJones

Copy link
Copy Markdown
Member

Have you tested this? I had this in the original implementation but issues ever getting it to work.

Confirmed that this works for me. There is a slight delay in the update but there always was, right? Or did the delay get fixed at some point?

Are we talking 5 seconds? Because that's the cache refresh time

@skyerus

skyerus commented Sep 21, 2022

Copy link
Copy Markdown
Contributor Author

Have you tested this? I had this in the original implementation but issues ever getting it to work.

Confirmed that this works for me. There is a slight delay in the update but there always was, right? Or did the delay get fixed at some point?

Are we talking 5 seconds? Because that's the cache refresh time

No, closer to a minute sadly.

@AlexsJones

Copy link
Copy Markdown
Member

Have you tested this? I had this in the original implementation but issues ever getting it to work.

Confirmed that this works for me. There is a slight delay in the update but there always was, right? Or did the delay get fixed at some point?

Are we talking 5 seconds? Because that's the cache refresh time

No, closer to a minute sadly.

Interestingly that's the issue I had - I think the notifier has different update cycles based on whether it's the metadata update versus the spec itself. Can I test your changes before we go further? I will try and figure out if there is something we can tweak in the notifier itself.

@skyerus

skyerus commented Sep 21, 2022

Copy link
Copy Markdown
Contributor Author

Have you tested this? I had this in the original implementation but issues ever getting it to work.

Confirmed that this works for me. There is a slight delay in the update but there always was, right? Or did the delay get fixed at some point?

Are we talking 5 seconds? Because that's the cache refresh time

No, closer to a minute sadly.

Interestingly that's the issue I had - I think the notifier has different update cycles based on whether it's the metadata update versus the spec itself. Can I test your changes before we go further? I will try and figure out if there is something we can tweak in the notifier itself.

Sounds good, I'll have a play around too.

@AlexsJones

Copy link
Copy Markdown
Member

I will do this, but might need a few days till I get time

@beeme1mr
beeme1mr marked this pull request as draft September 23, 2022 13:56
@skyerus
skyerus force-pushed the issue-166_modify-event branch from eff1470 to bbe7d3f Compare September 27, 2022 15:52
@skyerus

skyerus commented Sep 27, 2022

Copy link
Copy Markdown
Contributor Author

I will do this, but might need a few days till I get time

I was able to get it working @AlexsJones 🎉

Tested alongside OFO, with this change the event is emitted immediately & exclusively when a change occurs.

@skyerus
skyerus marked this pull request as ready for review September 27, 2022 15:58
@skyerus
skyerus force-pushed the issue-166_modify-event branch from bf46f72 to 29b53a1 Compare September 29, 2022 09:01
… field has changed

Signed-off-by: Skye Gill <gill.skye95@gmail.com>
Signed-off-by: Skye Gill <gill.skye95@gmail.com>
…hanged

Signed-off-by: Skye Gill <gill.skye95@gmail.com>
Signed-off-by: Skye Gill <gill.skye95@gmail.com>
Signed-off-by: Skye Gill <gill.skye95@gmail.com>
@skyerus
skyerus force-pushed the issue-166_modify-event branch from ac0ee5f to fd39eee Compare October 4, 2022 09:05
@AlexsJones
AlexsJones merged commit e2fc7ee into open-feature:main Oct 4, 2022
@skyerus
skyerus deleted the issue-166_modify-event branch October 4, 2022 14:47
AlexsJones pushed a commit that referenced this pull request Oct 13, 2022
🤖 I have created a release *beep* *boop*
---


##
[0.2.3](v0.2.2...v0.2.3)
(2022-10-13)


### Features

* Eventing ([#187](#187))
([3f7fcd2](3f7fcd2))
* fixing informer issues
([#191](#191))
([837b0c6](837b0c6))
* only fire modify event when FeatureFlagConfiguration Generation field
has changed ([#167](#167))
([e2fc7ee](e2fc7ee))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
raphael-wigoutschnigg-dt pushed a commit to open-feature-forking/flagd that referenced this pull request Mar 11, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

[FEATURE] Only fire modify event when FeatureFlagConfiguration has been changed

4 participants