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

[Backport 2.x][Workspace] Add base path when parsing url in http service #6451

Merged

Conversation

SuZhou-Joe
Copy link
Member

Backport 0dce00a from #6233

…h-project#6233)

* fix: add base path when parse url in http service

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: add CHANGELOG

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: optimize unit test cases for parse clientBasePath from url when basePath enabled

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: add empty line before getWorkspaceIdFromURL method

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: optimize comment

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: optimize code

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

---------

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
Co-authored-by: Xinrui Bai-amazon <139305463+xinruiba@users.noreply.github.com>
(cherry picked from commit 0dce00a)
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 31.78%. Comparing base (d31d9de) to head (24a302e).
Report is 1 commits behind head on 2.x.

Files Patch % Lines
src/core/public/http/http_service.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              2.x    #6451       +/-   ##
===========================================
- Coverage   62.29%   31.78%   -30.52%     
===========================================
  Files        2943     2220      -723     
  Lines       57804    44678    -13126     
  Branches     9374     6949     -2425     
===========================================
- Hits        36009    14199    -21810     
- Misses      19753    29822    +10069     
+ Partials     2042      657     -1385     
Flag Coverage Δ
Windows_1 31.78% <66.66%> (+0.02%) ⬆️
Windows_2 ?
Windows_3 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SuZhou-Joe SuZhou-Joe merged commit e33cc22 into opensearch-project:2.x Apr 16, 2024
71 of 89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports v2.14.0 workspace
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants