-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Show callout when EPR unavailable #117598
[Fleet] Show callout when EPR unavailable #117598
Conversation
Pinging @elastic/fleet (Team:Fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doclinks lgtm
...gins/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, would like to discuss the copy before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok actually one change 😄
...gins/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx
Outdated
Show resolved
Hide resolved
// 4xx/5xx's from EPR | ||
return 500; | ||
} | ||
if (error instanceof RegistryConnectionError || error instanceof RegistryError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding explicit check on both, even though RegistryConnectionError subclasses from RegistryError. It may help as in-code documentation, and doesn't tie it as much to class-hierarchy.
...gins/fleet/public/applications/integrations/sections/epm/screens/home/available_packages.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Closes #115564
Show callout on the integration page when EPR is unavailable.
How to test:
etc/host
file forhttps://epr-snapshot.elastic.co
to loopback when testing this locally frommain
branch. (e.g.127.0.0.1 epr-snapshot.elastic.co
)
Checklist
Delete any items that are not applicable to this PR.