Make JSON import more fault tolerant

What does this MR do and why?

Make JSON import more fault tolerant

  • Ensure we have array objects where we expect to be able to iterate

References

Screenshots or screen recordings

How to set up and validate locally

  1. Download: framework.json

  2. Download: framework_no_req.json

  3. Go to to compliance center with ultimate licensed group

  4. Got to Frameworks tab

  5. Click "New framework"

  6. Click "Import framework"

  7. Choose downloaded framework.json

  8. Observe framework created with two requirements, one missing a control

  9. Got to Frameworks tab

  10. Click "New framework"

  11. Click "Import framework"

  12. Choose downloaded framework_no_req.json

  13. Observe framework created without requirements, (and thus no controls)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by SAM FIGUEROA

Merge request reports

Loading