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

Feature/add new endpoint to resolve all images for a specific channel #217

Conversation

saschadoemer
Copy link
Contributor

No description provided.

Added a new method in the ImageRepository to search images based on transaction id and channel. Also extended the ImageProcessingIntegrationService to include a new function getAllImagesForTransaction. Created a new endpoint in the ImagesController for making the request to get all images for a transaction. Changed the 'imageChannel' comment in the Image entity for clarity. Created GetAllImagesForTransactionRequest and GetAllImagesForTransactionResponse to handle request and response for the new function.
Expanded the ImageRepository to add new methods for searching and retrieving image transactions. New methods can find transactions within a specific timeframe, as well as find the first image of each transaction. All changes support tenant-specific search.
The ImagesController has been updated to include a more detailed response when listing all transactions for a tenant. A map of transaction IDs and their corresponding image timestamps has been added to this response. The AllTransactionsForTenantResponse class has also been appropriately modified for these changes.
The code changes condense the operation that maps transactions to timestamps into one line. This change improves the code's readability and maintainability, without altering the functionality of the ImagesController.
@Vitrum-LL Vitrum-LL added this pull request to the merge queue Jun 28, 2024
Merged via the queue into main with commit 86bf534 Jun 28, 2024
1 check passed
@saschadoemer saschadoemer deleted the feature/add-new-endpoint-to-resolve-all-images-for-a-specific-channel branch August 13, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants