Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-1908

[Questionnaire] If the user uploads a correctly formatted but non-related YAML file the UI doesn't displays an error message

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      If the user tries to import a valid YAML file that doesn't match the questionnaire format, the UI doesn't display any error on the screen.

      An error is, however, visible in the browser console.

      Version-Release number of selected component (if applicable): 7.0.0 

      How reproducible: Always 

      Steps to Reproduce:
      1. Go to Administration->Questionnaires
      2. Click on "Import questionnaire"
      3. Select a YAML file that has nothing to do with the required format (You can find an example file attached)

      Actual results:

      No message is displayed in the UI and an "Invalid JSON data" error is fired in the browser console

      Expected results:

      If a YAML file is not valid, an error should be displayed in the UI.

      Additional info:

      Video and example file attached.

      Video with console output: https://jam.dev/c/3e4fbb50-3850-4d45-ab52-877ba1b4b7df

       

        1. image-2023-12-26-12-41-40-047.png
          47 kB
          Alejandro Brugarolas
        2. no error when importing a non-valid yaml.webm
          634 kB
          Alejandro Brugarolas
        3. openmrs_detail.yaml
          4 kB
          Alejandro Brugarolas

              ibolton@redhat.com Ian Bolton
              rh-ee-abrugaro Alejandro Brugarolas
              Alejandro Brugarolas Alejandro Brugarolas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: