UI Caching Issue When Admin User Is Attempting To Move Item Between Collections

未关闭
#5,734 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
frontend

调研方向

The bug is in the Angular UI of dspace-angular: after moving an item to another collection, the breadcrumb still shows the old owning collection until a page refresh. Start by finding the move-item page component and the NgRx store actions/reducers that refresh the cached item after a move. Done means the breadcrumb updates right after a successful move, confirmed by a spec covering that component.

由索引模型根据 Issue 内容生成。

描述

affects: 9.x bug component: Item help wanted low priority

Describe the bug

When an admin user is trying to move an item from it's owning collection to a new collection the DSpace UI caching does not reflect the change without first refreshing the page. This leads endusers to assume that the item has not been moved to the new collection. It seems that when you move an item for the first time the change is not reflected.  A refresh displays the move has been made and further moves are reflected instantly. But the initial move does not.

To Reproduce

The user wants to move an item from one owning collection to another.
They are logged in and have admin permissions.
They navigate to the item page click the edit button and navigate to the 'Status' tab.
They click the 'Move this Item to a different Collection' button and are navigated to the 'Move Item: xxx' page.
They search/select a collection from the dropdown.
They check the 'Inherent policies' (where applicable) checkbox and click the 'Save' button.
They are displayed a success pop-up.

Expected behavior

The owing collection display in the breadcrumbs should be updated to reflect the move

Note

It was also highlighted that when selecting a Collection from the dropdown it was not clear that a selection had been made. Clicking on the dropdown does not instantiate a visual change, i.e. it is not clear to the enduser the selection has been made. There is a bit of highlighting which is displayed as either a bit of greying of the background of the selected element or as a thick outline on the selected element but the enduser did not recognise this as confirmation that their selection had been made.

主要语言
TypeScript
星标
180
派生
577
平均合并
1 天 23 小时
30 天内合并 PR
95

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DSpace/dspace-angular 的其他 Issue

查看 DSpace/dspace-angular 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。