Skip to content
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

[Vega] Add Filter custom label for kibanaAddFilter #124498

Merged
merged 7 commits into from
Feb 7, 2022

Conversation

aswath86
Copy link
Contributor

@aswath86 aswath86 commented Feb 3, 2022

Summary

Vega 'kibanaAddFilter' allows to add Elastic Query DSL and index. The implementation buildQueryFilter takes in third parameter to set a custom label in 'Add Filter'. At the moment, kibanaAddFilter can only take query and index. This PR adds in the third 'alias' parameter to set the custom label from Vega

buildQueryFilter = (query: QueryStringFilter['query'], index: string, alias: string)

Below image is self explanatory. The first filter in the image is without custom label (ugly in my opinion), and the second filter is with custom label set in Vega.

Vega_kibanaAddFilter_Custom-label

@aswath86 aswath86 requested a review from a team as a code owner February 3, 2022 10:15
@kibanamachine
Copy link
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@bhavyarm bhavyarm added Feature:Vega Vega visualizations Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 3, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@alexwizp alexwizp self-requested a review February 3, 2022 13:15
@alexwizp
Copy link
Contributor

alexwizp commented Feb 4, 2022

@elasticmachine merge upstream

@alexwizp alexwizp self-assigned this Feb 4, 2022
@alexwizp alexwizp added the backport:skip This commit does not require backporting label Feb 4, 2022
Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested locally

@alexwizp
Copy link
Contributor

alexwizp commented Feb 4, 2022

Buildkite, test this

@flash1293
Copy link
Contributor

@elasticmachine merge upstream

@flash1293
Copy link
Contributor

Buildkite, test this

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and LGTM, thanks for your contribution! I added the feature to the documentation

@flash1293 flash1293 enabled auto-merge (squash) February 7, 2022 10:22
@flash1293
Copy link
Contributor

@elasticmachine run elasticsearch-ci/docs

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
visTypeVega 2.0MB 2.0MB +4.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @alexwizp

@flash1293 flash1293 merged commit 164eaf2 into elastic:main Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting 💝community Feature:Vega Vega visualizations release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants