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

[UX] make route match optional in EnvironmentFilter #105780

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

dgieselaar
Copy link
Member

Closes #105757.

The UX app uses the EnvironmentFilter component to display an environment selector. The EnvironmentFilter component uses useApmParams which was introduced in #104274. However, APM routes are not used for the UX app, so useApmParams() cannot match any routes and return route parameters.

This change makes a route match for useApmParams optional.

@dgieselaar dgieselaar added Team:APM All issues that need APM UI Team support Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 labels Jul 15, 2021
@dgieselaar dgieselaar requested review from a team as code owners July 15, 2021 14:46
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@elasticmachine
Copy link
Contributor

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

@kibanamachine
Copy link
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
apm 4.3MB 4.3MB +345.0B

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

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

LGTM, had to do yarn kbn clean, to make it work !!

@dgieselaar dgieselaar enabled auto-merge (squash) July 16, 2021 14:35
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

@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 16, 2021
kibanamachine added a commit that referenced this pull request Jul 16, 2021
Closes #105757.

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
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:APM All issues that need APM UI Team support Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UX] App no longer starts up after APM app routing changes
5 participants