gristlabs_grist-core/stubs/app/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
..
lib Moves core create object and core getLoginSystem to server/lib (#994) 2024-05-23 23:07:46 +01:00
declarations.d.ts Shutdown Doc worker when it is not considered as available in Redis #831 (#856) 2024-04-04 10:25:42 -04:00
prometheus-exporter.ts Add option to serve Prometheus metrics #671 (#693) 2023-10-24 17:36:53 -04:00
server.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
tmp.d.ts (core) move home server into core 2020-07-21 20:39:10 -04:00