-
Notifications
You must be signed in to change notification settings - Fork 894
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] Clean up enhanced search API #8226
[discover] Clean up enhanced search API #8226
Conversation
* Deletes the connections service. * Removes dataframe object being passed into request * Deletes unused APIs Signed-off-by: Kawika Avilla <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8226 +/- ##
==========================================
+ Coverage 64.05% 64.07% +0.02%
==========================================
Files 3741 3740 -1
Lines 88629 88604 -25
Branches 13801 13804 +3
==========================================
+ Hits 56771 56777 +6
+ Misses 31260 31228 -32
- Partials 598 599 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -44,7 +44,7 @@ export const DEFAULT_DATA = { | |||
} as DataStructure, | |||
LOCAL_DATASOURCE: { | |||
id: '', | |||
title: 'Local Cluster', | |||
title: 'Default Cluster', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think this is correct. This should only show if there is a local cluster. The default cluster will be returned as a part of the datasources API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that makes sense i was worried making too big of a change in the case of no local cluster.
should we create an issue for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the expected behaviour is that this option only shows up when you have a local cluster. If MDS is off the index list should be shown directly.
const query = (dataSource.meta as DataStructureCustomMeta).query; | ||
const response = await http.fetch(`../../api/enhancements/datasource/external`, { | ||
query, | ||
const abortController = new AbortController(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we do with this abort controller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to verify if using it correctly yet. but in the case of the user selecting a connection accidentally and then selecting another connection immediately aborting the previous call
* Clean up enhanced search API * Deletes the connections service. * Removes dataframe object being passed into request * Deletes unused APIs Signed-off-by: Kawika Avilla <[email protected]> * Changeset file for PR #8226 created/updated --------- Signed-off-by: Kawika Avilla <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 6296b4e) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.17 2.17
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.17
# Create a new branch
git switch --create backport/backport-8226-to-2.17
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6296b4ed35f20995cad79e009b836cb2a6b279c4
# Push it to GitHub
git push --set-upstream origin backport/backport-8226-to-2.17
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.17 Then, create a pull request where the |
* Clean up enhanced search API * Deletes the connections service. * Removes dataframe object being passed into request * Deletes unused APIs Signed-off-by: Kawika Avilla <[email protected]> * Changeset file for PR opensearch-project#8226 created/updated --------- Signed-off-by: Kawika Avilla <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Clean up enhanced search API * Deletes the connections service. * Removes dataframe object being passed into request * Deletes unused APIs * Changeset file for PR #8226 created/updated --------- (cherry picked from commit 6296b4e) Signed-off-by: Kawika Avilla <[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> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Clean up enhanced search API * Deletes the connections service. * Removes dataframe object being passed into request * Deletes unused APIs Signed-off-by: Kawika Avilla <[email protected]> * Changeset file for PR #8226 created/updated --------- Signed-off-by: Kawika Avilla <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 6296b4e) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Clean up enhanced search API * Deletes the connections service. * Removes dataframe object being passed into request * Deletes unused APIs * Changeset file for PR #8226 created/updated --------- (cherry picked from commit 6296b4e) Signed-off-by: Kawika Avilla <[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> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Clean up enhanced search API * Deletes the connections service. * Removes dataframe object being passed into request * Deletes unused APIs Signed-off-by: Kawika Avilla <[email protected]> * Changeset file for PR opensearch-project#8226 created/updated --------- Signed-off-by: Kawika Avilla <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
) (opensearch-project#8284)" This reverts commit fba9d40.
Description
Issues Resolved
n/a
Screenshot
Testing the changes
locally
Changelog
Check List
yarn test:jest
yarn test:jest_integration