gristlabs_grist-core/app/gen-server/lib
Jarosław Sadziński 76d94483ad (core) Adding fixSiteProducts that changes orgs from teamFree to Free product if it was set be default
Summary:
After release on 2024-06-12 (1.1.15) the GRIST_DEFAULT_PRODUCT env variable wasn't respected by the
method that started the server in single org mode. In all deployments (apart from saas), the default product
used for new sites is set to `Free`, but the code that starts the server enforced `teamFree` product.

This change adds a fix routine that fixes this issue by rewriting team sites from `teamFree` product to `Free`
product only if:
- The default product is set to `Free`
- The deployment type is something other then 'saas'.

Additionally there is a test that will fail after 2024.10.01, as this fix should be removed before this date.

Test Plan: Added test

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D4272
2024-06-18 15:05:57 +02:00
..
Activations.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
DocApiForwarder.ts Introduce APP_HOME_INTERNAL_URL and fix duplicate docs (#915) 2024-05-14 12:58:41 -04:00
DocWorkerMap.ts Shutdown Doc worker when it is not considered as available in Redis #831 (#856) 2024-04-04 10:25:42 -04:00
Doom.ts (core) Fix delete user button for Google-only accounts 2023-10-18 10:52:58 -04:00
HomeDBManager.ts (core) Customizable stripe plans. 2024-05-19 09:09:19 +02:00
Housekeeper.ts (core) Adding fixSiteProducts that changes orgs from teamFree to Free product if it was set be default 2024-06-18 15:05:57 +02:00
NotifierTypes.ts (core) move apiserver tests to core, disentangling notifier+billing parts 2023-12-26 08:43:12 -05:00
Permissions.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
scrubUserFromOrg.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
TypeORMPatches.ts (core) Add options to /status health-check endpoints to check DB and Redis liveness. 2023-10-02 14:41:04 -04:00
Usage.ts (core) Faster builds all around. 2022-07-04 10:42:40 -04:00
values.ts (core) move home server into core 2020-07-21 20:39:10 -04:00