MauroDataMapper/mdm-ui

Data Class open in new window option gives null URL

Closed this issue · 1 comments

Description

Right clicking a data class in the model tree, clicking View and Open in new window opens a null URL (on local instance: http://localhost:4200/null)

Steps to reproduce

  1. Start with a data class not open, e.g. with a folder open in the right hand pane
  2. Right click on data class in tree and use 'Open in new window'

Expected behavior

New window opens with data class URL.

Environment

Desktop (please complete the following information):

OS: macOS
Browser: Chrome 98
MDM: latest develop of mdm-core, mdm-ui and mdm-resources

Url routing parameter dataClassId was not being extracted from the fnode, and the dataModelId was not being passed into the url matching anyway.
There was another bug which has also been fixed by this:
Expand a folder (folder 1) and another folder (folder 2)
Click on a data class in folder 2 so that it's shown in the right hand pane; then right click on a data class in folder 1 and click View => Open in new window. The result will be "not found".