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
AsyncCreate.ts
BigInt.ts
BinaryIndexedTree.js
ChoiceListParser.ts (core) Moving client and common tests to core 2022-08-23 19:20:10 +02:00
CircularArray.js
ColumnFilterFunc.ts
csvFormat.ts
DocActions.ts
getTableTitle.ts
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
gutil.js Make ISEMAIL and ISURL more flexible for longer TLD (#834) 2024-01-31 13:58:50 -05:00
InactivityTimer.ts
Interval.ts
KeyedMutex.ts
marshal.js
MemBuffer.js
NumberFormat.ts
NumberParse.ts (core) Fix a bug with editing numbers in some locales. 2024-02-02 22:48:05 -05:00
parseDate.ts
PluginInstance.ts
promises.js
RecentItems.js
RefCountMap.ts
RelativeDates.ts
roles.ts
serializeTiming.js
SortFunc.ts
sortTiming.js
StringUnion.ts
TableData.ts
Telemetry.ts
timeFormat.js
tsvFormat.ts
ValueFormatter.ts
ValueGuesser.ts