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

[APM] Fix search bar suggestions #141101

Merged
merged 10 commits into from
Sep 22, 2022
Merged

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Sep 20, 2022

Closes #140964
Related: #136694

In 8.4 this PR changed the search bar in APM to prefer static data view over dynamic data view when producing field suggestions. This surfaced a bug that has affected APM for a lot longer, which means that the static APM data view is only available in the space in which it was initially created (normally the "default" space).
Without a static data view the search bar stops working.

This PR reverts some of the changes introduced in #136694 specifically the reliance on static data view for search bar. It will now only use the dynamic data view which fixes the problem.

This PR also fixes the underlying problem, making the APM data view available across all spaces.

return {
created: false,
reason: 'Dataview already exists in current space',
};
Copy link
Member Author

Choose a reason for hiding this comment

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

For better debugging the endpoint now returns the reason for not creating the data view

@sorenlouv sorenlouv marked this pull request as ready for review September 21, 2022 15:30
@sorenlouv sorenlouv requested a review from a team as a code owner September 21, 2022 15:30
@sorenlouv sorenlouv added v8.5.0 release_note:fix Team:APM All issues that need APM UI Team support labels Sep 21, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:APM)

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM. just some nits.

return {
created: false,
reason:
'Auto-creation of data views has been disabled via "autoCreateApmDataView" config option',
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing translation here?!

if (!hasData) {
return;
return { created: false, reason: 'No APM data' };
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing translation

@sorenlouv
Copy link
Member Author

Buildkite, test this

@sorenlouv sorenlouv enabled auto-merge (squash) September 22, 2022 12:57
@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
apm 3.1MB 3.1MB -143.0B

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
apm 51 52 +1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
apm 29.0KB 28.9KB -141.0B

History

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

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.5

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 22, 2022
* main: (33 commits)
  Fix Next and Previous button on step screenshot carousel. (elastic#141422)
  [journeys] add a short delay after loading data (elastic#141437)
  skip failing test suite (elastic#140797)
  skip failing test suite (elastic#138776)
  Documents saved objects bulk delete API (elastic#141164)
  [Response Ops][Alerting] Defining default action params on connector type (elastic#141226)
  [ML] Explain Log Rate Spikes: Adds jest tests for query_utils/buildBaseFilterCriteria. (elastic#141213)
  [APM] Fix search bar suggestions (elastic#141101)
  close popover on click (elastic#141272)
  [Fleet] Update to use savedObjects bulkDelete for package policy delete (elastic#141276)
  [Security Solution][Endpoint][Response Actions] Do fuzzy search on given usernames for Actions Log (elastic#141239)
  [Graph] Fix guidance panel appearing for a moment when saving Graph (elastic#141228)
  [Fleet] Add experimental data stream features support to simplified package policy API (elastic#141288)
  Shameless copy of the retryTransientEsErrors from fleet (elastic#141246)
  [Security Solution][Fix]-Issue with disabled dataProvider (elastic#140735)
  Changing triggers actions ui routes to internal (elastic#141149)
  skip flaky test suit elastic#141356
  [SharedUX] Removing TODOs from KibanaPageTemplate (elastic#141043)
  [dashboard controls] skip failing test on cloud (elastic#141291)
  [Synthetics] unskip edit_monitor api integration tests (elastic#141277)
  ...
@sorenlouv sorenlouv deleted the fix-search-bar branch September 22, 2022 21:41
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Sep 23, 2022
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

sorenlouv added a commit to kibanamachine/kibana that referenced this pull request Sep 26, 2022
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Sep 26, 2022
kibanamachine added a commit that referenced this pull request Sep 26, 2022
(cherry picked from commit 52e01a3)

Co-authored-by: Søren Louv-Jansen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:APM All issues that need APM UI Team support v8.5.0 v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Search bar does not work in non-default spaces
5 participants