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

[BUG][OBS-UX-MNGMT] Alert details page search bar doesn't consider QueryConfig in the Kibana Advanced setting #172498

Conversation

fkanout
Copy link
Contributor

@fkanout fkanout commented Dec 4, 2023

Summary

It fixes #172495 by considering the Query related config in the Kbiana advanced settings.

Before

Screenshot 2023-12-04 at 13 33 07

After

Screenshot 2023-12-04 at 17 50 56

@fkanout fkanout added bug Fixes for quality problems that affect the customer experience release_note:fix backport:skip This commit does not require backporting v8.12.0 Team:obs-ux-management Observability Management User Experience Team labels Dec 4, 2023
@fkanout fkanout self-assigned this Dec 4, 2023
@fkanout fkanout requested a review from a team as a code owner December 4, 2023 16:52
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@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
observability 1.1MB 1.1MB +250.0B

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

cc @fkanout

@mgiota mgiota self-requested a review December 4, 2023 22:24
Copy link
Contributor

@mgiota mgiota left a comment

Choose a reason for hiding this comment

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

@fkanout Following up the discussion on a similar issue that has been fixed with this PR, I confirm that your provided solution is correct and fixes the problem with the leading wildcard queries.

@fkanout fkanout merged commit 1007c49 into elastic:main Dec 5, 2023
13 checks passed
@@ -41,6 +43,7 @@ export function ObservabilityAlertSearchBar({
status,
}: ObservabilityAlertSearchBarProps) {
const toasts = useToasts();
const { uiSettings } = useKibana().services;
Copy link
Member

Choose a reason for hiding this comment

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

@fkanout We should not use the useKibana here directly but rather provide the related services via services prop to ensure this dependency is clear for the consumers. (That was the reason that this component didn't have useKibana so far)
For more information about why we need to pass dependency like this, you can check this presentation.

Would you please create a PR to fix this issue?

cc @mgiota

Copy link
Contributor

Choose a reason for hiding this comment

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

@maryam-saeidi Very good point, you are right we have services passed, so we can get uiSettings from there. Nice presentation!

mgiota added a commit that referenced this pull request Jan 4, 2024
Refactors according to this
[comment](#172498 (comment))

---------

Co-authored-by: Kibana Machine <[email protected]>
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 bug Fixes for quality problems that affect the customer experience Feature:Alerting release_note:fix Team:obs-ux-management Observability Management User Experience Team v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG][OBS-UX-MNGMT] Alert details page search bar doesn't consider QueryConfig in the Kibana Advanced setting
6 participants