Uploaded image for project: 'ui-tenant-settings'
  1. ui-tenant-settings
  2. UITEN-81

Inconsistent behavior of Active setting on Locations in Settings UI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Template:
    • Sprint:
      Core: F - Sprint 87, Core: F - Sprint 88
    • Story Points:
      5
    • Development Team:
      Prokopovych

      Description

      Environment: Edelweiss, Duke's hosted test instance.

      When loading locations via the API, if you don't set the isActive value on an individual location, the behavior in the Settings UI is unexpected.

      For example, say you have a location where the JSON looks like this:

          {
            "id": "056c3a20-093d-48bb-81da-c488d0ee4a19",
            "name": "FRDJS - Journal Stacks",
            "code": "FRDJS",
            "discoveryDisplayName": "Journal Stacks",
            "institutionId": "f22b6123-b77e-45a0-931d-e19432357933",
            "campusId": "227e6a0d-6516-4279-9101-6c49aab73b33",
            "libraryId": "b32b9125-4fff-410c-8a97-ad2751e78371",
            "primaryServicePoint": "dc8bfed8-9505-4b8a-bb74-dcea8692e3bd",
            "servicePointIds": [
              "dc8bfed8-9505-4b8a-bb74-dcea8692e3bd"
            ],
            "metadata": {
              "createdDate": "2020-02-20T15:22:28.296+0000",
              "createdByUserId": "77100dc9-c53c-5df6-a798-066b9b5813e1",
              "updatedDate": "2020-02-20T15:22:28.296+0000",
              "updatedByUserId": "77100dc9-c53c-5df6-a798-066b9b5813e1"
            }
          },
      

      it displays in the Settings --> Tenant --> Location table as inactive:

      That seems like desired behavior.

      However, if you then edit the location, the status value is set to Active, not Inactive:

      So it appears that it's not picking up the Inactive setting correctly on the Edit screen.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                SergiySergiyenko Sergiy Sergiyenko
                Reporter:
                enettifee Erin Nettifee
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases