You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Email Delivery - Missing PDF Document_Voluntary Dissolutions #24318
Conducted some preliminary analysis by continuously running requests for getting the documents for Voluntary Dissolution in Test and localhost. APIs used: {{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/certificateOfDissolution {{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/dissolution {{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/receipt identifier: BC1147549 filing_id: 395618
Since it's intermittent, and getting the documents takes pretty long response time. I suspect there might be some cutoff time setting (maybe) or there are some BE logic in the emailer has some bug, will dig into Entity Emailer next week, also a potential consideration is Notify API.
Question: do we want to change this logic to make the Voluntary Dissolution Application.pdf gets attached to both status (PAID and COMPLETED) ?
The root causes of intermittently missing PDFs is still under investigation, potential cause might be long running time and got kicked out before all PDFs are generated. (this is an assumption at this moment).
Activity
severinbeauvais commentedon Nov 8, 2024
For both businesses above, the Voluntary Dissolution ledger item shows 3 outputs:
For both businesses above, all 3 outputs can be downloaded successfully (though one sometimes fails when using the Download All button).
Therefore, this is intermittent, even from the ledger item link.
cc: @vysakh-menon-aot
Refs:
https://test.business.bcregistry.gov.bc.ca/BC1147549
https://test.business.bcregistry.gov.bc.ca/BC1147557
eason-pan-bc commentedon Nov 9, 2024
Conducted some preliminary analysis by continuously running requests for getting the documents for Voluntary Dissolution in Test and localhost.
APIs used:
{{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/certificateOfDissolution{{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/dissolution{{url}}/api/v2/businesses/:identifier/filings/:filing_id/documents/receiptidentifier: BC1147549
filing_id: 395618
Results
https://docs.google.com/spreadsheets/d/1oH9e-p7voY4puV_GzzLb6X0iTGBwC8DUzcz_lfjm14c/edit?usp=sharing
Since it's intermittent, and getting the documents takes pretty long response time. I suspect there might be some cutoff time setting (maybe) or there are some BE logic in the emailer has some bug, will dig into Entity Emailer next week, also a potential consideration is Notify API.
eason-pan-bc commentedon Nov 13, 2024
@severinbeauvais @vysakh-menon-aot
Currently, the
Voluntary Dissolution Application.pdfonly be attached to an email when the Filing.Status is PAID, not for COMPLETED. Code reference in Emailer: https://github.com/bcgov/lear/blob/main/queue_services/entity-emailer/src/entity_emailer/email_processors/dissolution_notification.py#L54C5-L68C34And since the process is from filer then go to emailer, that might be why it's always missing in the voluntary dissolution email attachment, since it emails out when the filing is completed.
Question: do we want to change this logic to make the
Voluntary Dissolution Application.pdfgets attached to both status (PAID and COMPLETED) ?The root causes of intermittently missing PDFs is still under investigation, potential cause might be long running time and got kicked out before all PDFs are generated. (this is an assumption at this moment).
vysakh-menon-aot commentedon Nov 13, 2024
No. It's the requirement. entity-emailer will receive the message to process PAID status emails from
business-pay(https://github.com/bcgov/lear/blob/main/queue_services/business-pay/src/business_pay/resources/pay_filer.py#L155)eason-pan-bc commentedon Nov 13, 2024
thank you for clarification. found some other issues, will dig into the other directions.
eason-pan-bc commentedon Nov 13, 2024
Notes for fixing consistently not getting Voluntary Dissolution Application.pdf attachment in Emails
After the PR bcgov/lear#3073 merged.


Tested in Dev, in MailHog, the 2 emails and 3 attachments are both there
eason-pan-bc commentedon Nov 15, 2024
The root cause for intermittent missing PDF file(s) is the same as #24321 (comment)
And the issue has been addressed in #24321 (comment)
vishnup0422 commentedon Nov 19, 2024
Dev Env:
Filing a Dissolution for a BEN
BC0883763
FilingId: 152553
Voluntary Dissolution
Certificate of Dissolution
Receipt
Test Env:
BEN: BC1152926
filing_id=395953
Voluntary Dissolution
Certificate of Dissolution
Receipt