-
Notifications
You must be signed in to change notification settings - Fork 109
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
Remove unused FF_HOOK_EVENTS #1026
Conversation
Pull Request Test Coverage Report for Build 7555347666
💛 - Coveralls |
src/chains/tests/test_signals.py
Outdated
|
||
|
||
@override_settings(CGW_URL="http://127.0.0.1", CGW_FLUSH_TOKEN="example-token") | ||
class ChainNetworkHookWithFFHookEventsTestCase(TestCase): |
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.
Nit: let's remove "FF" from the name as we are no longer testing that (from my understanding).
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.
Yes, I totally agree! Changed in 3cce913
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.
👏
Context:
The Safe Client Gateway currently accepts two ways to invalidate cache registries:
/v2/flush/
endpoint containing an invalidation pattern./v1/hooks/events/
endpoint containing an event payload.The first approach was being used by the Config Service exclusively, when it is configured to do so (i.e.: when
FF_HOOK_EVENTS
feature flag is set). This PR removes the possibility of using this first approach in favor of using the/v1/hooks/events/
endpoint instead.Changes:
FF_HOOK_EVENTS
from the service configuration.signals.py
classes for both Chains and Safe Apps, so these classes don't use the/v2/flush/
endpoint anymore. (And modifies their test counterparts accordingly)flush
function from the Safe Client Gateway client implementation.Out of scope:
CGW_FLUSH_TOKEN
to an alternative name. This would imply changes in other files and some coordination, so it will be tackled separately.