-
Notifications
You must be signed in to change notification settings - Fork 916
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-next] (QueryEditorExtensions) change isEnabled to an observable #7183
[Discover-next] (QueryEditorExtensions) change isEnabled to an observable #7183
Conversation
Signed-off-by: Joshua Li <joshuali925@gmail.com>
Signed-off-by: Joshua Li <joshuali925@gmail.com>
❌ 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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7183 +/- ##
==========================================
+ Coverage 67.50% 67.56% +0.05%
==========================================
Files 3468 3469 +1
Lines 68402 68479 +77
Branches 11117 11130 +13
==========================================
+ Hits 46174 46266 +92
+ Misses 19532 19511 -21
- Partials 2696 2702 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Awesome!
…able (#7183) * (QueryEditorExtensions) change isEnabled to an observable Signed-off-by: Joshua Li <joshuali925@gmail.com> * rename search bar extension to query editor extension in comments Signed-off-by: Joshua Li <joshuali925@gmail.com> * Changeset file for PR #7183 created/updated --------- Signed-off-by: Joshua Li <joshuali925@gmail.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 774f64e) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…nnection previously query assist reads the datasource id from the selected index pattern. this PR updates it to read from the new `ConnectionsService` - fix!: remove dataSource key in get connection response - this is a breaking change on the return response of `GET ${API.DATA_SOURCE.CONNECTIONS}/{dataSourceId}` to be consistent with type - change isEnabled to an observable based on selected connection - this depends on opensearch-project/OpenSearch-Dashboards#7183, should go in with that PR Signed-off-by: Joshua Li <joshuali925@gmail.com>
…able (#7183) (#7193) * (QueryEditorExtensions) change isEnabled to an observable * rename search bar extension to query editor extension in comments * Changeset file for PR #7183 created/updated --------- (cherry picked from commit 774f64e) Signed-off-by: Joshua Li <joshuali925@gmail.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>
…able (opensearch-project#7183) (opensearch-project#7193) * (QueryEditorExtensions) change isEnabled to an observable * rename search bar extension to query editor extension in comments * Changeset file for PR opensearch-project#7183 created/updated --------- (cherry picked from commit 774f64e) Signed-off-by: Joshua Li <joshuali925@gmail.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>
Description
Query Assist feature depends on QueryEditorExtensions and datasource connections service. The change to the currently selected connection will be exposed through an observable (ref), changing
isEnabled
to an observable makes it easier to update when the selected connection changes.Issues Resolved
#7034 (comment)
Screenshot
Testing the changes
Changelog
isEnabled
to an observableCheck List
yarn test:jest
yarn test:jest_integration