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

18584 - Fix paybc changes. #1326

Merged
merged 2 commits into from
Nov 15, 2023
Merged

18584 - Fix paybc changes. #1326

merged 2 commits into from
Nov 15, 2023

Conversation

seeker25
Copy link
Collaborator

@seeker25 seeker25 commented Nov 15, 2023

bcgov/entity#18584

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).

@seeker25 seeker25 requested review from Jxio and ochiu as code owners November 15, 2023 19:30
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

for line in status.revenue) \
and invoice.invoice_status_code == InvoiceStatus.REFUND_REQUESTED.value
for line in status.revenue:
if len(line.refund_data) == 0:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to put this in, otherwise using all like above fails when refund_data = []

return all(line.refundglstatus == PaymentDetailsGlStatus.CMPLT
for line in status.revenue)
for line in status.revenue:
if len(line.refund_data) == 0:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to put this in, otherwise using all like above fails when refund_data = []

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Merging #1326 (6301dec) into main (79924ce) will decrease coverage by 8.51%.
Report is 44 commits behind head on main.
The diff coverage is 91.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1326      +/-   ##
==========================================
- Coverage   91.45%   82.95%   -8.51%     
==========================================
  Files         186       22     -164     
  Lines       11319     1701    -9618     
==========================================
- Hits        10352     1411    -8941     
+ Misses        967      290     -677     
Flag Coverage Δ
bcolapi ?
eventlistenerqueue ?
payapi ?
paymentjobs 82.95% <91.24%> (+2.72%) ⬆️
paymentreconciliationsqueue ?
reportapi ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
jobs/payment-jobs/tasks/common/dataclasses.py 100.00% <100.00%> (ø)
jobs/payment-jobs/tasks/common/enums.py 100.00% <ø> (ø)
jobs/payment-jobs/tasks/distribution_task.py 97.75% <100.00%> (ø)
.../payment-jobs/tasks/statement_notification_task.py 79.74% <100.00%> (+47.92%) ⬆️
jobs/payment-jobs/tasks/cfs_create_invoice_task.py 71.03% <0.00%> (-1.42%) ⬇️
jobs/payment-jobs/tasks/ap_task.py 96.07% <92.00%> (+0.03%) ⬆️
...ent-jobs/tasks/direct_pay_automated_refund_task.py 84.37% <82.35%> (-1.68%) ⬇️
jobs/payment-jobs/tasks/statement_due_task.py 91.30% <91.30%> (ø)

... and 166 files with indirect coverage changes

@seeker25 seeker25 merged commit c645340 into bcgov:main Nov 15, 2023
7 checks passed
@seeker25 seeker25 changed the title Fix paybc changes. 18584 - Fix paybc changes. Nov 15, 2023
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.

2 participants