Skip to content

Small object Ids refactor and extract external repository use cases - #64

Merged
manerow merged 6 commits into
feat/user_option_controllerfrom
feat/refactor_long_ids_to_int
Dec 9, 2022
Merged

Small object Ids refactor and extract external repository use cases#64
manerow merged 6 commits into
feat/user_option_controllerfrom
feat/refactor_long_ids_to_int

Conversation

@manerow

@manerow manerow commented Dec 9, 2022

Copy link
Copy Markdown
Collaborator

I've refactored the application entities IDs changing from Long to Integer as it is an standard from the GitHub API and i found we'll work more smoothly having the same types as they provide on the responses. Also, i've deleted the autoincrement feature from the primary keys of the database tables as we should work with the provided GitHub API Ids.
Since my changes were affecting all the common database initial schema i've opted to refactor the initial db changelog file and re-create the database. It's currently working correctly on this branch.
Also, i've been working on creating an specific usecase for fetching all the repositories from a team and another use case for fetching the users from a team. They both call the corresponding external repositories.

@manerow manerow self-assigned this Dec 9, 2022
@manerow
manerow requested a review from a team December 9, 2022 18:53
@manerow manerow added type: bug Something isn't working status: code review PR ready to be reviewed labels Dec 9, 2022
@manerow manerow added this to the 2 - MVP milestone Dec 9, 2022
@mikededo

mikededo commented Dec 9, 2022

Copy link
Copy Markdown
Contributor

I think the base branch is not the correct, as we would also merge the changes from the #63 pull request.

@manerow

manerow commented Dec 9, 2022

Copy link
Copy Markdown
Collaborator Author

I think the base branch is not the correct, as we would also merge the changes from the #63 pull request.

True! I've mistaken the destination branch, i'll change it inmediately

@manerow
manerow changed the base branch from main to feat/user_option_controller December 9, 2022 18:58

public class FetchTeamsFromOrganization {
private TeamExternalRepository teamRESTRepository;
private final TeamExternalRepository teamRESTRepository;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm, I forgot to rename this variables. Could you do it? Rename the teamRESTRepository for teamExternalRepository.

Comment thread src/main/java/io/pakland/mdas/githubstats/domain/Team.java
Comment thread src/main/resources/db/changelog/changes/000_initial_schema.yaml
@mikededo

mikededo commented Dec 9, 2022

Copy link
Copy Markdown
Contributor

Also, by seeing the test results, I see that the code is failing. I think there's been an issue somewhere. I will help on fixing this.

@mikededo

mikededo commented Dec 9, 2022

Copy link
Copy Markdown
Contributor

Also, by seeing the test results, I see that the code is failing. I think there's been an issue somewhere. I will help on fixing this.

Fixed ✅

@manerow
manerow merged commit 95f9d1b into feat/user_option_controller Dec 9, 2022
@manerow
manerow deleted the feat/refactor_long_ids_to_int branch December 9, 2022 19:36
@mikededo mikededo added status: done PR/Issue completed and removed status: code review PR ready to be reviewed labels Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: done PR/Issue completed type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants