Skip to content

Alternative solution for listAll method.#38

Merged
pedr0limpio merged 1 commit intomainfrom
2-2-listall
Jul 2, 2025
Merged

Alternative solution for listAll method.#38
pedr0limpio merged 1 commit intomainfrom
2-2-listall

Conversation

@silrenan
Copy link
Copy Markdown
Collaborator

@silrenan silrenan commented Jun 4, 2025

This PR aims to introduces an alternative approach to address the same problem targeted by the original branch. The branch was duplicated to explore a different solution.

@silrenan silrenan self-assigned this Jun 4, 2025
@silrenan silrenan added the enhancement New feature or request label Jun 4, 2025
@silrenan silrenan changed the title Alternative Solution for ListAll method. Alternative solution for listAll method Jun 4, 2025
@silrenan silrenan changed the title Alternative solution for listAll method Alternative solution for listAll method. Jun 4, 2025
@silrenan silrenan requested a review from pedr0limpio June 4, 2025 15:45
Copy link
Copy Markdown
Owner

@pedr0limpio pedr0limpio left a comment

Choose a reason for hiding this comment

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

Approved with reservations, because even when there is no task or when the DB is "offline", the application does not return errors.


while (rs.next()) {
Task task = new Task();
int taskId = rs.getInt("task_id");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Okay, here we come to the part of incorporating GraphQL good practice into the code.

…nd add listAll() endpoint with corresponding test

Signed-off-by: silrenan <75952546+silrenan@users.noreply.github.com>
@pedr0limpio pedr0limpio merged commit f084b0d into main Jul 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants