-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature] Implment GET endpoint to retrieve all tours that given task is linked to #559
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
Merged
solenuk
merged 13 commits into
dev
from
feature/implment-get-endpoint-to-retrieve-all-tours-that-given-task-is-linked-to
Aug 25, 2026
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ccfd42a
feat: create new response dto to hold data about task's linked tours
solenuk 5553d1c
feat: add new mapping
solenuk 9bb4aee
feat: add new query to fetch the list of linked tours for a given task
solenuk 2e349cc
feat: add and implement new method to get the linked tours for a task
solenuk bf28c98
feat: add new endpoint for task's linked tours
solenuk f4ba9d2
test: add new unit tests
solenuk 120cb0b
fix: formatting
solenuk bc971e8
Merge dev to get the bulk method for receiving tour details
solenuk 253c477
feat: use bulk method defined in CompetitionFacade to receive tour data
solenuk f0c765b
feat: add logging and early return if tourIds is empty
solenuk 0488d9a
test: update service tests
solenuk 6c591f2
fix: detect missing tour ids and log them
solenuk 6af28d4
fix: formatter
solenuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
29 changes: 29 additions & 0 deletions
29
...va/com/itasocialacademy/oitassist/taskassignment/dto/response/LinkedToursResponseDTO.java
This file contains hidden or 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,29 @@ | ||
| package com.itasocialacademy.oitassist.taskassignment.dto.response; | ||
|
|
||
| import com.itasocialacademy.oitassist.competition.dao.enums.ExecutionStatus; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import lombok.Builder; | ||
|
|
||
| @Builder | ||
| @Schema(description = "DTO representing linked tour details of some given task") | ||
| public record LinkedToursResponseDTO( | ||
| @Schema( | ||
| description = "Id of the tour the task is linked to", | ||
| example = "1") Long tourId, | ||
|
|
||
| @Schema( | ||
| description = "Title of the tour", | ||
| example = "Тур 1: Алгоритми та структури даних") String title, | ||
|
|
||
| @Schema( | ||
| description = "Description of the tour", | ||
| example = "Розв'язати алгоритмічні задачі") String description, | ||
|
|
||
| @Schema( | ||
| description = "Physical or virtual location where the tour takes place", | ||
| example = "Ліцей №1, Львів") String location, | ||
|
|
||
| @Schema( | ||
| description = "The current state of execution ", | ||
| example = "IN_PROGRESS") ExecutionStatus executionStatus) { | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.