Files
gristlabs_grist-core/app/client/components
Alex Hall 4e67c679b2 (core) Options for plugin API functions which fetch data from the selected table or record
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
2023-10-26 23:46:00 +02:00
..
2020-10-02 13:24:21 -04:00
2023-09-25 18:48:18 -04:00
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2020-10-02 13:24:21 -04:00
2023-04-12 01:58:48 -04:00
2020-10-02 13:24:21 -04:00
2023-06-02 17:59:22 +02:00
2023-09-25 18:48:18 -04:00
2023-04-20 12:20:03 -04:00
2020-10-02 13:24:21 -04:00
2023-10-24 15:35:42 -04:00
2020-10-02 13:24:21 -04:00
2023-10-17 15:39:53 -04:00
2023-01-19 09:46:59 +01:00
2023-03-02 11:22:49 +01:00
2020-10-02 13:24:21 -04:00
2023-09-22 03:51:58 -04:00
2023-08-04 14:59:55 +02:00
2023-04-12 01:58:48 -04:00
2020-10-02 13:24:21 -04:00
2023-08-29 09:19:52 +02:00
2020-10-02 13:24:21 -04:00