-
Notifications
You must be signed in to change notification settings - Fork 920
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
[dataset-nav][bug] get connections by cluster and update client namespace #7609
[dataset-nav][bug] get connections by cluster and update client namespace #7609
Conversation
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7609 +/- ##
=======================================
Coverage 63.64% 63.64%
=======================================
Files 3634 3632 -2
Lines 80099 80043 -56
Branches 12682 12677 -5
=======================================
- Hits 50977 50943 -34
+ Misses 26015 25993 -22
Partials 3107 3107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Signed-off-by: Sean Li <lnse@amazon.com>
Signed-off-by: Sean Li <lnse@amazon.com>
a28db12
to
ffcfd8a
Compare
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.
LGTM, small nits but none are blockers
export const ASYNC_QUERY_SESSION_ID = 'async-query-session-id'; | ||
export const ASYNC_QUERY_EXTERNAL_DATASOURCES_CACHE = 'async_query_external_datasources_cache'; | ||
export const RECENT_DATASET_OPTIONS_CACHE = 'recent_dataset_options_cache'; | ||
export const ASYNC_QUERY = { |
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 like this structure, nice
@@ -18,17 +18,16 @@ import { ConfigSchema } from '../common/config'; | |||
import { defineRoutes } from './routes'; | |||
import { | |||
pplSearchStrategyProvider, | |||
pplRawSearchStrategyProvider, |
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.
nit: are we using this?
@@ -4,5 +4,6 @@ | |||
*/ | |||
|
|||
export { pplSearchStrategyProvider } from './ppl_search_strategy'; | |||
export { pplRawSearchStrategyProvider } from './ppl_raw_search_strategy'; |
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.
nit: I dont see this being referenced anywhere
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.
it probably wasn't required but i just moved it to the right location it was previously being exported differently than the other search strategies.,
…pace (#7609) * changes from abby Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * refactor api Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * polling db not populating Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * fixing datasource cache Signed-off-by: Sean Li <lnse@amazon.com> * fixing session id stuff and running async queries Signed-off-by: Sean Li <lnse@amazon.com> * Changeset file for PR #7609 created/updated --------- Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sean Li <lnse@amazon.com> Co-authored-by: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: Sean Li <lnse@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit d09895a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pace (#7609) * changes from abby Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * refactor api Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * polling db not populating Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * fixing datasource cache Signed-off-by: Sean Li <lnse@amazon.com> * fixing session id stuff and running async queries Signed-off-by: Sean Li <lnse@amazon.com> * Changeset file for PR #7609 created/updated --------- Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sean Li <lnse@amazon.com> Co-authored-by: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: Sean Li <lnse@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit d09895a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pace (#7609) (#7611) * changes from abby * refactor api * polling db not populating * fixing datasource cache * fixing session id stuff and running async queries * Changeset file for PR #7609 created/updated --------- (cherry picked from commit d09895a) Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sean Li <lnse@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: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: Sean Li <lnse@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…pace (#7609) * changes from abby Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * refactor api Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * polling db not populating Signed-off-by: Kawika Avilla <kavilla414@gmail.com> * fixing datasource cache Signed-off-by: Sean Li <lnse@amazon.com> * fixing session id stuff and running async queries Signed-off-by: Sean Li <lnse@amazon.com> * Changeset file for PR #7609 created/updated --------- Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sean Li <lnse@amazon.com> Co-authored-by: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: Sean Li <lnse@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit d09895a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pace (#7609) (#7610) * changes from abby * refactor api * polling db not populating * fixing datasource cache * fixing session id stuff and running async queries * Changeset file for PR #7609 created/updated --------- (cherry picked from commit d09895a) Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sean Li <lnse@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: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: Sean Li <lnse@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…pace (#7609) (#7610) * changes from abby * refactor api * polling db not populating * fixing datasource cache * fixing session id stuff and running async queries * Changeset file for PR #7609 created/updated --------- (cherry picked from commit d09895a) Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sean Li <lnse@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: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: Sean Li <lnse@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 7605de7) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pace (#7609) (#7610) (#8258) * changes from abby * refactor api * polling db not populating * fixing datasource cache * fixing session id stuff and running async queries * Changeset file for PR #7609 created/updated --------- (cherry picked from commit d09895a) (cherry picked from commit 7605de7) Signed-off-by: Kawika Avilla <kavilla414@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sean Li <lnse@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: abbyhu2000 <abigailhu2000@gmail.com> Co-authored-by: Sean Li <lnse@amazon.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…nt namespace (opensearch-project#7609) (opensearch-project#7610) (opensearch-project#8258)" This reverts commit 9a2f697.
Description
There was a conflict in namespaces when registering a transport client with OpenSearch cluster. The schemas were also conflicting with observability and data source mgmt endpoints.
Modifying the namespace for query enhancements to avoid conflicts and then initialize the external datasource connections on load.
Issues Resolved
n/a
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration