gristlabs_grist-core/app/server/lib
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
..
ACLFormula.ts
ActionHistory.ts
ActionHistoryImpl.ts
ActionSummary.ts
ActiveDoc.ts (core) Notify open ActiveDocs when the product is upgraded 2022-06-14 17:25:45 +02:00
ActiveDocImport.ts (core) Move guessing logic for column types to run in node once for all columns. 2022-05-19 12:49:51 -04:00
AppEndpoint.ts
AppSettings.ts (core) make it easier to enable Azure storage without setting GRIST_DOCS_S3_BUCKET 2022-06-03 14:50:31 -04:00
Authorizer.ts (core) Adding GristConnect login system 2022-05-18 20:28:25 +02:00
BrowserSession.ts
checksumFile.ts
Client.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
Comm.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
dbUtils.ts (core) move DocUsageBanner to ext 2022-05-27 22:19:17 -04:00
DiscourseConnect.ts (core) Adding GristConnect login system 2022-05-18 20:28:25 +02:00
DocApi.ts (core) Add GET /attachments endpoint for listing attachment metadata 2022-05-20 20:30:14 +02:00
DocClients.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
DocManager.ts (core) make it easier to enable Azure storage without setting GRIST_DOCS_S3_BUCKET 2022-06-03 14:50:31 -04:00
DocPluginData.ts
DocPluginManager.ts
DocSession.ts
DocSnapshots.ts
DocStorage.ts
DocStorageManager.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
docUtils.d.ts
docUtils.js
DocWorker.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
DocWorkerMap.ts
ExcelFormatter.ts
ExpandedQuery.ts
Export.ts
ExportCSV.ts
ExportXLSX.ts
expressWrap.ts
ExternalStorage.ts
extractOrg.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
FileParserElement.ts
filterUtils.ts
FlexServer.ts (core) Product update popups and hosted stripe integration 2022-06-08 21:10:49 +02:00
ForwardAuthLogin.ts
GoogleAuth.ts
GoogleExport.ts
GoogleImport.ts
GranularAccess.ts
GristServer.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
gristSessions.ts (core) add missing tsconfig file that affects IDEs 2022-05-27 13:48:58 -04:00
guessExt.ts
HashUtil.ts
HostedMetadataManager.ts (core) Show usage banners in doc menu of free team sites 2022-05-26 15:01:35 -07:00
HostedStorageManager.ts (core) limit retries of uploads to external store in tests 2022-06-06 16:19:41 -04:00
IBilling.ts (core) Product update popups and hosted stripe integration 2022-06-08 21:10:49 +02:00
IChecksumStore.ts
ICreate.ts (core) make it easier to enable Azure storage without setting GRIST_DOCS_S3_BUCKET 2022-06-03 14:50:31 -04:00
IDocStorageManager.ts
idUtils.ts
IElectionStore.ts
initialDocSql.ts
INotifier.ts
ISandbox.ts
IShell.ts
ITestingHooks-ti.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
ITestingHooks.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
log.ts
LogMethods.ts
manifest.ts
MinimalLogin.ts (core) Adding GristConnect login system 2022-05-18 20:28:25 +02:00
NSandbox.ts
OnDemandActions.ts
PermissionInfo.ts
Permit.ts
places.ts
PluginEndpoint.ts
PluginManager.ts
reportTimeTaken.ts
requestUtils.ts (core) Product update popups and hosted stripe integration 2022-06-08 21:10:49 +02:00
RowAccess.ts
SafePythonComponent.ts
SamlConfig.ts
SandboxControl.ts
sandboxUtil.ts (core) Fix issue with sandboxUtil where %s in message would get interpreted wrongly 2022-06-14 10:34:00 -04:00
sendAppPage.ts (core) Use new Banner component for activation messages 2022-06-13 10:20:31 -07:00
ServerColumnGetters.ts
ServerLocale.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
serverUtils.ts
Sessions.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
Sharing.ts
shortDesc.ts
shutdown.js
SQLiteDB.ts
TableMetadataLoader.ts
TagChecker.ts
TestingHooks.ts (core) Converting server-side Comm.js to typescript 2022-06-07 15:47:17 -04:00
TestLogin.ts
Throttle.ts
TimeQuery.ts
Triggers.ts
UnsafeNodeComponent.ts
uploads.ts (core) Reduce a few log levels to warning 2022-05-18 14:57:43 -07:00
WidgetRepository.ts
WorkCoordinator.ts