Skip to content

[FSSDK-11207] add multi region support for logx events #1072

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

Merged
merged 1 commit into from
Jun 25, 2025
Merged

Conversation

raju-opti
Copy link
Contributor

Summary

logx event will now be dispatched to different urls based on region field in the datafile

Test plan

  • added and upldated relevant tests

Issues

  • FSSDK-11207

Copilot

This comment was marked as outdated.

@coveralls
Copy link

coveralls commented Jun 25, 2025

Coverage Status

coverage: 79.751% (-0.05%) from 79.797%
when pulling ddea1b4 on raju/region
into 7885261 on master.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds multi-region support for logx events by introducing a new Region type and updating event building functions to dispatch events to region-specific endpoints.

  • Added a new Region type and updated the ProjectConfig interface to include a region property with a default fallback to 'US'.
  • Modified user event creation and log event construction to include region information and updated tests accordingly.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/project_config/project_config.ts Added the Region type and default region assignment
lib/project_config/project_config.spec.ts Added tests verifying region defaulting and parsing
lib/event_processor/event_builder/user_event.ts Included region in event context and equality checks
lib/event_processor/event_builder/user_event.tests.js Added region to test event objects
lib/event_processor/event_builder/log_event.ts Updated log event construction to use region-specific URLs
lib/event_processor/event_builder/log_event.spec.ts Added tests for verifying the correct logx endpoint selection

Copy link
Contributor

@jaeopt jaeopt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@raju-opti raju-opti merged commit a7b62d9 into master Jun 25, 2025
14 of 19 checks passed
@raju-opti raju-opti deleted the raju/region branch June 25, 2025 16:03
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.

3 participants