dspace-angular
dspace-angular copied to clipboard
During a submission, when searching and selecting an author entity, it is not displayed in the author metadata in the submission form.
Describe the bug During a new submission, when an author is selected, and the search windows is closed, the name of the selected author is not displayed. However, the relation is created. If the page is reloaded, the name of the author is displayed.
To Reproduce Can be easily reproduce in DSpace 8 Sandbox (https://sandbox.dspace.org/) Steps to reproduce the behavior:
- Connect as submitter and star a new submission
- Add relation between Person entities and publication entities using the magnifying glass button of the author Metadata.
- Once selected and the window is closed, the name is not displayed.
- Reload the page
- The name is displayed.
Expected behavior Once the Author entity has been selected and the search window is closed, the name selected appears in the author metadata.
Expected behavior A clear and concise description of what you expected to happen.
Related work Link to any related tickets or PRs here.
I tried to reproduce this on a local instance and couldn't reproduce it. The only thing I saw, is that it took a couple of seconds until the name was shown (2 or 3 secs). Does it work, if you wait for it? Is it just to slow?
Hi @Leano1998, thanks! you are right, if I wait, the name displays, it takes a few seconds, while waiting, the form remains empty, letting you think that nothing has happened.
Hi @pilasou , Thanks for testing. it’s still a problem, if takes so long and doesn’t show any sign of loading or anything, but I can’t find the reason yet.
Discussed in today's Developers meeting. This slowness is likely related to #858 and DSpace/DSpace#2953 which is a longstanding issue. Essentially, the Entity Relationships added via the submission form are not currently using WorkspaceItem. This sometimes results in a delay when a new relationship is added via the submission form.