gristlabs_grist-core/app
Alex Hall 6ac0bc3bbb (core) Implement exported functions without relying on ActiveDoc.docData
Summary:
For grist-static, we want to the data engine to be able to call external/exported JS functions directly,
rather than via the node 'server' living in another thread which requires synchronous communication hackery.

As a step in that direction, this diff changes the exported functions that we care about (guessColInfo and convertFromColumn)
to just using the top-level functions instead of relying on fields in ActiveDoc, namely docData.

For guessColInfo, this is done by directly passing the small amount of metadata that was previously retrieved from the DocData.

For convertFromColumn, disentangling DocData is a lot more complicated, so instead we construct a fresh DocData object using
the required metadata tables which are now passed in by the data engine.

Test Plan: Existing tests

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3913
2023-06-07 22:30:01 +02:00
..
client (core) Add optional telemetry to grist-core 2023-06-07 12:00:51 -04:00
common (core) Implement exported functions without relying on ActiveDoc.docData 2023-06-07 22:30:01 +02:00
gen-server (core) Add optional telemetry to grist-core 2023-06-07 12:00:51 -04:00
plugin Use relative imports only in plugin folder (#328) 2022-10-26 10:41:38 -04:00
server (core) Implement exported functions without relying on ActiveDoc.docData 2023-06-07 22:30:01 +02:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00