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

[MDS] Mute the non-mds endpoints for direct query data connections #8537

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

RyanL1997
Copy link
Contributor

Description

  • Mute the non-mds endpoints for direct query data connections when MDS is enabled
  • Use mds data connection endpoint instead for fetching local cluster direct query content

Issues Resolved

Testing the changes

Changelog

  • fix: [MDS] Mute the non-mds endpoints for direct query data connections

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

… enabled

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: Ryan Liang <jiallian@amazon.com>
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 60.93%. Comparing base (9eae148) to head (1dad59b).
Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
.../data_source_management/public/components/utils.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8537   +/-   ##
=======================================
  Coverage   60.93%   60.93%           
=======================================
  Files        3769     3769           
  Lines       89508    89508           
  Branches    14013    14013           
=======================================
  Hits        54541    54541           
  Misses      31557    31557           
  Partials     3410     3410           
Flag Coverage Δ
Linux_1 29.00% <0.00%> (ø)
Linux_2 56.25% <ø> (ø)
Linux_3 37.75% <0.00%> (ø)
Linux_4 29.91% <0.00%> (ø)
Windows_1 29.02% <0.00%> (ø)
Windows_2 56.20% <ø> (ø)
Windows_3 37.75% <0.00%> (ø)
Windows_4 29.91% <0.00%> (ø)

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.

@mengweieric mengweieric merged commit 47ae28b into opensearch-project:main Oct 15, 2024
69 of 70 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 15, 2024
…8537)

* Mute the non-mds  endpoints for direct query data connections when MDS enabled

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Handle the case for local cluster too

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Handle the case for local cluster 2

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Changeset file for PR #8537 created/updated

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 47ae28b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
BionIT pushed a commit that referenced this pull request Oct 16, 2024
…8537) (#8597)

* Mute the non-mds  endpoints for direct query data connections when MDS enabled



* Handle the case for local cluster too



* Handle the case for local cluster 2



* Changeset file for PR #8537 created/updated

---------



(cherry picked from commit 47ae28b)

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 18, 2024
…8537)

* Mute the non-mds  endpoints for direct query data connections when MDS enabled

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Handle the case for local cluster too

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Handle the case for local cluster 2

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Changeset file for PR #8537 created/updated

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 47ae28b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mengweieric pushed a commit that referenced this pull request Oct 18, 2024
…8537) (#8637)

* Mute the non-mds  endpoints for direct query data connections when MDS enabled



* Handle the case for local cluster too



* Handle the case for local cluster 2



* Changeset file for PR #8537 created/updated

---------



(cherry picked from commit 47ae28b)

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
sejli pushed a commit to sejli/OpenSearch-Dashboards that referenced this pull request Oct 21, 2024
…pensearch-project#8537)

* Mute the non-mds  endpoints for direct query data connections when MDS enabled

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Handle the case for local cluster too

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Handle the case for local cluster 2

Signed-off-by: Ryan Liang <jiallian@amazon.com>

* Changeset file for PR opensearch-project#8537 created/updated

---------

Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants