Skip to content

chore: Move flask filter logic from ViewModels to Services #1636

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

Merged
merged 1 commit into from
Apr 20, 2019

Conversation

aggarwalpulkit596
Copy link
Contributor

Fixes #1344

Changes: Earlier, ViewModels were building flask filter queries themselves and passing them to Services.

This was not good because this leaked the data retrieval logic into the ViewModels. Only the Services should be concerned with data retrieval and they should abstract out that logic.

This change moves the logic into Services where it belongs.

@auto-label auto-label bot added the chore label Apr 20, 2019
@aggarwalpulkit596
Copy link
Contributor Author

@iamareebjamal resolved conflicts

@iamareebjamal iamareebjamal merged commit e1c4843 into fossasia:development Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: Move flask filter query logic from ViewModels to Services
2 participants