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

[Synthetics UI] Render a 404 error if a monitor doesn't exist #145569

Merged
merged 12 commits into from
Dec 6, 2022

Conversation

afgomez
Copy link
Contributor

@afgomez afgomez commented Nov 17, 2022

Summary

Closes #144366.

This PR needs to wait for #145598 to use a shared <NotFound /> component instead of creating its own.

How to test

  • Visit a monitor page with a bogus ID, like http://<kibana-base-path>/app/synthetics/monitor/i-dont-exist

Before:

Screenshot 2022-11-17 at 15 07 51

After:

Screenshot 2022-11-17 at 15 06 38

@afgomez afgomez requested a review from a team as a code owner November 17, 2022 14:16
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Nov 17, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@afgomez afgomez added release_note:skip Skip the PR/issue when compiling release notes v8.6.0 labels Nov 17, 2022
Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

LGTM once shared component is merged

May want to get design feedback. Feels like the prompt should be further down on the page.

Screen Shot 2022-11-21 at 10 56 21 AM

@shahzad31 shahzad31 added v8.7.0 and removed v8.6.0 labels Nov 30, 2022
@afgomez afgomez requested a review from a team as a code owner December 2, 2022 10:37
Comment on lines +56 to +62
if (colorMode === 'DARK') {
const { default: imgSrc } = await import(`./assets/404_astronaut_dark.png`);
setImageSrc(imgSrc);
} else {
const { default: imgSrc } = await import(`./assets/404_astronaut_light.png`);
setImageSrc(imgSrc);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@elastic/kibana-global-experience Kibana's optimizer needs static paths in all import statements so I need to deduplicate this.

Copy link
Contributor

@majagrubic majagrubic left a comment

Choose a reason for hiding this comment

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

shared-ux changes look good

@afgomez afgomez enabled auto-merge (squash) December 2, 2022 13:01
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
synthetics 1087 1091 +4

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.1MB 1.1MB +2.8KB
Unknown metric groups

async chunk count

id before after diff
synthetics 18 20 +2

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 109 115 +6
securitySolution 443 449 +6
total +20

miscellaneous assets size

id before after diff
synthetics 0.0B 387.0KB ⚠️ +387.0KB

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 68 74 +6
osquery 110 117 +7
securitySolution 520 526 +6
total +21

History

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

@afgomez afgomez merged commit 00df93e into elastic:main Dec 6, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Dec 6, 2022
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 release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Synthetics] Monitor details page - renders incorrectly when a monitor does not exist
7 participants