gristlabs_grist-core/stubs/app/server
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
..
lib (core) add machinery for self-managed flavor of Grist 2022-05-12 12:39:52 -04:00
declarations.d.ts (core) Notify open ActiveDocs when the product is upgraded 2022-06-14 17:25:45 +02:00
server.ts (core) Product update popups and hosted stripe integration 2022-06-08 21:10:49 +02:00
tmp.d.ts (core) move home server into core 2020-07-21 20:39:10 -04:00