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

hide search query section when version is less than 2.19 #600

Closed
wants to merge 2 commits into from

Conversation

kamahuan
Copy link
Contributor

@kamahuan kamahuan commented Feb 6, 2025

Description

Upon discussion with the UX team, we need to hide the whole transform query section if backend version is less than 2.19. The issue states to hide the processor list section. We need to hide the whole query section instead.

Issues Resolved

550

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ohltyler
Copy link
Member

ohltyler commented Feb 6, 2025

How about hiding the rendering of the component altogether if the version is <2.19? Then, you don't need to add any logic to fetch the data source ID. The parent component SearchInputs already has the data source ID; you can copy the version checking logic there. And, you can then hide the entire wrapped EuiFlexItem so there is no extra empty space.

Additionally, suggest to use semver for handling the version checks, like what you've done here for example prior.

And lastly, please add before/after screenshots.

@ohltyler
Copy link
Member

ohltyler commented Feb 7, 2025

Closing in favor of #605 .

@ohltyler ohltyler closed this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] hide ProcessorList component for SEARCH_REQUEST when version < 2.19.0
2 participants