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/D3913pull/532/head
parent
10f5f0cb37
commit
6ac0bc3bbb
Loading…
Reference in new issue