-
Notifications
You must be signed in to change notification settings - Fork 81
Fix Console error page & logging page on framework startup error #9133
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
Fix Console error page & logging page on framework startup error #9133
Conversation
private readonly onErrorAllowedLinks: Link[] = [ | ||
{ | ||
name: 'getFileContent', | ||
rel: 'logging', | ||
description: 'view or download a (log)file', | ||
href: 'http://localhost:8080/iaf-test/iaf/api/file-viewer', | ||
type: 'GET', | ||
roles: ['IbisObserver', 'IbisDataAdmin', 'IbisAdmin', 'IbisTester'], | ||
}, | ||
{ | ||
name: 'getLogDirectory', | ||
rel: 'logging', | ||
description: 'view files/folders inside the log directory', | ||
href: 'http://localhost:8080/iaf-test/iaf/api/logging', | ||
type: 'GET', | ||
roles: ['IbisObserver', 'IbisDataAdmin', 'IbisAdmin', 'IbisTester'], | ||
}, | ||
]; |
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.
Maybe it would be nicer to use a partial for the Link so it would not need all the (kind of incorrect?) metadata.
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.
Pull Request Overview
This pull request addresses the console error page and logging page issues encountered during framework startup errors. Key changes include updating error handling in the ErrorComponent, enhancing error recovery in the AuthService, and adopting updated Angular syntax in the ToastsContainerComponent.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
console/frontend/src/main/frontend/src/app/views/error/error.component.ts | Updated dependency injection and error handling method signature in ErrorComponent. |
console/frontend/src/main/frontend/src/app/services/auth.service.ts | Added fallback links for error handling and updated permissions subscription callback. |
console/frontend/src/main/frontend/src/app/guards/auth.guard.ts | Minor cleanup in the auth guard logic. |
console/frontend/src/main/frontend/src/app/components/toasts-container/toasts-container.component.html | Updated Angular 17 control flow syntax (@for). |
console/frontend/src/main/frontend/src/app/components/file-viewer/file-viewer.component.ts | Enhanced error parsing logic and introduced an unused import. |
console/frontend/src/main/frontend/src/app/views/error/error.component.ts
Outdated
Show resolved
Hide resolved
console/frontend/src/main/frontend/src/app/components/file-viewer/file-viewer.component.ts
Outdated
Show resolved
Hide resolved
49029da
to
7b4b7db
Compare
…tems-api-endpoint-can-be-reached
|
No description provided.