dspace-angular icon indicating copy to clipboard operation
dspace-angular copied to clipboard

MyDSpace Status search facet doesn't update to reflect user changes to task status

Open ybnd opened this issue 2 years ago • 4 comments

Describe the bug The "Status" search facet on MyDSpace (workflow configuration) doesn't update when a workflow Item's status is changed. The resulting mismatch is very noticeable when there are only a few workflow Items and could be confusing.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://demo7.dspace.org/mydspace?configuration=workflow (& make sure at least one workflow Item exists)
  2. Open the "Status" facet
    • The listed facets should correspond to the search results
  3. Toggle the task's claimed/pooled status
    • The "Status" facet will stay unchanged

Expected behavior The "Status" facet should reflect the changed state of workflow Items.

ybnd avatar Apr 22 '22 09:04 ybnd

Agreed, this is a bug and easily reproducible. Pulling it onto the 7.4 board in the hopes we can solve it in that release

tdonohue avatar May 09 '22 15:05 tdonohue

Possible duplicate ticket in #1736 (which notes a similar issue with counters in the sidebar). These two tickets likely should be claimed together as they might be fixed easily at the same time.

tdonohue avatar Jul 22 '22 14:07 tdonohue

Assigning to @corrad82-4s and adding a zero hour estimate as this bug ticket will be fixed as part of #1736

tdonohue avatar Jul 26 '22 14:07 tdonohue

Hi @tdonohue , hello everybody,

as per what commented in https://github.com/DSpace/dspace-angular/issues/1736#issuecomment-1209126231, this issue seems to be more complex than expected. A solution could be force update of facets in case of task status changes, but we cannot be sure facets reflects what is displayed among search results. What if, for example, between task status change and refresh, 10 new items joined the pool? They would be counted in facets, but not visible in page. Ideally, the whole page would have to be updated, but this would void what done recently to avoid full page reload.

What about a "warning" message, about possible "outdated" facet values? Leaving to user the decision between keeping outdated facets or reloading the page (e.g. with a button)?

corrad82-4s avatar Aug 09 '22 17:08 corrad82-4s