Skip to content

Facets incorrectly requested after clicking item in Admin Workflow item list #4706

@kshepherd

Description

@kshepherd

Describe the bug

After clicking an item in the Administer Workflow search result list, the search filter / facet requests are sent and come back with 400 errors. I suspect that in some cases this prevents further proper execution of typescript in the item view component.

GET https://demo.dspace.org/server/api/discover/facets/namedresourcetype?page=0&size=10 400 (Bad Request)
GET https://demo.dspace.org/server/api/discover/facets/itemtype?page=0&size=10 400 (Bad Request)
GET https://demo.dspace.org/server/api/discover/facets/supervisedBy?page=0&size=10 400 (Bad Request)

After refreshing the item page, it is loaded properly and the facets are not requested.

I assume it's some subscription or route that is not properly cleared? But I am not entirely sure.

To Reproduce

Steps to reproduce the behavior:

  1. Open a javascript console or network inspector so you can see failed requests
  2. Log in as an Administrator
  3. Visit the Administer Workflow page (requires at least 1 item to be in workspace or workflow)
  4. Note that there are no errors in the javascript console and the facets work
  5. Click an item from the list, and note the 400 errors displayed
  6. Refresh the item page and note the lack of errors

Expected behavior

The facets should not be requested when viewing an item.

Related work

Possibly related to #3975 and its related issues/PRs.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    📋 To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions