Skip to content

Commit

Permalink
[8.x] [React@18 failing tests] Dataset quality handles user privileges (
Browse files Browse the repository at this point in the history
#197830) (#197872)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[React@18 failing tests] Dataset quality handles user privileges
(#197830)](#197830)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-25T16:21:28Z","message":"[React@18
failing tests] Dataset quality handles user privileges
(#197830)","sha":"4d369946574bc9f07a5720dde66cfd4719795be6","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","ci:project-deploy-observability"],"title":"[React@18
failing tests] Dataset quality handles user
privileges","number":197830,"url":"https://github.com/elastic/kibana/pull/197830","mergeCommit":{"message":"[React@18
failing tests] Dataset quality handles user privileges
(#197830)","sha":"4d369946574bc9f07a5720dde66cfd4719795be6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197830","number":197830,"mergeCommit":{"message":"[React@18
failing tests] Dataset quality handles user privileges
(#197830)","sha":"4d369946574bc9f07a5720dde66cfd4719795be6"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <[email protected]>
  • Loading branch information
kibanamachine and Dosant authored Oct 25, 2024
1 parent 94a2aef commit ac48c81
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ export const useRedirectLink = <T extends BasicDataStream>({
share.url.locators.get<SingleDatasetLocatorParams>(SINGLE_DATASET_LOCATOR_ID);

const isLogsExplorerAppAccessible = useObservable(
application.applications$.pipe(
map(
(apps) =>
(apps.get(OBSERVABILITY_LOGS_EXPLORER_APP_ID)?.status ?? AppStatus.inaccessible) ===
AppStatus.accessible
)
useMemo(
() =>
application.applications$.pipe(
map(
(apps) =>
(apps.get(OBSERVABILITY_LOGS_EXPLORER_APP_ID)?.status ?? AppStatus.inaccessible) ===
AppStatus.accessible
)
),
[application.applications$]
),
false
);
Expand Down

0 comments on commit ac48c81

Please sign in to comment.