Describe the bug
Upon creating a new export/import request in Airlock, the URL route malforms and causes the UI to behave in an weird way. The issue is to do with routing when creating a new request. I have already forked the repo and fixed the issue. The issue to be exact is here:
The path is being navigated from a relative point of view and just appended rather then re-written. The fix I put in the fork is the following:
navigate(`../${newRequest.id}`, { relative: "path" });
Steps to reproduce
- Open/create a new workspace and navigate to Airlock on the side panel.
- Create a new import or export request.
- Fill in the form and press create.
Expected:
The draft request to be created and the side panel to open automatically with the SAS URL information, with the URL /requests/{id}.
Actual:
The side panel closes and the path remains /requests/new/{id} but the side panel doesn't reopen with the SAS URL information. Double clicking requests simply appends the airlock id to the URL.
Work around:
Exit and enter back to the requests list view and double clicking from there allows the side panel to open.
Azure TRE release version: v0.15.2, UI version: 0.5.17, (but can also see the issue on main).
Describe the bug
Upon creating a new export/import request in Airlock, the URL route malforms and causes the UI to behave in an weird way. The issue is to do with routing when creating a new request. I have already forked the repo and fixed the issue. The issue to be exact is here:
AzureTRE/ui/app/src/components/shared/airlock/Airlock.tsx
Line 258 in 3196089
Steps to reproduce
Expected:
The draft request to be created and the side panel to open automatically with the SAS URL information, with the URL
/requests/{id}.Actual:
The side panel closes and the path remains
/requests/new/{id}but the side panel doesn't reopen with the SAS URL information. Double clicking requests simply appends the airlock id to the URL.Work around:
Exit and enter back to the requests list view and double clicking from there allows the side panel to open.
Azure TRE release version: v0.15.2, UI version: 0.5.17, (but can also see the issue on main).