gristlabs_grist-core/app/gen-server
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
..
entity (core) Restoring GRIST_DEFAULT_PRODUCT functionality 2024-06-14 19:56:49 +02:00
lib (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
migration (core) Customizable stripe plans. 2024-05-19 09:09:19 +02:00
ApiServer.ts (core) Customizable stripe plans. 2024-05-19 09:09:19 +02:00
sqlUtils.ts (core) fix bug where sharing doc with everyone@ as viewer made it unlisted for site viewers 2021-10-28 12:48:31 -04:00