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

Fix/refactor transactions #6

Merged
merged 9 commits into from
Aug 17, 2023
Merged

Fix/refactor transactions #6

merged 9 commits into from
Aug 17, 2023

Conversation

incredimike
Copy link
Owner

Rearranged the project to use the Repository pattern to fetch each type from the YNAB API.

While a typical Repository implementation might have a separate class for each entity — Transaction, Payee, Category, Budget, Account — our we are only reading from the YNAB API at this point and we don’t need the increased complexity of separate repo classes for simple read-only operations. The read-only nature of this project is why the Repository pattern was chosen over alternatives.

Added tests & factories for the new repository methods.

The CacheRepository is stated in this PR as well, which was an oversight but It's 1:30 and I'm the only developer on this project so I'm going to merge it anyway.

@incredimike incredimike merged commit 7f1ad0c into main Aug 17, 2023
3 checks passed
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.

1 participant