gristlabs_grist-core/app/client/models
Alex Hall bc54a6646e (core) Filter rows based on linked widgets when exporting view
Summary:
Fixes a problem reported here: https://community.getgrist.com/t/exporting-the-records-in-a-linked-view/2556/4

The download CSV/Excel link now contains an additional `linkingFilter` URL parameter containing JSON-encoded `filters` and `operations`. This object is originally created in the frontend in `LinkingState`, and previously it was only used internally in the frontend. It would make its way via `QuerySetManager` to `QuerySet.getFilterFunc` where the actual filtering logic happened. Now most of that logic has been moved to a similar function in `common`. The new function works with a new interface `ColumnGettersByColId` which abstract over the different ways data is accessed in the client and server in this context. There's no significant new logic in the diff, just refactoring and wiring.

Test Plan: Expanded two `nbrowser/SelectBy*.ts` test suites to also check the contents of a downloaded CSV in different linking scenarios.

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3961
2023-07-26 21:49:52 +02:00
..
entities (core) Filter rows based on linked widgets when exporting view 2023-07-26 21:49:52 +02:00
AppModel.ts (core) Exclude additional pages from needsOrg 2023-07-06 11:46:30 -04:00
BaseRowModel.js (core) Update ACL resources/rules when tables/columns get renamed 2021-01-04 22:03:01 -05:00
ClientColumnGetters.ts (core) Filter rows based on linked widgets when exporting view 2023-07-26 21:49:52 +02:00
ColumnACIndexes.ts Rename text cleaning function to "normalizeText" 2022-08-17 19:11:52 +02:00
ColumnCache.ts (core) Show count of formula errors in the column config in the right-side panel. 2021-04-20 21:26:17 -04:00
ColumnFilter.ts (core) Fix date filter for DateTime columns. 2023-01-18 10:18:15 +01:00
ColumnFilterMenuModel.ts (core) Add behavioral and coaching call popups 2022-12-20 09:49:41 -05:00
ColumnToMap.ts add a description property to column mapping for custom widgets (#255) 2022-08-26 08:25:34 -04:00
ConnectState.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
DataRowModel.ts (core) When a checkbox is clicked on a new record, set default values determined by linking 2022-11-10 14:34:40 -05:00
DataTableModel.js (core) move client code to core 2020-10-02 13:24:21 -04:00
DataTableModelWithDiff.ts (core) Faster builds all around. 2022-07-04 10:42:40 -04:00
DocData.ts (core) forward more kinds of edits to a virtual table 2023-06-26 12:05:34 -04:00
DocModel.ts (core) deleting queue from single webhook 2023-07-18 11:46:10 +02:00
DocPageModel.ts (core) deleting queue from single webhook 2023-07-18 11:46:10 +02:00
errors.ts (core) Billing for formula assistant 2023-07-10 13:24:08 +02:00
features.ts (core) Draft version of AI assistant 2023-03-24 10:07:26 +01:00
gristConfigCache.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
gristUrlState.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
HomeModel.ts (core) Add tip for "Add New" button 2023-01-16 16:50:42 -08:00
MetaRowModel.js (core) move client code to core 2020-10-02 13:24:21 -04:00
MetaTableModel.js (core) Raw renames 2022-04-27 22:21:55 +02:00
modelUtil.js (core) move client code to core 2020-10-02 13:24:21 -04:00
NotifyModel.ts (core) deleting queue from single webhook 2023-07-18 11:46:10 +02:00
QuerySet.ts (core) Filter rows based on linked widgets when exporting view 2023-07-26 21:49:52 +02:00
rowset.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
rowuid.js (core) move client code to core 2020-10-02 13:24:21 -04:00
RuleOwner.ts (core) Improve highlighting of previewed formula 2023-07-20 14:34:22 -04:00
SearchModel.ts i18n: userManager translation + some forgotten translations (#557) 2023-07-16 12:52:13 -04:00
SectionFilter.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
Styles.ts (core) Multi-column configuration 2022-10-17 09:51:19 +02:00
TableData.ts (core) Use MetaTableData more 2021-12-07 17:09:58 +02:00
TableModel.js (core) Change how formula columns can be converted to data. 2021-03-05 12:42:57 -05:00
TelemetryModel.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
TreeModel.ts (core) Revealing hidden pages with visible children. 2022-10-31 14:02:38 +01:00
UserManagerModel.ts (core) User language switcher 2023-01-26 09:47:14 +01:00
UserPrefs.ts (core) Improve dark mode 2023-04-12 01:58:48 -04:00
ViewFieldConfig.ts (core) Fixing click-away bug for the cell color widget 2022-10-24 16:21:14 +02:00
VirtualTable.ts (core) Adds a UI panel for managing webhooks 2023-05-08 18:25:27 -04:00
WorkspaceInfo.ts (core) move client code to core 2020-10-02 13:24:21 -04:00