Skip to content

Fix bug with Observability > APM header navigation#100845

Merged
smith merged 6 commits intoelastic:masterfrom
smith:nls/header-bug
May 28, 2021
Merged

Fix bug with Observability > APM header navigation#100845
smith merged 6 commits intoelastic:masterfrom
smith:nls/header-bug

Conversation

@smith
Copy link
Copy Markdown
Contributor

@smith smith commented May 28, 2021

Call setHeaderActionMenu(undefined) when the HeaderMenuPortal is unmounted.

Found this line in the docs:

Calling the handler with undefined will unmount the current mount point.

Which we weren't doing before.

Previous behavior:

  • Go to /app/observability/alerts
  • Click the "View in app" button for an APM alert
  • Click back
  • Click the "View in app" button for an APM alert
  • Get a weird toast error message and the header menu is gone forever

Now:

  • Go to /app/observability/alerts
  • Click the "View in app" button for an APM alert
  • Click back
  • Click the "View in app" button for an APM alert
  • Get a working header menu

Also fix a broken story caused by the new side nav.

Fixes #97140

smith added 3 commits May 27, 2021 13:50
Call `setHeaderActionMenu(undefined)` when the HeaderMenuPortal is unmounted.

Found this line in the docs:

> Calling the handler with `undefined` will unmount the current mount point.

Which we weren't doing before.

Previous behavior:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a weird toast error message and the header menu is gone forever

Now:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a working header menu

Fixes elastic#97140
@smith smith requested a review from a team May 28, 2021 04:32
@smith smith added auto-backport Deprecated - use backport:version if exact versions are needed Team:Observability Team label for Observability Team (for things that are handled across all of observability) Theme: rac label obsolete v7.14.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels May 28, 2021
@smith smith requested review from a team and removed request for a team May 28, 2021 04:33
@smith
Copy link
Copy Markdown
Contributor Author

smith commented May 28, 2021

@elasticmachine merge upstream

@smith smith removed the request for review from a team May 28, 2021 14:13
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 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 461.2KB 461.1KB -102.0B

History

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

@smith smith merged commit a00fa53 into elastic:master May 28, 2021
@smith smith deleted the nls/header-bug branch May 28, 2021 16:10
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 28, 2021
Call `setHeaderActionMenu(undefined)` when the HeaderMenuPortal is unmounted.

Found this line in the docs:

> Calling the handler with `undefined` will unmount the current mount point.

Which we weren't doing before.

Previous behavior:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a weird toast error message and the header menu is gone forever

Now:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a working header menu

Fixes elastic#97140
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 28, 2021
Call `setHeaderActionMenu(undefined)` when the HeaderMenuPortal is unmounted.

Found this line in the docs:

> Calling the handler with `undefined` will unmount the current mount point.

Which we weren't doing before.

Previous behavior:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a weird toast error message and the header menu is gone forever

Now:

* Go to /app/observability/alerts
* Click the "View in app" button for an APM alert
* Click back
* Click the "View in app" button for an APM alert
* Get a working header menu

Fixes #97140

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
gmmorris added a commit to gmmorris/kibana that referenced this pull request May 28, 2021
* master: (77 commits)
  [RAC][Security Solution] Register Security Detection Rules with Rule Registry (elastic#96015)
  [Enterprise Search] Log warning for Kibana/EntSearch version mismatches (elastic#100809)
  updating the saved objects test to include more saved object types (elastic#100828)
  [ML] Fix categorization job view examples link when datafeed uses multiple indices (elastic#100789)
  Fixing ES archive mapping failure (elastic#100835)
  Fix bug with Observability > APM header navigation (elastic#100845)
  [Security Solution][Endpoint] Add event filters summary card to the fleet endpoint tab (elastic#100668)
  [Actions] Taking space id into account when creating email footer link (elastic#100734)
  Ensure comments on parameters in arrow functions are captured in the docs and ci metrics. (elastic#100823)
  [Security Solution] Improve find rule and find rule status route performance (elastic#99678)
  [DOCS] Adds video to introduction (elastic#100906)
  [Fleet] Improve combo box for fleet settings (elastic#100603)
  [Security Solution][Endpoint] Endpoint generator and data loader support for Host Isolation (elastic#100813)
  [DOCS] Adds Lens video (elastic#100898)
  [TSVB] [Table tab] Fix "Math" aggregation (elastic#100765)
  chore(NA): moving @kbn/io-ts-utils into bazel (elastic#100810)
  [Alerting] Adding feature flag for enabling/disabling rule import and export (elastic#100718)
  [TSVB] Fix Upgrading from 7.12.1 to 7.13.0 breaks TSVB (elastic#100864)
  [Lens] Adds dynamic table cell coloring (elastic#95217)
  [Security Solution][Endpoint] Do not display searchbar in security-trusted apps if there are no items (elastic#100853)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Observability Team label for Observability Team (for things that are handled across all of observability) Theme: rac label obsolete v7.14.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HeaderMenuPortal error when navigating between observability and APM

3 participants