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

EVA-3696 - Retrieve Submission details endpoint #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tcezard
Copy link
Member

@tcezard tcezard commented Dec 6, 2024

No description provided.

Comment on lines 60 to 66
@Operation(summary = "This endpoint retrieves all the submissions from the database with given step and status")
@Parameters({
@Parameter(name="step", description = "The processing step of the submission.",
required = true, in= ParameterIn.PATH),
@Parameter(name="status", description = "The status of the submission processing step.",
required = true, in= ParameterIn.PATH)
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this is the wrong summary & parameters...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

public ResponseEntity<?> getSubmissionsDetail(
@PathVariable("submissionId") String submissionId) {
SubmissionDetails submissionDetail = submissionService.getSubmissionDetail(submissionId);
return new ResponseEntity<>(submissionDetail, HttpStatus.OK);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also handle SubmissionDoesNotExistException like the other endpoints?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

tcezard and others added 2 commits December 17, 2024 09:05
Co-authored-by: April Shen <april.tuesday@gmail.com>
@tcezard tcezard requested a review from apriltuesday December 17, 2024 13:04
@Parameter(name="step", description = "The processing step of the submission.",
required = true, in= ParameterIn.PATH),
@Parameter(name="status", description = "The status of the submission processing step.",
@Parameter(name="submissionId", description = "Id of the submission whose status needs to be updated",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Parameter(name="submissionId", description = "Id of the submission whose status needs to be updated",
@Parameter(name="submissionId", description = "Id of the submission to fetch",

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.

2 participants