-
Notifications
You must be signed in to change notification settings - Fork 37
[FSSDK-11458] Python - Add SDK Multi-Region Support for Data Hosting #459
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
base: master
Are you sure you want to change the base?
Conversation
…o esra/FSSDK-11458_eu_hosting
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.
few small comments
) | ||
|
||
self.assertEqual(self.project_config.region, impression_event.event_context.region) | ||
self.assertEqual('EU', impression_event.event_context.region) |
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.
can we also add a test for create_contervsion_event?
@@ -576,7 +576,7 @@ def __init__(self, is_updated=False): | |||
self.is_updated = is_updated | |||
|
|||
def dispatch_event(self, log_event): | |||
if log_event.http_verb == 'POST' and log_event.url == EventFactory.EVENT_ENDPOINT: | |||
if log_event.url in EventFactory.EVENT_ENDPOINTS.values(): |
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.
the log_event.http_verb == 'POST' condition got removed. Can we keep that check?
EventFactory.EVENT_ENDPOINTS.get('US'), | ||
expected_params, | ||
EventFactory.HTTP_VERB, | ||
EventFactory.HTTP_HEADERS, | ||
) |
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.
can we add a test to check that create_log_event works correctly with EU region?
Summary
Test plan
Issues