Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIRC-2100 Fetch print details while fetching request details based on cql query #1486

Merged
merged 41 commits into from
Aug 5, 2024

Conversation

Vignesh-kalyanasundaram
Copy link
Contributor

@Vignesh-kalyanasundaram Vignesh-kalyanasundaram commented Jul 30, 2024

Purpose

The purpose of the PR is to implement CIRC-2100

Approach

In request app, when any of the filter is selected, circulation/request API is called. In order to show the print information of a request, we have introduced a new object(printEventDetail) in Request entity.
If the printEventFeature is enabled for a tenant, we are making a call to /print-events-storage/print-events-status with list of requestIds. Once the print events are retrieved, we are mapping those details to corresponding request object. when we are fetching the userDetails of requester and proxy user, we also include the requesterId of printEvent object and map it to the user object of printEventDetail so that we will return updated data.
If the printEventFeature is disabled or if the settings is not found for a tenant, current code will work as it is.

TODOS and Open Questions

  • Check logging

Learning

SreejaMangarapu and others added 8 commits July 29, 2024 14:59
…RC-2100

# Conflicts:
#	src/main/java/org/folio/circulation/infrastructure/storage/PrintEventsRepository.java
#	src/main/java/org/folio/circulation/support/Clients.java
#	src/test/java/api/printEvents/PrintEventsTests.java
#	src/test/java/api/support/fakes/FakeOkapi.java
@Vignesh-kalyanasundaram Vignesh-kalyanasundaram changed the title CIRC-2100 CIRC-2100 Fetch print details while fetching request details based on cql query Jul 30, 2024
Copy link

@Vignesh-kalyanasundaram Vignesh-kalyanasundaram merged commit 5e3559d into master Aug 5, 2024
6 checks passed
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.

3 participants