gristlabs_grist-core/app
Alex Hall af4738b94a (core) Allow linking to summary table via reference to source table
Summary:
Fixes a bug introduced in https://phab.getgrist.com/D3416 which exposed a new type of linking option that didn't actually work. Specifically it allowed selecting by a summary table when the target widget has a reference column to the source table of the summary. This diff correctly implements this linking by linking the reference column against the 'group' column of the summary table, so the source table data (which the client may not have access to) isn't involved. But the 'group' column name is hidden from the 'select by' option label to avoid confusion for users, so it just looks like another kind of summary table linking, and indeed it can be thought of purely in terms of matching groupby columns etc.

Discussion here: https://grist.slack.com/archives/C02EGJ1FUCV/p1654039063055499

Also fixes a related old bug that offered similar meaningless options involving summary tables, like selecting the summary table by the source table or linking summary tables with disjoint groupby columns.

Test Plan: Updated SelectBySummaryRef test and fixture doc for the new behaviour. Also updated a couple of older tests which were incorrectly asserting the buggy option to select a summary table by the source table.

Reviewers: dsagal

Reviewed By: dsagal

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D3464
2022-06-03 17:04:41 +02:00
..
client (core) Allow linking to summary table via reference to source table 2022-06-03 17:04:41 +02:00
common (core) Adds new range filter for numeric columns 2022-05-30 10:30:16 +02:00
gen-server (core) move DocUsageBanner to ext 2022-05-27 22:19:17 -04:00
plugin (core) Update Plugin API documentation 2022-05-24 17:27:34 -07:00
server (core) move DocUsageBanner to ext 2022-05-27 22:19:17 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00