-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[data views] allow fields that start with an underscore in the field list #111238
[data views] allow fields that start with an underscore in the field list #111238
Conversation
.concat(metaFields) | ||
.reduce<{ names: string[]; hash: Record<string, string> }>( | ||
.reduce<{ names: string[]; map: Map<string, string> }>( |
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.
change to map since this is user provided data, avoiding prototype pollution
Pinging @elastic/kibana-app-services (Team:AppServices) |
@@ -116,6 +116,8 @@ export function readFieldCapsResponse( | |||
}), | |||
{} | |||
), | |||
// @ts-expect-error |
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 created a PR to address this - elastic/elasticsearch-js#1547
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.
Code changes LGTM
I need to hold off on this because discover has its own method of creating the field list and it needs to be in agreement with the data view field list |
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/spaces_only/tests/actions/enqueue·ts.alerting api integration spaces only Actions enqueue should never leaved a failed task, even if max attempts is reachedStandard Out
Stack Trace
Metrics [docs]Public APIs missing comments
Page load bundle
History
To update your PR or re-run it, just comment with: |
…list (elastic#111238) * stop filtering out fields that start with underscore
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
Allow fields starting with underscores in data view field lists.
Closes #2551