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

refactor: hash uinFin in domain layer #596

Merged
merged 7 commits into from
Nov 9, 2020
Merged

Conversation

mantariksh
Copy link
Contributor

Problem

The MyInfo controller currently has the responsibility of hashing the user's ID (uinFin) in order to search and update the MyInfoHash collection. However, hashing is really a concern of how the data is stored, not the business logic of the application. It would be better if the service and controller layers could deal with the ID as-is, instead of having to worry about transforming it so the model can store it correctly.

Solution

Move the responsibility of hashing the uinFin into model static methods, and have the controller interact with the model through those methods.

@mantariksh mantariksh merged commit 0e1ecee into develop Nov 9, 2020
@mantariksh mantariksh deleted the ref/uinfin-hashing branch November 10, 2020 01:51
@tshuli tshuli mentioned this pull request Nov 10, 2020
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