Skip to content

Commit 7ffecb6

Browse files
authored
MODINV-1101: Replace usage of deprecated instance-storage-batch API (#806)
* MODINV-1101: change to use another endpoint * MODINV-1101: minor improvement
1 parent d136734 commit 7ffecb6

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Enable system user for data-import processes [MODINV-1115](https://folio-org.atlassian.net/browse/MODINV-1115)
44
* Missing x-okapi-user-id header in communications with inventory-storage [MODINV-1134](https://folio-org.atlassian.net/browse/MODINV-1134)
55
* Fix handling optimistic locking behavior for instance update when consuming Marc Bib update event [MODINV-1125](https://folio-org.atlassian.net/browse/MODINV-1125)
6+
* Replace usage of deprecated instance-storage-batch API [MODINV-1101](https://folio-org.atlassian.net/browse/MODINV-1101Л)
67

78
## 21.0.0 2024-10-29
89
* Existing "035" field is not retained the original position in imported record [MODINV-1049](https://folio-org.atlassian.net/browse/MODINV-1049)

descriptors/ModuleDescriptor-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@
622622
"version": "11.0"
623623
},
624624
{
625-
"id": "instance-storage-batch",
625+
"id": "instance-storage-batch-sync",
626626
"version": "3.0"
627627
},
628628
{

src/main/java/org/folio/inventory/storage/external/ExternalStorageModuleInstanceCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ExternalStorageModuleInstanceCollection
5656
super(format("%s/%s", baseAddress, "instance-storage/instances"),
5757
tenant, token, userId, requestId, "instances", client);
5858

59-
batchAddress = format("%s/%s", baseAddress, "instance-storage/batch/instances");
59+
batchAddress = format("%s/%s", baseAddress, "instance-storage/batch/synchronous");
6060
}
6161

6262
@Override

src/test/java/support/fakes/FakeOkapi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private void registerFakeInstanceStorageModule(Router router) {
8080
StorageRecordPreProcessors.setHridProcessor("in")
8181
).create();
8282
fakeInstanceStorageModule.register(router);
83-
fakeInstanceStorageModule.registerBatch(router, "/instance-storage/batch/instances");
83+
fakeInstanceStorageModule.registerBatch(router, "/instance-storage/batch/synchronous");
8484

8585
new FakeStorageModuleBuilder()
8686
.withRecordName("instance relationship")

0 commit comments

Comments
 (0)