Skip to content

[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

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

esrakartalOpt
Copy link

Summary

  • Add Multi-Region Support for Data Hosting

Test plan

  • Created and added new test cases

Issues

Copy link

@raju-opti raju-opti left a 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)

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():

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

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?

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.

2 participants