Uploaded image for project: 'ui-inventory'
  1. ui-inventory
  2. UIIN-1385

ui-inventory does not display items with "Unknown" status

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: 5.0.5
    • Fix Version/s: 6.0.0
    • Labels:
      None
    • Environment:

      snapshot, honeysuckle

    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      Prokopovych - Sprint 104
    • Story Points:
      1
    • Development Team:
      Prokopovych

      Description

      Overview:
      UI-Inventory displays error when item status is Unknown
      Steps to Reproduce:

      1. Update an item changing the status to unknown and try to open in UI:
        $ echo "\$okapi is $okapi"
        $okapi is https://folio-snapshot-okapi.dev.folio.org
        
        # Get an item
        $ http $okapi/item-storage/items/4428a37c-8bae-4f0d-865d-970d83d5ad55 "x-okapi-token:$token" "x-okapi-tenant:diku" > item.json
        
        # modify, changing the status to "Unknown"
        vi item.json # example attached
        
        cat item.json | http PUT $okapi/item-storage/items/4428a37c-8bae-4f0d-865d-970d83d5ad55 "x-okapi-token:$token" "x-okapi-tenant:diku"
        HTTP/1.1 204 No Content
        

      Expected Results:
      Item is displayed
      Actual Results:
      UI gives error "Cannot read property 'label' of undefined"
      Additional Information:
      There is no "Unknown" defined in this map of other statuses, maybe missing here?
      https://github.com/folio-org/ui-inventory/blob/f2029b274c46d6f7e1a628cad368c23ce563e6c4/src/constants.js#L30

      called here: https://github.com/folio-org/ui-inventory/blob/f2029b274c46d6f7e1a628cad368c23ce563e6c4/src/views/ItemStatus/ItemStatus.js#L60

      Interested parties:

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              zburke Zak_Burke
              Reporter:
              ian Ian Hardy
              Tester Assignee:
              Charlotte Whitt Charlotte Whitt
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases