gristlabs_grist-core/test/common
Dmitry S ca8ac806db (core) Trim unapplicable permissions bits for column rules, both at parse time, and in UI
Summary:
- UI now trims column rules before saving.
- When rules are loaded, bits that aren't applicable to a resource get ignored.
  This should fix the incorrect behavior in existing docs without a migration.

Test Plan:
- Added test of UI, that it now sends trimmed rules
- Added a unitteset of new trimPermissions() function
- Add test of fixed interpretation of existing rules: now only permission bits
  applicable to a resource get respected. I.e. create/delete/schemaEdit are
  ignored in column rules, and schemaEdit is also ignored in table rules.
- Note that DuplicateTest was affected: updated on the assumption that
  schemaEdit still can't actually apply at a table level.

Reviewers: georgegevoian, paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D4205
2024-03-06 09:46:33 -05:00
..
ACLPermissions.ts (core) Trim unapplicable permissions bits for column rules, both at parse time, and in UI 2024-03-06 09:46:33 -05:00
arraySplice.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
AsyncCreate.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
BigInt.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
BinaryIndexedTree.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
ChoiceListParser.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
CircularArray.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
ColumnFilterFunc.ts (core) Fix date filter for DateTime columns. 2023-01-18 10:18:15 +01:00
csvFormat.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
DocActions.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
getTableTitle.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
gristUrls.ts (core) Use slugify module to construct slugs in urlIds, addressing a long-standing TODO. 2024-01-29 10:02:27 -05:00
gutil2.ts (core) Add timeouts to prevent ActiveDoc bad state during shutdown. 2023-09-26 15:32:49 -04:00
gutil.js Make ISEMAIL and ISURL more flexible for longer TLD (#834) 2024-01-31 13:58:50 -05:00
InactivityTimer.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
Interval.ts (core) Fix bugs with intervals 2022-08-25 12:38:36 -07:00
KeyedMutex.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
marshal.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
MemBuffer.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
NumberFormat.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
NumberParse.ts (core) Fix a bug with editing numbers in some locales. 2024-02-02 22:48:05 -05:00
parseDate.ts (core) Converting big number (9 digits or more) to date directly 2023-10-05 16:58:25 +02:00
PluginInstance.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
promises.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
RecentItems.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
RefCountMap.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
RelativeDates.ts (core) New date filter with a calendar view 2022-12-20 09:58:42 +01:00
roles.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
serializeTiming.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
SortFunc.ts (core) Fix the empty values last option in multicol sorting 2023-01-31 12:14:22 +01:00
sortTiming.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
StringUnion.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
TableData.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
Telemetry.ts (core) Add earliestDocCreatedAt to telemetry 2023-08-08 00:48:18 -07:00
timeFormat.js (core) bump mocha version to allow parallel tests; move more tests to core 2023-06-27 02:55:34 -04:00
tsvFormat.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
ValueFormatter.ts (core) Fix number parsing/formatting tests after updates to node version and locales 2023-10-17 16:45:08 +02:00
ValueGuesser.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00