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: only fire modify event when FeatureFlagConfiguration Generation field has changed #167

Merged
merged 5 commits into from
Oct 4, 2022

Conversation

skyerus
Copy link
Contributor

@skyerus skyerus commented Sep 21, 2022

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

@skyerus
Copy link
Contributor Author

skyerus commented Sep 21, 2022

This field changes when FeatureFlagConfiguration has been updated in some way

@AlexsJones
Copy link
Member

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

@skyerus
Copy link
Contributor Author

skyerus commented Sep 21, 2022

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
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
Copy link
Contributor Author

skyerus commented Sep 21, 2022

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
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
Copy link
Contributor Author

skyerus commented Sep 21, 2022

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
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
Copy link
Contributor Author

skyerus commented Sep 27, 2022

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>
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