You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scanning a workspace allows AntaresWeb to retrieve studies that were not already in its database
So it does not make sense to scan any managed folder.
However, it is possible using the front-end (little "target" icon at the very right of the screenshot below):
It is also possible to do so using the API.
If this happens, the back-end currently raises an Exception and the task fails.
2 things need to be implemented:
The back office should not raise an Exception but simply log the fact that this doesn't make sense
The front office should not display the little "target" icon when the folder to scan is a child of "default" workspace.
The back-end part is quite easy and already implemented in the linked PR, so it solves the API issue.
The front-office however could be more tricky as every information is gathered with the endpoint GET /studies when the user clicks on the Studies page and no other API call is raised when the user clicks on any folder.
The text was updated successfully, but these errors were encountered:
MartinBelthle
changed the title
Users shouldn't be able to scan a managed workspace
Users shouldn't be able to scan a managed workspace in the front-end
Jul 25, 2023
Description
Scanning a workspace allows AntaresWeb to retrieve studies that were not already in its database
So it does not make sense to scan any managed folder.
However, it is possible using the front-end (little "target" icon at the very right of the screenshot below):
It is also possible to do so using the API.
If this happens, the back-end currently raises an Exception and the task fails.
2 things need to be implemented:
The back-end part is quite easy and already implemented in the linked PR, so it solves the API issue.
The front-office however could be more tricky as every information is gathered with the endpoint GET
/studies
when the user clicks on the Studies page and no other API call is raised when the user clicks on any folder.The text was updated successfully, but these errors were encountered: