-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rename-accounts-to-wallets #140
Conversation
Reviewer's Guide by SourceryThis pull request renames "accounts" to "wallets" throughout the codebase. It's a comprehensive change that affects multiple files, including models, services, routers, templates, and utility functions. The change is primarily a renaming operation, with minimal functional changes to the application logic. File-Level Changes
Tips
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @EduardSchwarzkopf - I've reviewed your changes - here's some feedback:
Overall Comments:
- Ensure there's a clear migration plan for existing data and update any external API documentation to reflect the 'account' to 'wallet' terminology change.
- Consider adding comprehensive integration tests to verify that all wallet-related functionality (creation, updates, deletions, and especially financial calculations) works correctly after this refactoring.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
@@ -15,7 +15,7 @@ | |||
from app.date_manager import get_day_delta, get_tomorrow, get_yesterday, now | |||
from app.repository import Repository | |||
from app.utils.enums import DatabaseFilterOperator, RequestMethod | |||
from tests.utils import get_other_user_account, make_http_request | |||
from tests.utils import get_other_user_wallet, make_http_request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (code-quality): Don't import test modules. (dont-import-test-modules
)
Explanation
Don't import test modules.Tests should be self-contained and don't depend on each other.
If a helper function is used by multiple tests,
define it in a helper module,
instead of importing one test from the other.
@@ -14,7 +14,7 @@ | |||
from app.repository import Repository | |||
from app.utils.classes import RoundedDecimal | |||
from app.utils.enums import DatabaseFilterOperator, RequestMethod | |||
from tests.utils import get_user_offset_account, make_http_request | |||
from tests.utils import get_user_offset_wallet, make_http_request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (code-quality): Don't import test modules. (dont-import-test-modules
)
Explanation
Don't import test modules.Tests should be self-contained and don't depend on each other.
If a helper function is used by multiple tests,
define it in a helper module,
instead of importing one test from the other.
Summary by Sourcery
Rename 'accounts' to 'wallets' throughout the codebase, including in models, services, routes, templates, and tests, to align with updated terminology and improve consistency across the application.
Enhancements:
Tests: