Skip to content

Airlock: Creating an import/export request causes a routing error #3830

@yahya130

Description

@yahya130

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

  1. Open/create a new workspace and navigate to Airlock on the side panel.
  2. Create a new import or export request.
  3. 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).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions