[CIRC-1454] Use identity map to cache item storage representation Created: 02/Mar/22 Updated: 16/Aug/22 Resolved: 15/Mar/22 |
|
| Status: | Closed |
| Project: | mod-circulation |
| Components: | None |
| Affects versions: | None |
| Fix versions: | 23.1.0 |
| Type: | Story | Priority: | P3 |
| Reporter: | Marc Johnson | Assignee: | Marc Johnson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||
| Sprint: | Prokopovych - Sprint 135, Prokopovych - Sprint 134 | ||||||||
| Story Points: | 2 | ||||||||
| Development Team: | Prokopovych | ||||||||
| Release: | Morning Glory (R2 2022) | ||||||||
| RCA Group: | TBD | ||||||||
| Description |
|
Purpose In order to make it easier to change the way circulation interacts with inventory records, the representation in the domain could be separated more from the underlying representation of the records in inventory storage. Using PUT requests to make changes to an item record means that the full storage representation needs to be available when changes are made. Currently, the module keeps that representation within the domain. A step in removing that representation from the domain is to move the copy of the representation in the item repository instead of the domain class. Alternatives The module could re-fetch the item record from storage immediately prior to making the change. This would be a more substantial change in development and:
Future Developments Part of the performance improvement work was intended to include using a dedicated endpoint for making specific changes to items without requiring the full representation. |