gristlabs_grist-core/app/client/models/entities
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
..
ACLRuleRec.ts (core) make AccessRules and FullCopies effective 2021-03-25 15:05:26 -04:00
CellRec.ts (core) Comments 2022-10-17 13:38:21 +02:00
ColumnRec.ts (core) Add telemetry for AI Assistant 2023-07-20 12:50:26 -04:00
DocInfoRec.ts (core) Filter out pages for hidden views from the page list. 2021-08-27 13:51:57 -04:00
FilterRec.ts (core) Allow filtering hidden columns 2021-11-22 10:26:08 -08:00
PageRec.ts (core) Polish doc tutorials 2023-06-23 23:56:20 -04:00
TabBarRec.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
TableRec.ts (core) Don't show hidden tables in table data options when adding widgets 2022-07-21 16:28:28 +02:00
ValidationRec.ts (core) move client code to core 2020-10-02 13:24:21 -04:00
ViewFieldRec.ts (core) Improve highlighting of previewed formula 2023-07-20 14:34:22 -04:00
ViewRec.ts (core) Fixing cursor position for filtered linked section. 2023-07-07 19:04:30 +02:00
ViewSectionRec.ts (core) Filter rows based on linked widgets when exporting view 2023-07-26 21:49:52 +02:00