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

[Discover] Remove Default Cluster #8778

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

sejli
Copy link
Member

@sejli sejli commented Oct 31, 2024

Description

Removes default cluster from index and S3 dataset types cluster lists

Issues Resolved

Screenshot

Testing the changes

Changelog

  • skip

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

type: 'DATA_SOURCE',
}))
);
const dataSources: DataStructure[] = response.savedObjects
Copy link
Member

Choose a reason for hiding this comment

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

will need to fast follow on checking if local cluster is available

@ashwin-pc
Copy link
Member

Lets fast follow to allow local cluster to show up as well

Copy link
Member

@joshuali925 joshuali925 left a comment

Choose a reason for hiding this comment

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

approving but we should add some logic to check and add if local datasource exists, and it should say local cluster, not default cluster when we do

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 60.75%. Comparing base (3381dcd) to head (47ed6af).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ery/query_string/dataset_service/lib/index_type.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8778   +/-   ##
=======================================
  Coverage   60.75%   60.75%           
=======================================
  Files        3798     3798           
  Lines       90690    90690           
  Branches    14277    14277           
=======================================
  Hits        55101    55101           
  Misses      32090    32090           
  Partials     3499     3499           
Flag Coverage Δ
Linux_1 29.05% <0.00%> (ø)
Linux_2 56.39% <ø> (ø)
Linux_3 37.61% <0.00%> (ø)
Linux_4 29.82% <57.14%> (ø)
Windows_1 29.07% <0.00%> (ø)
Windows_2 56.34% <ø> (ø)
Windows_3 37.61% <0.00%> (ø)
Windows_4 29.82% <57.14%> (ø)

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.

Copy link
Member

@kavilla kavilla left a comment

Choose a reason for hiding this comment

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

LGTM. Could we verify the source of the error. Is from the API and we should have fixed the response, or is it because we always need to have a data source if now. I would be surprised we are the only ones that ran into this issue. I thought it was save to assume if no data source Id then the default data source Is used.

@ashwin-pc ashwin-pc merged commit 92e0766 into opensearch-project:main Nov 1, 2024
73 of 74 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 1, 2024
Signed-off-by: Sean Li <[email protected]>
(cherry picked from commit 92e0766)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
amsiglan pushed a commit to amsiglan/OpenSearch-Dashboards that referenced this pull request Nov 1, 2024
sejli pushed a commit that referenced this pull request Nov 5, 2024
(cherry picked from commit 92e0766)

Signed-off-by: Sean Li <[email protected]>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x seasoned-contributor Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry v2.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants