Skip to content

Feat(19)-Fixed minor bug and added evidences#70

Merged
jae9104 merged 2 commits intomainfrom
Feat(19)-StructuralCorrections
Apr 22, 2026
Merged

Feat(19)-Fixed minor bug and added evidences#70
jae9104 merged 2 commits intomainfrom
Feat(19)-StructuralCorrections

Conversation

@jae9104
Copy link
Copy Markdown
Collaborator

@jae9104 jae9104 commented Apr 22, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2026 09:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates API documentation security annotations, adjusts Docker Compose MySQL credentials/healthcheck tuning for the separated deployment setup, and adds image “evidence” assets.

Changes:

  • Add @SecurityRequirement(name = "bearerAuth") to multiple controllers to mark endpoints as requiring JWT auth in Swagger.
  • Update docker-compose-separated.yml to use a non-root MySQL user/password for the backend and expand MySQL healthcheck timings.
  • Add new evidence images and adjust backend build deps to include the MySQL connector at runtime.

Reviewed changes

Copilot reviewed 6 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
utils/images/QualityGate.JPG Adds a new evidence screenshot (contains EXIF/XMP metadata).
utils/images/Admin.JPG Adds a new evidence screenshot (contains EXIF/XMP metadata).
docker/docker-compose-separated.yml Switch backend DB creds to ${MYSQL_USER}/${MYSQL_PASSWORD} and tune MySQL healthcheck.
backend/src/main/java/com/tfg/tfg/controller/UserController.java Marks controller as requiring bearerAuth in OpenAPI docs.
backend/src/main/java/com/tfg/tfg/controller/DashboardController.java Marks controller as requiring bearerAuth in OpenAPI docs.
backend/src/main/java/com/tfg/tfg/controller/AdminController.java Marks controller as requiring bearerAuth in OpenAPI docs.
backend/src/main/java/com/tfg/tfg/config/OpenApiConfig.java Removes global security requirement item (but leaves an unused import).
backend/pom.xml Makes MySQL connector available beyond test scope.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 43 to 49
.servers(List.of(
new Server()
.url("https://localhost")
.description("Local development server (HTTPS)")))
.addSecurityItem(new SecurityRequirement()
.addList(securitySchemeName))
.components(new Components()
.addSecuritySchemes(securitySchemeName, new SecurityScheme()
.name(securitySchemeName)
Comment on lines +24 to +25
SPRING_DATASOURCE_USERNAME: "${MYSQL_USER}"
SPRING_DATASOURCE_PASSWORD: "${MYSQL_PASSWORD}"
@jae9104 jae9104 merged commit 53a24a4 into main Apr 22, 2026
9 checks passed
@jae9104 jae9104 deleted the Feat(19)-StructuralCorrections branch April 22, 2026 10:04
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