Skip to content

MODINVSTOR-1456 - Implement of PATCH requests for instances (storage layer)#1303

Merged
siarhei-charniak merged 24 commits intomasterfrom
MODINVSTOR-1456
Feb 4, 2026
Merged

MODINVSTOR-1456 - Implement of PATCH requests for instances (storage layer)#1303
siarhei-charniak merged 24 commits intomasterfrom
MODINVSTOR-1456

Conversation

@siarhei-charniak
Copy link
Contributor

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

  • Introduced PATCH logic for instances
  • Updated unit tests

Changes Checklist

  • API Changes: Document any API paths, methods, request or response bodies changed, added, or removed.
  • Database Schema Changes: Indicate any database schema changes and their impact. Confirm that migration scripts were created.
  • Interface Version Changes: Indicate any changes to interface versions.
  • Interface Dependencies: Document added or removed dependencies.
  • Permissions: Document any changes to permissions.
  • Logging: Confirm that logging is appropriately handled.
  • Unit Testing: Confirm that changed classes were covered by unit tests.
  • Integration Testing: Confirm that changed logic was covered by integration tests.
  • Manual Testing: Confirm that changes were tested on local or dev environment.
  • NEWS: Confirm that the NEWS file is updated with relevant information about the changes made in this pull request.

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.

@siarhei-charniak siarhei-charniak requested a review from a team January 29, 2026 10:43
@siarhei-charniak siarhei-charniak self-assigned this Jan 29, 2026
@siarhei-charniak siarhei-charniak requested a review from a team as a code owner January 29, 2026 10:44
Copy link
Collaborator

@psmagin psmagin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update NEWS before merge

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

JSON Schema Changes (folio-org/mod-inventory-storage)

  • Base: 82400f81f197202f22d28288f7bd061f6a00ead6
  • Head: 6fe8da70b6b32d733143fe2ddfa08f5b78c49817

Changed files

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"
+}

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 4, 2026

@siarhei-charniak siarhei-charniak merged commit 6d9d4fa into master Feb 4, 2026
19 checks passed
@siarhei-charniak siarhei-charniak deleted the MODINVSTOR-1456 branch February 4, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants