MODINVSTOR-1456 - Implement of PATCH requests for instances (storage layer)#1303
Merged
siarhei-charniak merged 24 commits intomasterfrom Feb 4, 2026
Merged
MODINVSTOR-1456 - Implement of PATCH requests for instances (storage layer)#1303siarhei-charniak merged 24 commits intomasterfrom
siarhei-charniak merged 24 commits intomasterfrom
Conversation
kjain110
approved these changes
Jan 29, 2026
obozhko-folio
approved these changes
Jan 29, 2026
psmagin
reviewed
Jan 30, 2026
mod-inventory-storage-server/src/main/java/org/folio/utils/PatchPgUtil.java
Outdated
Show resolved
Hide resolved
mod-inventory-storage-server/src/main/java/org/folio/services/instance/InstanceService.java
Outdated
Show resolved
Hide resolved
psmagin
approved these changes
Feb 4, 2026
Collaborator
psmagin
left a comment
There was a problem hiding this comment.
Please update NEWS before merge
JSON Schema Changes (
|
| Status | File (HEAD) |
|---|---|
| Added | ramls/examples/instance-patch.json |
| Modified | ramls/schemas/dereferenced-items/dereferenceditem.json |
| Added | ramls/schemas/instance-storage/instancePatch.json |
Diffs (normalized first, fallback to raw if empty)
ramls/examples/instance-patch.json
--- ramls/examples/instance-patch.json (base)
+++ ramls/examples/instance-patch.json (head)
@@ -0,0 +1,5 @@
+{
+ "_version": 2,
+ "id": "5480e6e5-05d9-4721-8b70-c1350f22219a",
+ "title": "Sample title"
+}ramls/schemas/dereferenced-items/dereferenceditem.json
--- ramls/schemas/dereferenced-items/dereferenceditem.json (base)
+++ ramls/schemas/dereferenced-items/dereferenceditem.json (head)
@@ -170,6 +170,7 @@
},
"lastCheckIn": {
"$ref": "../item-storage/itemLastCheckIn.json",
+ "description": "The last check-in details for the item.",
"type": "object"
},
"materialType": {ramls/schemas/instance-storage/instancePatch.json
--- ramls/schemas/instance-storage/instancePatch.json (base)
+++ ramls/schemas/instance-storage/instancePatch.json (head)
@@ -0,0 +1,21 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "additionalProperties": true,
+ "description": "An instance record patch request",
+ "javaType": "org.folio.rest.jaxrs.model.InstancePatchRequest",
+ "properties": {
+ "_version": {
+ "description": "Version of the instance record",
+ "type": "integer"
+ },
+ "id": {
+ "$ref": "../common/uuid.json",
+ "description": "Unique identifier for the instance record"
+ }
+ },
+ "required": [
+ "id",
+ "_version"
+ ],
+ "type": "object"
+}
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



MODINVSTOR-1456 - Implement of PATCH requests for instances (storage layer)
Purpose
It is necessary to implement support for PATCH requests for instances in inventory storage.
Approach
Changes Checklist
Related Issues
List any Jira issues related to this pull request.
Learning and Resources (if applicable)
Discuss any research conducted during the development of this pull request. Include links to relevant blog posts, patterns, libraries, or addons that were used to solve the problem.
Screenshots (if applicable)
If this pull request involves any visual changes or new features, consider including screenshots or GIFs to illustrate the changes.