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
Versioning is an important aspect of Mauro Data Models and moving forwards we want to identify the version of the root model that a Data Specification (formerly known as data requests) was copied from. My investigations into root model version management have revealed that mdm-explorer is unable to cope with multiple versions of the same root model, and a number of errors and unwanted behaviours occur.
Steps to reproduce
Log in to mdm-ui and hard delete all data models from your "OUH Data Warehoues" folder.
Import the latest data model: nautilus_835_data_marts_20230221T115030.json (make sure it has the model name: 'modules')
Open mdm-explorer and select Browse
Select 'BedStays', then 'BEDSTAYS' and click 'View Details'
Click 'Select entire page' and then 'With selected...' and 'Create new request'. Name your request 'Multi root 1', and create.
Everything should be working correctly. Check the request is viewable and has the elements you expect.
Go back to mdm-ui and finalise 'OUH Data Warehouse' 'modules'. (Select modules and click on the green tick in the top right)
Select the default 'Major' and click 'Finalise'
Go back to mdm-explorer and select Browse
Select 'BedStays', then 'BEDSTAYS' and click 'View Details'. Incorrect behaviour: You will see the message 'Unfortunately we could not find any matches based on this criteria.'
Go back to mdm-ui
Select 'modules' under 'OUH Data Warehouse'
Click the 'Create a new version' (The two docs icon in the top right)
Select 'New Version' from the list of actions.
Click 'Create'
Wait for the creation process to complete
Open mdm-explorer and select Browse
Select 'BedStays', then 'BEDSTAYS' and click 'View Details'. Incorrect behaviour: Each data element is duplicated in the list
Click 'Select entire page' and then 'With selected...' and 'Create new request'. Name your request 'Multi root 2', and create. Error occurs: "Data Element 25318770-0848-45bd-bede-65b8e9d6dce6 does not belong to specified model"
Expected behavior
The mdm-explorer root model should choose the latest finalised version. All data elements related to the latest finalised model should be displayed without duplication. Data Specifications should be able to be created without error.
Environment
Desktop
Please complete the following information:
OS: Windows 10
Browser: Edge
Version: 111.0.1661.54 (Official build) (64-bit)
Additional Information
Start by looking in mdm-plugin-explorer at controllers/uk/ac/ox/softeng/maurodatamapper/plugins/explorer/ExplorerController.groovy . The method rootDataModel is what is called by the mdm-explorer to load the root model. This in turn calls down into some mdm-core functionality. So the next step would be to look at mdm-core. We may need to change what rootDataModel calls to retrieve the root model.
Also bare in mind that there is another task to allow for the root model to be chosen. So any fixes done here must not be done in a way that will make that task more difficult to complete.
This problem was actually caused by the index going out of sync with the data. In the Mdm-UI this can be fixed by simply going to Configuration, clicking on Lucene and clicking on "Rebuild Index". Once that is done all the problems reported in this task go away.
With regards to the Mdm-Explorer only using finalised data models for the root, this has been implemented by the following two tasks:
Description
Versioning is an important aspect of Mauro Data Models and moving forwards we want to identify the version of the root model that a Data Specification (formerly known as data requests) was copied from. My investigations into root model version management have revealed that mdm-explorer is unable to cope with multiple versions of the same root model, and a number of errors and unwanted behaviours occur.
Steps to reproduce
nautilus_835_data_marts_20230221T115030.json
(make sure it has the model name: 'modules')Expected behavior
The mdm-explorer root model should choose the latest finalised version. All data elements related to the latest finalised model should be displayed without duplication. Data Specifications should be able to be created without error.
Environment
Desktop
Please complete the following information:
Additional Information
Start by looking in mdm-plugin-explorer at controllers/uk/ac/ox/softeng/maurodatamapper/plugins/explorer/ExplorerController.groovy . The method rootDataModel is what is called by the mdm-explorer to load the root model. This in turn calls down into some mdm-core functionality. So the next step would be to look at mdm-core. We may need to change what rootDataModel calls to retrieve the root model.
Also bare in mind that there is another task to allow for the root model to be chosen. So any fixes done here must not be done in a way that will make that task more difficult to complete.
The task MauroDataMapper-Plugins/mdm-plugin-explorer#15 may be worth a look as well.
The text was updated successfully, but these errors were encountered: