-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Observability] [Cases] Cases in the observability app #100360
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
Closed
Closed
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
84141fc
Merge branch 'master' into cases_obs
stephmilovic e3d3e8c
Cases routing
stephmilovic eb7fdd7
Adding cases feature
jonathan-buttner ce68009
wip
stephmilovic 77b5a54
Merge pull request #3 from jonathan-buttner/obs-cases-feature
stephmilovic 722649e
i made a case
stephmilovic 85e3de7
cases in obs
stephmilovic 1c7b613
add back in user permissions
stephmilovic ccd7e79
Merge branch 'master' into cases_obs
stephmilovic fb7e7a9
in middle of removing alerts stuff
stephmilovic 9f9f936
Merge branch 'cases-rbac-poc' into cases_obs
stephmilovic 882d97c
removed alerting and fixing types
stephmilovic fe20f5c
fix submitCase when no alerting
stephmilovic 5345d40
fix up breadcrumbs
stephmilovic 8c2cc61
Fix jest
stephmilovic 528c9be
Fix types
stephmilovic bd694ca
change key for message storage
stephmilovic 9ef3ab4
may it please CI
stephmilovic 5df7d33
arrys rbac changes
stephmilovic fd54706
fix type
stephmilovic bee51fd
midst of nathans pr changes
stephmilovic 359df83
merge conflicts and EuiPage to ObsPage on cases
stephmilovic bf02730
redirect after delete
stephmilovic c0f2105
does not exist page
stephmilovic 9266b17
fix tests
stephmilovic 1edb767
fix types
stephmilovic 8f2cb30
fix jest
stephmilovic 6a66a6c
Merge branch 'cases-rbac-poc' into cases_obs
stephmilovic 9d87078
fixing links
stephmilovic 28152b8
Merge branch 'cases-rbac-poc' into cases_obs
stephmilovic 1211f7f
Merge branch 'cases-rbac-poc' into cases_obs
kibanamachine 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
31 changes: 31 additions & 0 deletions
31
x-pack/plugins/cases/public/components/case_view/does_not_exist.tsx
This file contains hidden or 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,31 @@ | ||
| /* | ||
| * 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. | ||
| */ | ||
|
|
||
| import React from 'react'; | ||
|
|
||
| import { EuiEmptyPrompt, EuiButton } from '@elastic/eui'; | ||
| import * as i18n from './translations'; | ||
| import { CasesNavigation } from '../links'; | ||
| interface Props { | ||
| allCasesNavigation: CasesNavigation; | ||
| caseId: string; | ||
| } | ||
| export const DoesNotExist = ({ allCasesNavigation, caseId }: Props) => ( | ||
| <EuiEmptyPrompt | ||
| // @ts-ignore remove once https://github.com/elastic/eui/issues/4850 is resolved | ||
| iconColor={null} | ||
| iconType="addDataApp" | ||
| title={<h2>{i18n.DOES_NOT_EXIST_TITLE}</h2>} | ||
| titleSize="xs" | ||
| body={<p>{i18n.DOES_NOT_EXIST_DESCRIPTION(caseId)}</p>} | ||
| actions={ | ||
| <EuiButton onClick={allCasesNavigation.onClick} size="s" color="primary" fill> | ||
| {i18n.DOES_NOT_EXIST_BUTTON} | ||
| </EuiButton> | ||
| } | ||
| /> | ||
| ); |
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.
nit:
disableAlertsseems a better name for this variable.Uh oh!
There was an error while loading. Please reload this page.
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.
its confusing to me because L42
disabledproperty is for alertsThere 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.
depending on userCanCrud
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.
oh I might have added that 😆 feel free to rename it, it was just trying to fix an issue where the status button was enabled when the user only had read only permissions.