-
Notifications
You must be signed in to change notification settings - Fork 40
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
19336 - EFT Payment details #1389
Conversation
- EFT Short name search updates - EFT transactions by short name route
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1389 +/- ##
==========================================
+ Coverage 91.45% 92.12% +0.67%
==========================================
Files 186 192 +6
Lines 11319 12693 +1374
==========================================
+ Hits 10352 11694 +1342
- Misses 967 999 +32
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
looks great
deposit_date=string_to_date(deposit_date) if deposit_date else None, | ||
deposit_amount=Decimal(deposit_amount) * Decimal(100) if deposit_amount else None, | ||
short_name=short_name, | ||
transaction_date=string_to_date(transaction_date) if transaction_date else None, |
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.
change string_to_date to return None?
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.
This was an existing utility function I re-used. I will take a look at some of the existing usages and see if it impacts it.
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.
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.
Updated utils function and any usages.
EFTTransactionModel.deposit_date, | ||
EFTTransactionModel.deposit_amount_cents, | ||
EFTTransactionModel.short_name_id, | ||
func.row_number().over(partition_by=EFTTransactionModel.short_name_id, |
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.
cool haven't see partition by much
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
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.
LGTM
Issue #:
bcgov/entity#19336
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-pay license (Apache 2.0).