Skip to content

Conversation

Matthbo
Copy link
Member

@Matthbo Matthbo commented Jun 11, 2025

No description provided.

Comment on lines 25 to 42
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'],
},
];
Copy link
Member

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.

@philipsens philipsens requested a review from Copilot June 16, 2025 13:21
Copy link
Contributor

@Copilot Copilot AI left a 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.

@Matthbo Matthbo force-pushed the 9109-only-disable-gui-pages-when-securityitems-api-endpoint-can-be-reached branch from 49029da to 7b4b7db Compare June 17, 2025 17:24
@Matthbo Matthbo enabled auto-merge (squash) June 18, 2025 14:32
Copy link

@Matthbo Matthbo merged commit 7b36a88 into master Jun 18, 2025
33 checks passed
@Matthbo Matthbo deleted the 9109-only-disable-gui-pages-when-securityitems-api-endpoint-can-be-reached branch June 18, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only disable GUI pages when securityitems api endpoint can be reached
2 participants