bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

Bootstrap filings are stuck in Filed and Pending state in test environment. #22139

Open riyazuddinsyed opened 2 months ago

riyazuddinsyed commented 2 months ago

Describe the bug in the current situation

When the user tries to file an IA/Firm Registrations/Continuation In Filings then after a successful payment the filings are stuck in a "Filed and PENDING state, needing a manual refresh for the "Retrieve Business" button to be visible.

Impact of this bug Users won't be able to see the "Retrieve Business" button

Steps to reproduce the behavior:

  1. Go to 'https://test.business.bcregistry.gov.bc.ca/'
  2. Start an IA or Firm Registration
  3. Complete the payment and observe that the filing stays in Filed and Pending State until a manual refresh.

Expected behavior Retrieve Business button should be visible after a successful filing.

Screenshots/ Visual Reference/ Source

Screen Shot 2024-07-03 at 3.02.09 PM.png
severinbeauvais commented 2 months ago

This looks like the Filer did not receive the queue message from Business Pay (same as we've seen for several weeks in Dev).

I recommend asking @argush3 and @thorwolpert about this, in case there's a config or scaling issue in Test.

It may be possible to get these filings to go through by putting them back on the queue.

severinbeauvais commented 2 months ago

Riyaz, does this happen or can this ticket be closed now?

riyazuddinsyed commented 2 months ago

This happens Sev, and should be addressed.

severinbeauvais commented 2 months ago

@argush3 , @vysakh-menon-aot , can you have a quick look so we don't lose sight of this in bug triage?

vysakh-menon-aot commented 2 months ago

@severinbeauvais, @riyazuddinsyed says UI doesn't show "Retrieve Business" button until manual refresh.

severinbeauvais commented 2 months ago

Thanks, Vysakh, I missed that part.

So, the issue is that the filing isn't getting completed right away so the UI shows the intermediate state (pending). Upon refresh, the UI now shows the final state (completed).

This has always been an issue, because the Filer is async, though it may be worse today than initially. The filing blurb does say, "refresh this screen in a few minutes". An alternative would be to ensure the UI doesn't load the filing until it's completed -- but that could be indefinite. Another alternative would be for the UI to auto-retry, maybe once a second for 5 times, to see if the filing is now completed -- but the filing might still be incomplete for various reasons.

I think we need requirements from our BA, PO, etc.

vikas-gov commented 2 weeks ago

@mstanton1 As your team is working on this, Please review this scenario. For any questions please reach out to @Mihai-QuickSilverDev

severinbeauvais commented 2 weeks ago

This is a duplicate of #21041. I'll close that one.

mstanton1 commented 1 week ago

Thanks @vikas-gov. I'll review with my team / have them test in our dashboard once your fix is in. If the issue is in the filer we may not need separate work in our dashboard but I'll confirm.

severinbeauvais commented 1 week ago

Just to clarify...

I believe Entities-Olga's team is not working on this ticket. There is no Filer issue. The issue is that the business dashboard loads before the filing completes, so the user sees this "filed and pending" state.

Previously, most times, the Filer would complete the filing before the business dashboard loaded it, so the user would see the completed bootstrap filing, as desired.

Since we can't make the Filer faster, and it runs asynchronously anyway, one possible solution is for the business dashboard to poll (eg, every second for 5 seconds) in the background to see if the filing gets completed in that time. If so then the user is shown the completed filing; otherwise they see the "filed and pending" filing.

mstanton1 commented 1 week ago

Thanks for the clarity @severinbeauvais ! I'll add this to grooming, discuss with my team, and circle back in the next few weeks.