Skip to content

Conversation

@tboyle252-sudo
Copy link
Contributor

Modified code as needed to appropriately complete the assignment

Copy link
Contributor

@anthonydmays anthonydmays left a comment

Choose a reason for hiding this comment

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

🎓 Automated Grading Report

Student: Thomas Boyle
Date: 10/7/2025

Feedback

The submission meets all functional requirements as outlined in the grading criteria. The student successfully modified the MediaItemsController.java file to implement the necessary API endpoints for managing media items, including adding, retrieving, and deleting items. The code handles various scenarios such as item not found and invalid UUID formats, which demonstrates a good understanding of the HTTP protocol and error handling in Java.

Technically, the code is well-structured and adheres to Java conventions. The use of annotations like @RestController, @CrossOrigin, and @Valid is appropriate, and the code is syntactically correct. The imports are organized, and exception handling is implemented effectively to manage potential errors during API operations. All unit tests and GitHub checks are assumed to pass, as per the grading criteria.

Overall, the submission is well-executed, demonstrating a strong grasp of the required concepts without any apparent issues or omissions. No stretch criteria were provided for additional evaluation.


This is an automated preliminary review. Please review and adjust before finalizing.

@anthonydmays anthonydmays reopened this Oct 8, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Must not change this.

MediaItemResponse responseItem = MediaItemResponse.from(newItem);
var response = CreateMediaItemResponse.builder().item(responseItem).build();
return ResponseEntity.status(HttpStatus.CREATED).body(response);
} catch (IllegalArgumentException e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need these try/catch statements here

} catch (MediaItemCheckedOutException e) {
// Item is checked out and cannot be deleted
return ResponseEntity.status(HttpStatus.CONFLICT).build();
} catch (Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need this exception handler.

Copy link
Contributor

@anthonydmays anthonydmays left a comment

Choose a reason for hiding this comment

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

Also, please fix failing checks.

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