mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
ecf2fdf71a
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 |
||
---|---|---|
.. | ||
declarations | ||
lib | ||
utils | ||
companion.ts | ||
declarations.d.ts | ||
devServerMain.ts | ||
generateCheckpoint.ts | ||
generateInitialDocSql.ts | ||
mergedServerMain.ts | ||
tsconfig.json |