-
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
[RAM] Allow users to see event logs from all spaces they have access to #140449
Merged
Merged
Changes from 12 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b60fdce
Add all_namespaces prop to global logs api
Zacqary 43780c6
Merge remote-tracking branch 'upstream/main' into 137995-log-space-sw…
Zacqary ff24cc0
Display space column and disable link on inactive spaces
Zacqary c64baca
Add ability to link across spaces
Zacqary d979592
Fix allNamespace query on default space
Zacqary 30fcaf5
Fix KPI and link space switch to permissions
Zacqary c1b68c7
Open alternate space rules in new tab
Zacqary 99dd960
Fix Jest 11
Zacqary e0f83b1
Fix Jest 1
Zacqary b336fe4
Fix Jest 4 and 10
Zacqary a0619bc
Fix i18n
Zacqary 13bcd27
Merge remote-tracking branch 'upstream/main' into 137995-log-space-sw…
Zacqary 57b38da
Move space column visibility out of data grid
Zacqary 0f18fbf
Merge remote-tracking branch 'upstream/main' into 137995-log-space-sw…
Zacqary 8c009ef
Merge remote-tracking branch 'upstream/main' into 137995-log-space-sw…
Zacqary 5a185a8
Add test for link routing
Zacqary 81d1e6f
Merge remote-tracking branch 'upstream/main' into 137995-log-space-sw…
Zacqary 90d1bc8
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine eeff02c
Add auth and space access to action error log
Zacqary 0bb3bc7
Merge remote-tracking branch 'upstream/main' into 137995-log-space-sw…
Zacqary e37b3eb
Merge branch '137995-log-space-switch' of https://github.com/Zacqary/…
Zacqary c964fd8
Add test for getActionErrorLogWithAuth, fix types, consts
Zacqary e192495
Fix undefined spaceids error
Zacqary ce620aa
Fix base path support
Zacqary de8d641
Fix types and jest
Zacqary e21b64a
Merge remote-tracking branch 'upstream/main' into 137995-log-space-sw…
Zacqary 64e9442
Fix types and jest
Zacqary cc99097
Remove consolelog
Zacqary File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
x-pack/plugins/alerting/server/routes/lib/rewrite_namespaces.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
export const rewriteNamespaces = (namespaces?: Array<string | undefined>) => | ||
namespaces | ||
? namespaces.map((id: string | undefined) => (id === 'default' ? undefined : id)) | ||
: undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is it possible to make this type a bit stricter? (I.e. just
Array<string>
). I see thatgetNameSpace
could return undefined, could we filter those entries out or do they have some significance being undefined?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.
The Default namespace is referred to as
undefined
internally. As far as I can tell, this changed recently; it used to just be the stringdefault
.