-
Notifications
You must be signed in to change notification settings - Fork 891
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] notify user about field_type_tolerance for SQL/PPL in query footer #8702
[Discover] notify user about field_type_tolerance for SQL/PPL in query footer #8702
Conversation
…y footer Signed-off-by: Joshua Li <[email protected]>
Signed-off-by: Joshua Li <[email protected]>
c1e5630
to
428afba
Compare
@@ -87,13 +92,16 @@ export class QueryEnhancementsPlugin | |||
editor: enhancedPPLQueryEditor, | |||
editorSupportedAppNames: ['discover'], | |||
supportedAppNames: ['discover', 'data-explorer'], | |||
inputFooterItems: { |
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.
Why cant we reuse the editor prop or pass it directly in the editor?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8702 +/- ##
=======================================
Coverage 60.84% 60.85%
=======================================
Files 3793 3794 +1
Lines 90486 90518 +32
Branches 14212 14221 +9
=======================================
+ Hits 55057 55081 +24
- Misses 31939 31943 +4
- Partials 3490 3494 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
this is no longer needed |
Description
Add icon in query editor footer to notify user about limitation in array type in SQL/PPL responses. The icon is present if
plugins.query.field_type_tolerance
is unset or set tofalse
, clicking on it will open a popover with details. The popover is open by default if user hasn't seen it before (state persisted in localStorage).This only applies to OpenSearch data sources. If request to cluster settings API failed, it will not display the icon.
This PR also renames
SQL
toOpenSearch SQL
Issues Resolved
related: opensearch-project/sql#3118
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration