Uploaded image for project: 'ui-data-import'
  1. ui-data-import
  2. UIDATIMP-746

Validation for default data typed into a field mapping profile is not working



    • Folijet Sprint 101
    • 2
    • Folijet
    • Q3 2020 Bug Fix


      Overview: When default data (non-MARC field) is added to a field mapping profile, it must be enclosed in quotation marks. If the value is selected from a dropdown, the quotation marks are added automatically. If the value is typed by the user, no quotation marks are added, and no validation error appears.

      Current workaround: None - import fails because of invalid data, and user has to inspect the field mapping profile to find the invalid mapping

      Steps to Reproduce:

      1. Log into FOLIO-snapshot-load as diku_admin
      2. Go to Settings/Data Import/Field mapping profiles
      3. Create a new field mapping profile
        • Incoming record type: MARC bib
        • Existing FOLIO record type: Item
        • In the field mapping details, type a default value into the Item identifier field, e.g. TEST
        • Save the field mapping profile

      Expected Results: If text is entered into a field mapping profile with incoming record type = MARC Bib, and the text does not have quotation marks around it, then show a validation error under the field(s) missing the quotation marks.
      Error text: Non-MARC value must use quotation marks

      • MARC field and subfield, e.g. 900$a
      • MARC strings beginning with LDR, 005, 006, 007, 008 (e.g. LDR/8-10, or 008/34)
      • ; else (the syntax for cascade)
      • ###TODAY### (only for date fields)
      • ###REMOVE### (only for non-repeatable fields)

      Actual Results: Field mapping profile can be saved with default data with no quotation marks around it.

      Additional Information: Validation logic described in UIDATIMP-405, but this exact use case not specified. Can we add it? I have found 4 user errors in Bugfest testing due to missing quotation marks.

      TestRail: Results


          Issue Links



                Ihor_koba Ihor Koba
                abreaux Ann-Marie Breaux
                0 Vote for this issue
                1 Start watching this issue



                  TestRail: Runs

                    TestRail: Cases