-
Notifications
You must be signed in to change notification settings - Fork 63
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: new headers and payload ( connection id and interval) #346
Conversation
|
||
|
||
@responses.activate | ||
def test_identification_values_are_passed_in(): |
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.
This is testing all 3 requests, headers and body
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.
I remember we had this test added: https://github.com/Unleash/unleash-client-python/pull/342/files#diff-6fd6de24505791fbd1ad578927a8fdd87d15a14b7d194600d68434ddc3e53e00R1038 Are those 2 tests testing similar things?
for more information, see https://pre-commit.ci
UnleashClient/__init__.py
Outdated
@@ -110,6 +110,7 @@ def __init__( | |||
self.unleash_app_name = app_name | |||
self.unleash_environment = environment | |||
self.unleash_instance_id = instance_id | |||
self.connection_id = str(uuid.uuid4()) |
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.
we had connection id before. is this code moved?
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, it was initialized only in headers before, now we can use it also in body if needed.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Request updates
unleash-interval
header.connectionId
added to the payload (previously, it only had theunleash-connection-id
header).Metrics updates
unleash-interval
header.connectionId
added to the payload (previously, it only had theunleash-connection-id
header).