gristlabs_grist-core/app
Alex Hall ecf2fdf71a (core) Fix summary table titles and linking when source table is hidden by ACL
Summary:
Two summary table widgets that share a source table and have compatible groupby columns can be filter linked. This diff fixes a bug where this linking is broken when the source table is hidden by access rules. The source table data isn't needed for the linking, but its metadata is, and that metadata is censored by GranularAccess. To deal with this:

- `LinkConfig._assertValid` allows blank `tableId`s specifically for linking two summary tables.
- `LinkingState.filterColValues` gets the `colId`s of groupby columns from the summary table columns rather than the source table.

A closely related problem is that the titles of summary tables are incomplete when the source table is hidden, e.g. they just say `[by A]` instead of `Table1 [by A]`. To fix this, the raw view sections of source tables are 'uncensored' in GranularAccess.

Initially I also planned to uncensor the tableId of the source table, which seemed like a better and more general fix for the blank tableId problem. But several parts of client code use blank tableIds to know that a table should be hidden, so they were left as is.

Test Plan: Added an nbrowser test for summary table linking, and a server test for uncensoring the raw view section in GranularAccess.

Reviewers: georgegevoian, paulfitz

Reviewed By: georgegevoian, paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3608
2022-09-01 19:14:47 +02:00
..
client (core) Fix summary table titles and linking when source table is hidden by ACL 2022-09-01 19:14:47 +02:00
common (core) Fix bugs with intervals 2022-08-25 12:38:36 -07:00
gen-server (core) Add unquarantine command to admin CLI 2022-08-15 13:04:55 -07:00
plugin add a description property to column mapping for custom widgets (#255) 2022-08-26 08:25:34 -04:00
server (core) Fix summary table titles and linking when source table is hidden by ACL 2022-09-01 19:14:47 +02:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00