-
Notifications
You must be signed in to change notification settings - Fork 890
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
[Fix] Show Alias Fields in Discover Tab #7930
Conversation
Signed-off-by: Suchit Sahoo <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7930 +/- ##
==========================================
- Coverage 64.33% 60.98% -3.36%
==========================================
Files 3677 3684 +7
Lines 81200 87040 +5840
Branches 12944 13377 +433
==========================================
+ Hits 52240 53077 +837
- Misses 25749 30750 +5001
- Partials 3211 3213 +2
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: Sean Li <[email protected]>
@@ -762,5 +762,19 @@ export function getUiSettings(): Record<string, UiSettingsParams<unknown>> { | |||
}), | |||
schema: schema.arrayOf(schema.string()), | |||
}, | |||
[UI_SETTINGS.SEARCH_USE_FIELDS]: { | |||
name: i18n.translate('data.advancedSettings.searchUseFieldsTitle', { | |||
defaultMessage: 'Include all fields in search request', |
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.
this setting is to include all fields, would search:includeAllFields
be better than search:useFields
?
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.
My thinking was that previously, we weren't using the fields
field in the request body. Turning on this property "uses" fields
. I think in this case, the title itself could be something different.
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 suggestion
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: Sean Li <[email protected]>
* Add field search option Signed-off-by: Suchit Sahoo <[email protected]> * initial implementation for new setting Signed-off-by: Sean Li <[email protected]> * Changeset file for PR opensearch-project#7930 created/updated * update naming Signed-off-by: Sean Li <[email protected]> * removing page reload Signed-off-by: Sean Li <[email protected]> * updating names Signed-off-by: Sean Li <[email protected]> --------- Signed-off-by: Suchit Sahoo <[email protected]> Signed-off-by: Sean Li <[email protected]> Co-authored-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Add field search option Signed-off-by: Suchit Sahoo <[email protected]> * initial implementation for new setting Signed-off-by: Sean Li <[email protected]> * Changeset file for PR #7930 created/updated * update naming Signed-off-by: Sean Li <[email protected]> * removing page reload Signed-off-by: Sean Li <[email protected]> * updating names Signed-off-by: Sean Li <[email protected]> --------- Signed-off-by: Suchit Sahoo <[email protected]> Signed-off-by: Sean Li <[email protected]> Co-authored-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 0c047dc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add field search option Signed-off-by: Suchit Sahoo <[email protected]> * initial implementation for new setting Signed-off-by: Sean Li <[email protected]> * Changeset file for PR #7930 created/updated * update naming Signed-off-by: Sean Li <[email protected]> * removing page reload Signed-off-by: Sean Li <[email protected]> * updating names Signed-off-by: Sean Li <[email protected]> --------- Signed-off-by: Suchit Sahoo <[email protected]> Signed-off-by: Sean Li <[email protected]> Co-authored-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 0c047dc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add field search option * initial implementation for new setting * Changeset file for PR #7930 created/updated * update naming * removing page reload * updating names --------- (cherry picked from commit 0c047dc) Signed-off-by: Suchit Sahoo <[email protected]> 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> Co-authored-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Add field search option * initial implementation for new setting * Changeset file for PR #7930 created/updated * update naming * removing page reload * updating names --------- (cherry picked from commit 0c047dc) Signed-off-by: Suchit Sahoo <[email protected]> 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> Co-authored-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Adds a new advanced setting that updates the Discover's search request to include
"fields": ["*"]
. Defaults to off, open to suggestions for the title and description of the new setting.Thanks @LDrago27 for the deep dive and fix!
Issues Resolved
#7632
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration