-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(reindex): implement new re-index flow for instance records
feat(reindex): implement new re-index flow for instance records Closes: MSEARCH-793, MSEARCH-794, MSEARCH-796, MSEARCH-797, MSEARCH-798, MSEARCH-799, MSEARCH-800, MSEARCH-801, MSEARCH-802
- Loading branch information
Showing
351 changed files
with
9,309 additions
and
6,769 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
26 changes: 26 additions & 0 deletions
26
src/main/java/org/folio/search/client/ConsortiumTenantsClient.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.folio.search.client; | ||
|
||
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; | ||
|
||
import java.util.List; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
|
||
@FeignClient("consortia") | ||
public interface ConsortiumTenantsClient { | ||
|
||
/** | ||
* Get tenants by consortium id. | ||
* | ||
* @return consortium tenants if executed under consortium central 'tenantId' context | ||
* */ | ||
@GetMapping(value = "/{consortiumId}/tenants", produces = APPLICATION_JSON_VALUE) | ||
ConsortiumTenants getConsortiumTenants(@PathVariable("consortiumId") String consortiumId, | ||
@RequestParam("limit") int limit); | ||
|
||
record ConsortiumTenants(List<ConsortiumTenant> tenants) { } | ||
|
||
record ConsortiumTenant(String id, boolean isCentral) { } | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/org/folio/search/client/InventoryInstanceClient.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.folio.search.client; | ||
|
||
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; | ||
|
||
import java.net.URI; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
|
||
@FeignClient("instance-storage") | ||
public interface InventoryInstanceClient { | ||
|
||
/** | ||
* Retrieves Inventory Records count with given URI. | ||
* | ||
* @param uri URI to retrieve count of inventory record | ||
* @return count represented as {@link InventoryRecordsCountDto} | ||
*/ | ||
@GetMapping(produces = APPLICATION_JSON_VALUE) | ||
InventoryRecordsCountDto getInventoryRecordsCount(URI uri); | ||
|
||
record InventoryRecordsCountDto(int totalRecords) { } | ||
} |
Oops, something went wrong.