You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While working on #1617 (comment) we found out a cache issue when creating a researcher profile two times. Basically the second time the profile is created we receive a remote data with status error-stale but the POST request to the server is successful (status 201).
To Reproduce
When esearcher-profile.hard-delete.enabled is set to false
First, make sure researcher-profile.hard-delete.enabled = false (default value) is set on the backend
Login as a user with no researcher profile (to avoid the create caching issue)
Create a Researcher Profile from /profile
Immediately delete it (with hard-delete disabled), this leaves the Person Entity but unlinks it.
Click "Create New" again (without logging out or reloading the page or anything)
The popup that shows the existing profile is displayed
go to the profile suggested and try to claim it
Error messages are show but POST request is successful
DSpace.Angular.__.Update.Profile.1.mp4
When esearcher-profile.hard-delete.enabled is set to true
First, make sure researcher-profile.hard-delete.enabled = true is set on the backend
Login as a user with no researcher profile (to avoid the create caching issue)
Create a Researcher Profile from /profile
Immediately delete it (with hard-delete disabled), this also delete the person item.
Click "Create New" again (without logging out or reloading the page or anything)
Error messages are show but POST request is successful
DSpace.Angular.__.Update.Profile.2.mp4
Expected behavior
The error messages should not be displayed
Describe the bug
While working on #1617 (comment) we found out a cache issue when creating a researcher profile two times. Basically the second time the profile is created we receive a remote data with status error-stale but the POST request to the server is successful (status 201).
To Reproduce
When esearcher-profile.hard-delete.enabled is set to false
researcher-profile.hard-delete.enabled = false(default value) is set on the backendDSpace.Angular.__.Update.Profile.1.mp4
When esearcher-profile.hard-delete.enabled is set to true
researcher-profile.hard-delete.enabled = trueis set on the backendDSpace.Angular.__.Update.Profile.2.mp4
Expected behavior
The error messages should not be displayed
Related work
Link to any related tickets or PRs here.