gristlabs_grist-core/app/client/ui
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
..
AccountPage.ts
AccountWidget.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
AddNewButton.ts
ApiKey.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
App.css
App.ts
AppHeader.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
AppUI.ts
BottomBar.ts
buttons.ts
CellContextMenu.ts
CodeHighlight.ts
ColumnFilterMenu.ts
contextMenu.ts
cssInput.ts
CustomSectionConfig.ts add a description property to column mapping for custom widgets (#255) 2022-08-26 08:25:34 -04:00
CustomThemes.ts
DocHistory.ts
DocMenu.ts (core) Polish upgrade button 2022-08-03 08:29:36 -07:00
DocMenuCss.ts (core) Polish upgrade button 2022-08-03 08:29:36 -07:00
DocTour.ts
DocumentSettings.ts
errorPages.ts
ExampleCard.ts
ExampleInfo.ts
FieldConfig.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
FieldMenus.ts
FileDialog.ts
FilterBar.ts
forms.ts
googleAuth.ts
GridOptions.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
GridViewMenus.ts (core) Adding hide for multiple columns 2022-08-17 22:31:16 +02:00
HomeImports.ts
HomeIntro.ts (core) Editing text for viewers on empty site 2022-08-09 22:24:54 +02:00
HomeLeftPane.ts (core) Polish upgrade button 2022-08-03 08:29:36 -07:00
inputs.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
LeftPanelCommon.ts
MakeCopyMenu.ts
MenuToggle.ts
modals.ts
mouseDrag.ts
MultiSelector.ts
NotifyUI.ts
OnBoardingPopups.ts
OpenUserManager.ts
OpenVideoTour.ts
PagePanels.ts (core) Fix prevent auto-expansion when user is resizing browser window 2022-09-01 12:19:09 +02:00
Pages.ts (core) Update text in the delete-page dialog 2022-08-31 11:01:40 -04:00
PageWidgetPicker.ts fix(ui): add default cursor over disabled items 2022-08-24 09:47:47 +02:00
PinnedDocs.ts
ProductUpgradesStub.ts (core) Removing NEW_DEAL flag 2022-08-09 17:29:28 +02:00
resizeHandle.ts
RightPanel.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
RightPanelStyles.ts add a description property to column mapping for custom widgets (#255) 2022-08-26 08:25:34 -04:00
RowContextMenu.ts
selectBy.ts (core) Fix summary table titles and linking when source table is hidden by ACL 2022-09-01 19:14:47 +02:00
sendToDrive.ts
setupPage.ts
shadowScroll.ts
ShareMenu.ts
SiteSwitcher.ts
TemplateDocs.ts
Tools.ts
tooltips.ts
TopBar.ts
TopBarCss.ts
transientInput.ts
transitions.ts
TreeViewComponent.ts
TreeViewComponentCss.ts
TriggerFormulas.ts (core) Implementing row conditional formatting 2022-08-09 20:11:36 +02:00
UserImage.ts
UserItem.ts
UserManager.ts
ViewLayoutMenu.ts
viewport.ts
ViewSectionMenu.ts
VisibleFieldsConfig.ts
WelcomePage.ts (core) Add basic activation page to grist-ee 2022-08-23 10:30:52 -07:00
WelcomeQuestions.ts
welcomeTour.ts
WidgetTitle.ts
widgetTypes.ts