bcgov / entity

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

[VERIFY] Filings UI: business state on the dashboard after filing not getting refreshed #23406

Open riyazuddinsyed opened 2 months ago

riyazuddinsyed commented 2 months ago

Describe the bug in the current situation When the staff files a Put Back On filing then upon successful filing and returning to the dashboard the Detail Section does not show up and the state of the business doesn't get restored meaning that it still shows as Historical

Steps to reproduce the behavior:

  1. Go to 'https://test.business.bcregistry.gov.bc.ca/'
  2. Login as Staff
  3. Find a business that has been Historical
  4. File a Put Back On filing
  5. Observe that the business is still historical (this is the bug)
  6. You need to refresh the page to see the business as active

Screenshots/ Visual Reference/ Source

Screen Shot 2024-09-19 at 10.37.45 AM.png
severinbeauvais commented 2 months ago

I have seen this, too.

The problem is that the dashboard is loaded before the PBO filing is processed.

I am not sure how to handle this. @vysakh-menon-aot @argush3 , ideas?

vysakh-menon-aot commented 2 months ago

This problem should be common for any changes to business object and its tricky to fix in this decoupled architecture. @riyazuddinsyed how often do you see that?

Note: A Continued Out business cannot be restored or put back on (there should be a ticket to update allowable actions to disable put back on)

severinbeauvais commented 2 months ago

Note: A Continued Out business cannot be restored or put back on (there should be a ticket to update allowable actions to disable put back on)

-> #23414

OlgaPotiagalova commented 2 weeks ago

See also https://app.zenhub.com/workspaces/entities---olga-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/23968

severinbeauvais commented 9 hours ago

I believe this is another symptom of the dashboard refreshing before the PBO filing has been processed, so it shows you the old business state.

Implementing 23968 would provide an automatic background retry mechanism so that the dashboard shows you the new data if it becomes available within, say, 5 seconds.

vikas-gov commented 9 hours ago

Once #23968 is complete, this ticket needs to be retested.