Uploaded image for project: 'mod-user-import'
  1. mod-user-import
  2. MODUIMP-62

Mod-user-import throws an error if users are assigned a department that is not part of the first ten departments in a /departments API call

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • 3.6.3
    • 3.6.4
    • CP: sprint 133
    • 2
    • Core: Platform
    • !!!ALL!!!
    • TBD

    Description

      Overview:
      Steps to Reproduce:

      1. Log into a FOLIO tenant with more than 10 departments set up in the configuration
      2. Make an API call to /departments?limit=100
      3. Take the name from the 11th department in the list
      4. Post a user with this department to the mod-user-import API

      Expected Results:
      The user goes in
      Actual Results:

      Additional Information:

      Interested parties:

      User that was posted into Kiwi bugfest the first time:

      {
          "users": [
              {
                  "type": "object",
                  "personal": {
                      "lastName": "Kuragin",
                      "firstName": "Anatole",
                      "email": "anatole@kuragin.ru",
                      "phone": "111",
                      "mobilePhone": "22222",
                      "dateOfBirth": "",
                      "preferredContactTypeId": "Email"
                  },
                  "username": "antole123",
                  "externalSystemId": "antole123",
                  "barcode": "antole123",
                  "patronGroup": "Non-UC User, Indefinite",
                  "departments": ["Heraldry"],
                  "expirationDate": "2014-09-10T00:00:00",
                  "active": true,
                  "requestPreference": {
                      "userId": "0ecf76c1-7c4b-421d-b4fe-ce1bb773fe66",
                      "holdShelf": true,
                      "delivery": false
                  }
              }
          ],
          "totalRecords": 1
      }
      

      The Departments in Kiwi-bugfest:

      User that was successfully posted:

      {
          "users": [
              {
                  "type": "object",
                  "personal": {
                      "lastName": "Kuragin",
                      "firstName": "Anatole",
                      "email": "anatole@kuragin.ru",
                      "phone": "111",
                      "mobilePhone": "22222",
                      "dateOfBirth": "",
                      "preferredContactTypeId": "Email"
                  },
                  "username": "antole123",
                  "externalSystemId": "antole123",
                  "barcode": "antole123",
                  "patronGroup": "Non-UC User, Indefinite",
                  "departments": ["Zoology"],
                  "expirationDate": "2014-09-10T00:00:00",
                  "active": true,
                  "requestPreference": {
                      "userId": "0ecf76c1-7c4b-421d-b4fe-ce1bb773fe66",
                      "holdShelf": true,
                      "delivery": false
                  }
              }
          ],
          "totalRecords": 1
      }
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adam Adam Dickmeiss (Inactive)
                ttolstoy Theodor Tolstoy (One-Group.se)
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases