[APM] Show missing permissions message to the user on the Services overview#56374
[APM] Show missing permissions message to the user on the Services overview#56374cauemarcondes merged 5 commits intoelastic:masterfrom
Conversation
There was a problem hiding this comment.
The Permission component was added here, as it should show part of the original page, such as the Breadcrumbs
|
@elasticmachine merge upstream |
smith
left a comment
There was a problem hiding this comment.
A few changes needed, but looks pretty nice.
x-pack/legacy/plugins/apm/server/lib/security/getPermissions.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
I changed it to iconColor={''} TS doesn't complain about it. But this is used to show the APM icon with color. Otherwise, it shows black and white. I will probably open a new issue because null should be valid as described here: https://elastic.github.io/eui/#/display/emptyprompt
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
dgieselaar
left a comment
There was a problem hiding this comment.
looking good, just a couple of questions & suggestions
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/shared/Links/ElasticDocsLink.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/context/MatchedRouteContext.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/context/MatchedRouteContext.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Main/ProvideBreadcrumbs.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/apm/public/components/app/Permission/index.tsx
Outdated
Show resolved
Hide resolved
1915b15 to
881cd57
Compare
x-pack/legacy/plugins/apm/public/context/MatchedRouteContext.tsx
Outdated
Show resolved
Hide resolved
881cd57 to
ac6ab86
Compare
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…erview (elastic#56374) * creating permission page * pr comments * creating permission page * fixing pr comments * removing breadcrumb and adding static label to dismiss the permission page
…b.com:jloleysens/kibana into console/feature/text-objects-in-saved-objects * 'console/feature/text-objects-in-saved-objects' of github.com:jloleysens/kibana: (103 commits) fix auto closing new vis modal when navigating to lens or when navigating away with browser history (elastic#56998) TS of esKuery\node_types (elastic#56857) Kibana app migration: Move static code dependencies into kibana_legacy plugin, part 1 (elastic#56408) Retry ES API calls that fail with 410/Gone (elastic#56950) [APM] Show missing permissions message to the user on the Services overview (elastic#56374) Fixing flaky CI tests for custom appRoutes (elastic#55763) [State Management][Docs] State syncing utils docs (elastic#56479) [Index management] Remove index mapper setting in tests (elastic#57066) Exposed common EuiExpressions to separate components be able to reuse for building new for Alert Types (elastic#56466) [SIEM] update url state between page if date is relative (elastic#56813) fix for chart_types test (elastic#57056) chore(NA): remove compress from dll minimizer (elastic#57023) [File upload] Migrate routing to NP & add route validation (elastic#52313) Adding docs for grouped nav advanced setting (elastic#57013) Use i18n titles for field formatters, human names for numeral locales (elastic#56348) [Maps] Remove EMS catalogue url from docs (elastic#57020) [Endpoint] ERT-82 ERT-83 ERT-84: Alert list API with pagination (elastic#56538) [DOCS] Adds Apple notarization info to install doc (elastic#57042) [ML] New Platform server shim: update results service routes to use new platform router (elastic#56886) Fix typo on detection engine rule (elastic#56993) ...
closes #50052
Checks whether a user has permission to read the APM index. It does it by calling a new API
/api/apm/security/permissions, it returnshasPermission: true | false. Based on this response shows the permission page on top of any APM page.It doesn't block the UI completely, as the user can still manually close the view the open the APM page.