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: convert MyInfo hash update to domain method #562

Merged
merged 5 commits into from
Nov 3, 2020

Conversation

mantariksh
Copy link
Contributor

@mantariksh mantariksh commented Nov 2, 2020

Problem

MyInfo controller interacts directly with the model to update the field hashes, which makes it hard to refactor the logic into a clean service.

Solution

This PR moves the logic for updating MyInfo field value hashes from the controller into a model static method, and adds test for the MyInfoHash model.

@mantariksh mantariksh marked this pull request as ready for review November 2, 2020 13:23
Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@tshuli tshuli left a comment

Choose a reason for hiding this comment

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

lgtm!

@liangyuanruo liangyuanruo merged commit f3320bb into develop Nov 3, 2020
@liangyuanruo liangyuanruo deleted the refactor/myinfo-hash-statics branch November 3, 2020 06:19
@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.

4 participants