Alex Hall
7f1f8fc9e6
(core) Linking summary tables grouped by list columns
...
Summary:
Prefix keys of `LinkingState.filterColValues` with `_contains:` when the source column is a ChoiceList or ReferenceList.
This is parsed out to make a boolean `isContainsFilter` which is kept in each value of `QueryRefs.filterTuples` (previously `filterPairs`).
Then when converting back in `convertQueryFromRefs` we construct `Query.contains: {[colId: string]: boolean}`.
Finally `getFilterFunc` uses `Query.contains` to decide what kind of filtering to do.
This is not pretty, but the existing code is already very complex and it was hard to find something that wouldn't require touching loads of code just to make things compile.
Test Plan: Added a new nbrowser test and fixture, tests that selecting a source table by summary tables grouped by a choicelist column, non-list column, and both all filter the correct data.
Reviewers: dsagal
Reviewed By: dsagal
Differential Revision: https://phab.getgrist.com/D2940
2021-08-10 20:41:24 +02:00
..
2021-07-30 22:58:45 +02:00
2021-08-09 18:37:14 +02:00
2021-06-25 12:00:58 +02:00
2021-06-25 12:00:58 +02:00
2021-06-22 17:13:17 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 12:00:58 +02:00
2021-07-21 13:18:23 +02:00
2021-06-25 12:00:58 +02:00
2021-07-30 22:58:45 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 22:53:07 -04:00
2021-06-25 22:53:07 -04:00
2021-07-19 14:53:28 +02:00
2021-08-10 20:41:24 +02:00
2021-07-15 15:18:32 -07:00
2021-06-22 17:13:17 +02:00
2021-05-12 10:38:32 -04:00
2020-07-29 08:57:25 -04:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2021-07-21 13:18:23 +02:00
2021-08-09 18:37:14 +02:00
2020-07-29 08:57:25 -04:00
2021-06-25 22:53:07 -04:00
2021-06-25 12:00:58 +02:00
2021-06-25 12:00:58 +02:00
2021-07-30 22:58:45 +02:00
2021-08-09 18:37:14 +02:00
2021-07-19 14:53:28 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 22:53:07 -04:00
2021-06-22 17:13:17 +02:00
2021-07-12 06:45:47 -04:00
2021-06-25 22:53:07 -04:00
2021-07-23 18:41:44 +02:00
2021-06-22 17:13:17 +02:00
2021-07-23 18:41:44 +02:00
2021-06-22 17:13:17 +02:00
2021-01-04 22:03:01 -05:00
2020-07-29 08:57:25 -04:00
2021-06-25 12:00:58 +02:00
2021-06-22 17:13:17 +02:00
2021-07-19 14:53:28 +02:00
2020-09-10 18:06:06 -04:00
2021-06-18 15:42:20 +02:00
2020-11-04 16:45:47 -05:00
2021-05-12 11:26:21 -04:00
2021-06-22 17:13:17 +02:00
2021-07-15 15:18:32 -07:00
2020-07-29 08:57:25 -04:00
2021-07-30 22:58:45 +02:00
2021-05-12 11:26:21 -04:00
2021-06-25 12:00:58 +02:00
2021-07-19 14:53:28 +02:00
2021-06-22 17:13:17 +02:00
2021-06-22 17:13:17 +02:00
2020-11-04 16:45:47 -05:00
2020-07-29 08:57:25 -04:00
2021-07-19 16:35:35 +02:00
2021-06-22 17:13:17 +02:00
2021-06-22 17:13:17 +02:00
2021-06-22 17:13:17 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 22:53:07 -04:00
2020-11-26 22:29:37 -05:00
2021-06-25 12:00:58 +02:00
2020-11-04 16:45:47 -05:00
2021-07-19 14:53:28 +02:00
2021-06-30 16:56:09 +02:00
2020-11-04 16:45:47 -05:00
2021-06-22 17:13:17 +02:00
2021-07-21 13:18:23 +02:00
2020-11-04 16:45:47 -05:00
2020-07-29 08:57:25 -04:00
2021-06-22 17:13:17 +02:00
2020-12-15 16:39:56 -05:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2021-07-15 15:18:32 -07:00
2020-07-29 08:57:25 -04:00
2021-06-25 12:00:58 +02:00
2021-06-22 17:13:17 +02:00
2021-06-25 12:00:58 +02:00
2021-07-15 15:18:32 -07:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2021-07-20 15:17:03 +02:00
2021-06-25 22:53:07 -04:00
2021-06-25 12:00:58 +02:00
2020-07-29 08:57:25 -04:00
2021-06-22 17:13:17 +02:00
2020-07-29 08:57:25 -04:00
2021-06-25 12:00:58 +02:00
2021-07-15 15:18:32 -07:00
2021-07-20 15:17:03 +02:00
2021-07-15 15:18:32 -07:00
2021-07-23 18:41:44 +02:00
2021-06-30 21:46:18 +02:00