mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 22:13:02 +00:00
90252: Invalidate requests containing DSO on DataService.delete
Keep track of a list of request UUIDs in the object cache (most recent in front) When deleting a DSO, mark all of these as stale
This commit is contained in:
@@ -41,7 +41,7 @@ describe('objectCacheReducer', () => {
|
||||
alternativeLinks: [altLink1, altLink2],
|
||||
timeCompleted: new Date().getTime(),
|
||||
msToLive: 900000,
|
||||
requestUUID: requestUUID1,
|
||||
requestUUIDs: [requestUUID1],
|
||||
patches: [],
|
||||
isDirty: false,
|
||||
},
|
||||
@@ -55,7 +55,7 @@ describe('objectCacheReducer', () => {
|
||||
alternativeLinks: [altLink3, altLink4],
|
||||
timeCompleted: new Date().getTime(),
|
||||
msToLive: 900000,
|
||||
requestUUID: selfLink2,
|
||||
requestUUIDs: [selfLink2],
|
||||
patches: [],
|
||||
isDirty: false
|
||||
}
|
||||
|
Reference in New Issue
Block a user