mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
4e67c679b2
Summary: Adds a new interface `FetchSelectedOptions` with three keys (including the preexisting `keepEncoded`) and adds/updates an optional `options: FetchSelectedOptions` to six related functions which fetch data from the selected table or record. The `keepEncoded` and `format` options have different default values for different methods for backwards compatibility, but otherwise the different methods now have much more similar behaviour. The new `includeColumns` option allows fetching all columns which was previously only possible using `docApi.fetchTable` (which wasn't always a great alternative) but this requires full access to avoid exposing more data than before and violating user expectations. Eventually, similar options should be added to `docApi.fetchTable` to make the API even more consistent. Discussion: https://grist.slack.com/archives/C0234CPPXPA/p1696510548994899 Test Plan: Added a new nbrowser test with a corresponding fixture site and document, showing how the functions have different default option values but are all configurable now. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D4077 |
||
---|---|---|
.. | ||
CustomSectionAPI-ti.ts | ||
CustomSectionAPI.ts | ||
DocApiTypes-ti.ts | ||
DocApiTypes.ts | ||
FileParserAPI-ti.ts | ||
FileParserAPI.ts | ||
grist-plugin-api.ts | ||
GristAPI-ti.ts | ||
GristAPI.ts | ||
GristData-ti.ts | ||
GristData.ts | ||
GristTable-ti.ts | ||
GristTable.ts | ||
gutil.ts | ||
ImportSourceAPI-ti.ts | ||
ImportSourceAPI.ts | ||
InternalImportSourceAPI-ti.ts | ||
InternalImportSourceAPI.ts | ||
objtypes.ts | ||
PluginManifest-ti.ts | ||
PluginManifest.ts | ||
README.md | ||
RenderOptions-ti.ts | ||
RenderOptions.ts | ||
StorageAPI-ti.ts | ||
StorageAPI.ts | ||
TableOperations.ts | ||
TableOperationsImpl.ts | ||
tsconfig.json | ||
TypeCheckers.ts | ||
WidgetAPI-ti.ts | ||
WidgetAPI.ts |
Methods here are available for use in Grist custom widgets.