Skip to content

Add handling for missing data in CombinedInvoiceSupplementReportV2#11121

Merged
zachmargolis merged 3 commits intomainfrom
margolis-combined-invoice-bug
Aug 21, 2024
Merged

Add handling for missing data in CombinedInvoiceSupplementReportV2#11121
zachmargolis merged 3 commits intomainfrom
margolis-combined-invoice-bug

Conversation

@zachmargolis
Copy link
Contributor

Similar to #11095

Differences:

  • Adds a failing spec
  • Skips rows with missing data
  • Adds logging to investigate specific data

- also log warning so we can investigate

changelog: Bug Fixes, Reporting, Add handling for error seen first day of the month
@zachmargolis zachmargolis requested a review from a team August 20, 2024 22:47
Copy link
Contributor

@samathad2023 samathad2023 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +584 to +608
let(:by_iaa_results) do
[
{
key: 'IAA123',
year_month: '202408',
iaa_start_date: '2024-08-01',
iaa_end_date: '2025-07-31',
},
]
end

let(:by_issuer_results) do
[
{
iaa: 'IAA123',
issuer: service_provider.issuer,
year_month: '202408',
},
{
iaa: 'IAA123',
issuer: service_provider.issuer,
year_month: '202409',
},
]
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it really just a mismatch on year_month between iaas and issuers? I thought the error was happening because an issuer year_month was outside of the range of the iaa.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel like the result is the same no?

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be, it just makes more sense to me now.

@zachmargolis zachmargolis merged commit 25c3436 into main Aug 21, 2024
@zachmargolis zachmargolis deleted the margolis-combined-invoice-bug branch August 21, 2024 17:06
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.

3 participants