-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch operation returns SuccessStale instead of Success #2538
Comments
I'm having difficulty understanding the description here. Could you link to the code where the issue exists? This sounds loosely similar to #2349 , at least in that it impacts a similar area of code. But, I'm not sure it's the same problem... it just sounds similar to me. So it's possible it was a similar bug accidentally caused by cache redesign work in #961 Overall, it sounds like a bug. I just don't understand enough about how/where this exists. @artlowel : Pinging you in case your team is interested in this, just because it sounds like it might be similar to past work your team has done. |
Seems to be related to DSpace/DSpace#8925, specifically the first point. To quote myself:
|
@tdonohue sorry, some lines were missing from the bug description, I fixed it and added the code reference. In my understanding, if the payload contains the updated data then the state should be @hutattedonmyarm yes, the issues are related, but we need to understand, case by case, whether:
|
@davide-negretti absolutely! I mentioned the issue, because the ORCID settings page does use a PATCH request and will always return |
Describe the bug
The
state
of remote data returned bypatch()
method of REST data services isSuccessStale
whenSuccess
is expected.This happens e.g. in
submit()
method ofdso-edit-metadata.component.ts
. When I add or change a metadata the subscription returns a RD object with the updated item as payload, butSucessStale
as state:dspace-angular/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.ts
Lines 182 to 186 in a57bcf0
To Reproduce
Either add a breakpoint at
this.saving$.next(false);
inside the subscription tosubmit()
method or log the value ofrd
, then:The payload of the response contains the updated metadata, but
rd.state
isSuccessStale
Expected behavior
rd.state
should beSuccess
The text was updated successfully, but these errors were encountered: