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

[Fleet] Show callout when EPR unavailable #117598

Merged
merged 16 commits into from
Nov 9, 2021

Conversation

thomasneirynck
Copy link
Contributor

@thomasneirynck thomasneirynck commented Nov 4, 2021

Summary

Closes #115564


Show callout on the integration page when EPR is unavailable.

image


How to test:

  • make sure EPR is unavailble. Easiest way to do this is by add an entry to your etc/host file for https://epr-snapshot.elastic.co to loopback when testing this locally from main branch. (e.g. 127.0.0.1 epr-snapshot.elastic.co
    )
  • navigate to Integrations page

Checklist

Delete any items that are not applicable to this PR.

@thomasneirynck thomasneirynck added the release_note:skip Skip the PR/issue when compiling release notes label Nov 4, 2021
@thomasneirynck thomasneirynck changed the title Fleet/epr unavailable [Fleet] Show callout when EPR unavailable Nov 4, 2021
@thomasneirynck thomasneirynck added Feature:Unified Integrations Unified Integrations view feature v7.16.0 v8.0.0 v8.1.0 Team:Fleet Team label for Observability Data Collection Fleet team labels Nov 4, 2021
@thomasneirynck thomasneirynck marked this pull request as ready for review November 4, 2021 21:19
@thomasneirynck thomasneirynck requested review from a team as code owners November 4, 2021 21:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

doclinks lgtm

Copy link
Contributor

@joshdover joshdover left a 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.

Copy link
Contributor

@joshdover joshdover left a 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 😄

// 4xx/5xx's from EPR
return 500;
}
if (error instanceof RegistryConnectionError || error instanceof RegistryError) {
Copy link
Contributor Author

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.

Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@thomasneirynck thomasneirynck added the auto-backport Deprecated: Automatically backport this PR after it's merged label Nov 9, 2021
@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
fleet 615.1KB 616.8KB +1.7KB

Page load bundle

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

id before after diff
core 267.5KB 267.7KB +167.0B

History

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

@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0
7.16

The backport PRs will be merged automatically after passing CI.

kpatticha pushed a commit to kpatticha/kibana that referenced this pull request Nov 10, 2021
kibanamachine added a commit that referenced this pull request Nov 10, 2021
* [Fleet] Show callout when EPR unavailable (#117598)

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Thomas Neirynck <thomas@elastic.co>
kibanamachine added a commit that referenced this pull request Nov 10, 2021
* [Fleet] Show callout when EPR unavailable (#117598)

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Thomas Neirynck <thomas@elastic.co>
fkanout pushed a commit to fkanout/kibana that referenced this pull request Nov 17, 2021
roeehub pushed a commit to build-security/kibana that referenced this pull request Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated: Automatically backport this PR after it's merged Feature:Unified Integrations Unified Integrations view feature release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.16.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Handle scenario where EPR is not accessible
8 participants