Skip to content
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

Provide Endpoints for EU Cloud Region #233

Merged
merged 9 commits into from May 4, 2023
Merged

Provide Endpoints for EU Cloud Region #233

merged 9 commits into from May 4, 2023

Conversation

EmilyZhang777
Copy link
Contributor

This PR creates an EndpointProvider class to offer a way to get endpoints for EU.

J=BACK-2270
TEST=auto,manual

Ran tests under tests/.
Manually started a test site and made sure the api request use the correct endpoints.

Change-Id: I5c5bbd99e9c3f0f67d0b6817e0a0db6eeaf2f231

This PR creates an EndpointProvider class to offer a way to get endpoints for EU.

J=BACK-2270
TEST=auto,manual

Ran tests under tests/.
Manually started a test site and made sure the api request use the correct endpoints.

Change-Id: I5c5bbd99e9c3f0f67d0b6817e0a0db6eeaf2f231
@EmilyZhang777 EmilyZhang777 requested a review from a team as a code owner May 3, 2023 02:47
@coveralls
Copy link

coveralls commented May 3, 2023

Pull Request Test Coverage Report for Build 4886892156

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 90.61%

Totals Coverage Status
Change from base Build 4512734512: 0.2%
Covered Lines: 217
Relevant Lines: 234

💛 - Coveralls

src/constants.ts Outdated Show resolved Hide resolved
src/constants.ts Outdated Show resolved Hide resolved
etc/search-core.api.md Outdated Show resolved Hide resolved
src/provideCore.ts Outdated Show resolved Hide resolved
tests/infra/QuestionSubmissionServiceImpl.ts Show resolved Hide resolved
etc/search-core.api.md Outdated Show resolved Hide resolved
src/constants.ts Outdated Show resolved Hide resolved
src/constants.ts Outdated Show resolved Hide resolved
src/constants.ts Outdated Show resolved Hide resolved
Change-Id: I27d289eecf66523ddde6cfcceaf905ae966f27cb
src/index.ts Outdated Show resolved Hide resolved
src/constants.ts Outdated Show resolved Hide resolved
@cea2aj
Copy link
Member

cea2aj commented May 3, 2023

This is looking really good!

Change-Id: I1b13509a1ffb48c8a7def438260825407d3f0779
@cea2aj
Copy link
Member

cea2aj commented May 3, 2023

Since this repo uses git flow, this change should be based on develop, and the PR should target develop. When we are ready to release the next version, we bump the version number in develop in another PR and then merge develop into master

@EmilyZhang777 EmilyZhang777 changed the base branch from master to develop May 3, 2023 18:57
Copy link
Member

@cea2aj cea2aj left a comment

Choose a reason for hiding this comment

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

LGTM! Note: I don't think the change-id in the description is necessary. Also, when we merge into develop, we always use the squash and merge option so that these changes appear in develop in a single commit.

src/provideEndpoints.ts Outdated Show resolved Hide resolved
Change-Id: I40c3c538871a5a14e9ff8fd7c79617d99369781c
src/provideEndpoints.ts Outdated Show resolved Hide resolved
Change-Id: I4c3ead6096d90a49fa7f2479de40de194912733e
@benmcginnis
Copy link
Member

LGTM! I think we're good to squash & merge

etc/search-core.api.md Outdated Show resolved Hide resolved
src/provideEndpoints.ts Outdated Show resolved Hide resolved
src/provideEndpoints.ts Outdated Show resolved Hide resolved
src/models/core/SearchConfig.ts Show resolved Hide resolved
Change-Id: I9ba835765871534befce6091d40ac36eb611a0f3
Change-Id: I4e06b9d501586735c3e67b6d5ee753132a5ed71a
Copy link
Member

@cea2aj cea2aj left a comment

Choose a reason for hiding this comment

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

🚀

@EmilyZhang777 EmilyZhang777 merged commit dbc58d5 into develop May 4, 2023
19 checks passed
@EmilyZhang777 EmilyZhang777 deleted the endpoints branch May 8, 2023 15:58
@cea2aj cea2aj mentioned this pull request May 8, 2023
cea2aj added a commit that referenced this pull request May 8, 2023
### Features

Support the EU Cloud region (#233)
- We introduced two new configuration options: cloudRegion and environment. The search endpoints are hosted in both the US and in Europe, and the cloudRegion config option determines which endpoints are used. The environment config option supports both Production and Sandbox. The SandboxEndpoints object is now deprecated, and the environment config option should be used instead to specify the sandbox environment.
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.

None yet

4 participants