-
Notifications
You must be signed in to change notification settings - Fork 1
Add Account type field and refactor Transaction handling #56
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
Conversation
Use TransactionTypeProperty from firefly models to avoid KeyError's when encountered transactions types that were unavailble in the lampyrid model previously. Also adds a validation to the CreateBulkTransactionsRequest to only allow withdrawal, deposit and transfer
📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughConfiguration enhancements to pyproject.toml include Ruff lint settings and datamodel-codegen options. The Account model gains a new type field, and Transaction type handling shifts from an enum-based approach to a property-based model with validation added to CreateBulkTransactionsRequest. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (6)
Comment |
Purpose
Use the same transaction type available in firefly models to avoid KeyErrors. Also adds a type field to the Account model.
Resolves #54