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

Feature#529 #566

Closed
wants to merge 10 commits into from
Closed

Feature#529 #566

wants to merge 10 commits into from

Conversation

PabloMartinFluvia
Copy link
Collaborator

done and all previous tests passed.
Notice for futures TODO:
There were many endpoints and use case in user management not tested when this task was started.
If you want just reject the PR and I will do it.
Intergation test:
GET endpoints no tested
POST user not tested when duplicated email
Controller unit test:
GET enpoints not tested when not found (email + id)
POST user not tested when duplicated email or max limit reached

Implemented by UserDto. To allow abstraction on service layer in get user by id functionality
 Now service and all previous tests works using the IdOnly interface
Replaces UserEmailDto when findByEmail functionality. Better abstraction. Goal: Interface Segregation
Now service's publics methods only accepts interfaces, these provides only the minimum data needed for the method
Only implemented 2 new tests in UserDtoTest, the others upgrated
DRY on tests + builder in UserDto
inhertited included, only left wildcard on add user resource
@PabloMartinFluvia PabloMartinFluvia linked an issue Apr 13, 2023 that may be closed by this pull request
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

94.5% 94.5% Coverage
0.0% 0.0% Duplication

@PabloMartinFluvia PabloMartinFluvia deleted the feature#529 branch April 13, 2023 00:53
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.

UserManagement: Refactoring
1 participant