monarc-project / MonarcAppFO

MONARC - Method for an Optimised aNAlysis of Risks by @NC3-LU
https://www.monarc.lu
GNU Affero General Public License v3.0
100 stars 38 forks source link

[Front Office] export of measure related to "amvs" stoped working since v2.10.1 #340

Closed ruslanbaidan closed 3 years ago

ruslanbaidan commented 3 years ago

Description When we import an analyse which has amvs linked with measures, the linked measures are not imported.

To Reproduce

  1. Import MyPrint [EN] 2.1 Go to the database and check that there are no relation records in the table measures_amvs. 2.2 Or export it and open the exported file in a json editor and search for "amvs". The "measures" key is not presented.

In the original My Print [EN] has measures list related to the amv, for example: "amvs": { "7f9fb477-4f02-11e9-b3ea-0800277f0571": { "uuid": "7f9fb477-4f02-11e9-b3ea-0800277f0571", "threat": "b402d5af-4576-11e9-9173-0800277f0571", "asset": "d2023da7-44d1-11e9-a78c-0800277f0571", "vulnerability": "69fc054b-4591-11e9-9173-0800277f0571", "measures": [ "06679cfa-1bfd-436a-b99d-698fb275dfdb", "157d5514-b3cd-4d31-9bff-560a1a436d96", "de6195c6-1fc1-423a-a748-785653c9324f", "e8ed7158-ffc1-44a4-8673-80286ad97b36" ], "status": 1 },

ruslanbaidan commented 3 years ago

Fixed and is is going to be deployed within https://github.com/monarc-project/MonarcAppFO/issues/320