gristlabs_grist-core/stubs/app
Alex Hall 0005ad013e (core) Notify open ActiveDocs when the product is upgraded
Summary:
When an account is upgraded to a new product in Billing, send a message to the redis channel `billingAccount-${accountId}-product-changed`.

ActiveDocs subscribe to this channel. When a message is received, they refresh their product from the database and use it to recalculate doc usage based on new limits. The new usage is broadcast to clients so they see the result of the upgrade live.

Test Plan: Extended nbrowser Billing test to test that a document open in a separate tab has its limit banner cleared immediately on upgrade.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3480
2022-06-14 17:25:45 +02:00
..
client (core) repair grist-ee build and add smoke test 2022-06-13 13:54:14 -04:00
common (core) more grist-core cleanup 2020-07-23 16:21:08 -04:00
server (core) Notify open ActiveDocs when the product is upgraded 2022-06-14 17:25:45 +02:00
tsconfig.json (core) fix inconsistent name of directory for DocUsageBanner.ts 2022-05-31 16:42:29 -07:00