gristlabs_grist-core/app/gen-server
Paul Fitzpatrick d7b3fb972c (core) upgrade typeorm so we can support newer postgres
Summary:
upgrade typeorm version, so Grist can run against newer versions of postgres.

Dusted off some old benchmarking code to verify that important queries don't get slower. They don't appear to, unlike for some intermediate versions of typeorm I tried in the past.

Most of the changes are because `findOne` changed how it interprets its arguments, and the value it returns when nothing is found. For the return value, I stuck with limiting its impact by emulating old behavior (returning undefined rather than null) rather than propagating the change out to parts of the code unrelated to the database.

Test Plan: existing tests pass; manual testing with postgres 10 and 14

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3613
2022-09-02 15:34:21 -04:00
..
entity (core) upgrade typeorm so we can support newer postgres 2022-09-02 15:34:21 -04:00
lib (core) upgrade typeorm so we can support newer postgres 2022-09-02 15:34:21 -04:00
migration (core) add a yarn run cli tool, and add a sqlite gristify option 2022-07-14 12:00:30 -04:00
ApiServer.ts (core) upgrade typeorm so we can support newer postgres 2022-09-02 15:34:21 -04: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