gristlabs_grist-core/app
Alex Hall 519f1be93a (core) Disambiguate label for link between summary table and source table with self reference
Summary:
Following up on a small bug introduced in https://phab.getgrist.com/D3464. When a table has a column referencing the same table, then there can be two 'select by' options with the same label which is just the name of a summary table on the same page. The first option is simply filtering based on the summary table. The second option is linking the ref column in the source against the group column in the summary, but the name of the group column is hidden which leads to the ambiguity.

The solution in this diff is to always show the target node (source table) column name if the source node (summary table) column was the hidden group column. This also changes the label in the case where the reference to the source table isn't in the source table - see the updated test. This isn't strictly necessary in this case so I'm not 100% about the desired behaviour, but I don't think it hurts.

Test Plan: Tested disambiguation manually. Updated existing test.

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D3472
2022-06-07 17:07:45 +02:00
..
client (core) Disambiguate label for link between summary table and source table with self reference 2022-06-07 17:07:45 +02:00
common (core) limit retries of uploads to external store in tests 2022-06-06 16:19:41 -04:00
gen-server (core) deal with SQLITE_BUSY: database is locked during tests 2022-06-03 15:51:59 -04:00
plugin (core) Update Plugin API documentation 2022-05-24 17:27:34 -07:00
server (core) limit retries of uploads to external store in tests 2022-06-06 16:19:41 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00