-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/dismiss #1134
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
Merged
Merged
Feature/dismiss #1134
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8d7bc95
Refactored dismiss panel to make it reusable
opoliarush c614f8e
Clean-up
opoliarush fd45b7e
Added dismiss to error card
opoliarush 87ddd83
added dismiss for error page
opoliarush 969cc26
Add Pin/Unpin animations
kshmidt-digma 9defc06
Improve test
kshmidt-digma 2e2ef92
Add custom hook for pin/unpin operations
kshmidt-digma 84cd1bd
Updated styled for dismiss
opoliarush 6d1ff49
Added tests
opoliarush 7d70724
Fix bug
opoliarush fcbab4b
Merge branch 'main' into feature/dismiss
opoliarush 718b78a
fix comments
opoliarush 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| import { SetGlobalErrorsDataPayload } from "./types"; | ||
|
|
||
| export const DefaultErrorList: SetGlobalErrorsDataPayload = { | ||
| totalCount: 2, | ||
| list: [ | ||
| { | ||
| id: "0021a8de-9134-11ef-8040-0242ac130002", | ||
| errorType: "java.lang.RuntimeException", | ||
| fromDisplayName: "CrashController.triggerException", | ||
| fromFullyQualifiedName: | ||
| "org.springframework.samples.petclinic.system.CrashController.triggerException", | ||
| fromCodeObjectId: | ||
| "method:org.springframework.samples.petclinic.system.CrashController$_$triggerException", | ||
| status: "Recent, 23 hours ago", | ||
| firstDetected: "2024-10-23T11:43:01.798918Z", | ||
| lastDetected: "2024-10-23T11:43:03.280678Z", | ||
| affectedEndpoints: [ | ||
| { | ||
| displayName: "HTTP GET /oups", | ||
| service: "spring-petclinic", | ||
| spanCodeObjectId: "span:io.opentelemetry.tomcat-10.0$_$HTTP GET /oups" | ||
| } | ||
| ], | ||
| score: { | ||
| score: 70, | ||
| scoreParams: { | ||
| Occurrences: 0, | ||
| Trend: 0, | ||
| Recent: 20, | ||
| Unhandled: 50 | ||
| } | ||
| }, | ||
| unhandled: true | ||
| }, | ||
| { | ||
| id: "00219416-9134-11ef-82aa-0242ac130002", | ||
| errorType: | ||
| "org.springframework.web.servlet.resource.NoResourceFoundException", | ||
| fromDisplayName: "ResourceHttpRequestHandler.handleRequest", | ||
| fromFullyQualifiedName: | ||
| "org.springframework.web.servlet.resource.ResourceHttpRequestHandler.handleRequest", | ||
| fromCodeObjectId: | ||
| "method:org.springframework.web.servlet.resource.ResourceHttpRequestHandler$_$handleRequest", | ||
| status: "High number of errors", | ||
| firstDetected: "2024-10-23T11:43:00.505243Z", | ||
| lastDetected: "2024-10-23T12:36:16.873716Z", | ||
| affectedEndpoints: [ | ||
| { | ||
| displayName: "HTTP GET /webjars/**", | ||
| service: "spring-petclinic", | ||
| spanCodeObjectId: | ||
| "span:io.opentelemetry.tomcat-10.0$_$HTTP GET /webjars/**" | ||
| } | ||
| ], | ||
| score: { | ||
| score: 45, | ||
| scoreParams: { | ||
| Occurrences: 25, | ||
| Trend: 0, | ||
| Recent: 20, | ||
| Unhandled: 0 | ||
| } | ||
| }, | ||
| unhandled: false | ||
| } | ||
| ] | ||
| }; | ||
|
|
||
| export const DismissedErrorList: SetGlobalErrorsDataPayload = { | ||
| totalCount: 2, | ||
| dismissedCount: 1, | ||
| list: [ | ||
| { | ||
| id: "0021a8de-9134-11ef-8040-0242ac130002", | ||
| errorType: "java.lang.RuntimeException", | ||
| fromDisplayName: "CrashController.triggerException", | ||
| fromFullyQualifiedName: | ||
| "org.springframework.samples.petclinic.system.CrashController.triggerException", | ||
| fromCodeObjectId: | ||
| "method:org.springframework.samples.petclinic.system.CrashController$_$triggerException", | ||
| status: "Recent, 23 hours ago", | ||
| firstDetected: "2024-10-23T11:43:01.798918Z", | ||
| lastDetected: "2024-10-23T11:43:03.280678Z", | ||
| affectedEndpoints: [ | ||
| { | ||
| displayName: "HTTP GET /oups", | ||
| service: "spring-petclinic", | ||
| spanCodeObjectId: "span:io.opentelemetry.tomcat-10.0$_$HTTP GET /oups" | ||
| } | ||
| ], | ||
| score: { | ||
| score: 70, | ||
| scoreParams: { | ||
| Occurrences: 0, | ||
| Trend: 0, | ||
| Recent: 20, | ||
| Unhandled: 50 | ||
| } | ||
| }, | ||
| unhandled: true | ||
| } | ||
| ] | ||
| }; |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.