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

SPIKE: design for async dashboard updates #24950

Open
severinbeauvais opened this issue Dec 13, 2024 · 0 comments
Open

SPIKE: design for async dashboard updates #24950

severinbeauvais opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
Entities - Olga A label to filter on the tickets for the Entities based team that Olga is PO for.

Comments

@severinbeauvais
Copy link
Collaborator

severinbeauvais commented Dec 13, 2024

The Problem

The business dashboard can fetch data before the Filer has finished processing a just-submitted filing, so the dashboard is out of date even though it was just loaded.

Similarly, the business dashboard can fetch some data (eg, business object) that doesn't match other data (eg, ledger) because they are separate fetch calls and their state could have changed between the two calls.

Or, a filing is done in the background (eg, Change of Addresses, or Involuntary Dissolution, or Expiry of Limited Restoration), and the dashboard doesn't update to show the latest state.

Example issues:

  • a business that was just dissolved might still display as active in the dashboard (including involuntary dissolution or expiry of limited restoration)
  • a business that was just restored might still display as historical in the dashboard
  • a business that was just frozen might still display as usable in the dashboard
  • a business that was just unfrozen might still display as unusable in the dashboard
  • any filing that was just filed might display as "filed and pending" even though it's actually now completed

Refreshing the dashboard (F5) usually syncs up the latest (now-updated) data, but users don't know to do that, or if and when they should do that, and this is not a good user experience.

Proposed Solution 1 - polling for changes

Pros

Cons

Proposed Solution 2 - server event using persistent connection (websockets)

Pros

Cons

Proposed Solution 3 - gRPC

Ref: https://grpc.io/

@severinbeauvais severinbeauvais added the Entities - Olga A label to filter on the tickets for the Entities based team that Olga is PO for. label Dec 13, 2024
@severinbeauvais severinbeauvais self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Entities - Olga A label to filter on the tickets for the Entities based team that Olga is PO for.
Projects
None yet
Development

No branches or pull requests

1 participant