gristlabs_grist-core/app/client
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
..
aclui (core) Trim unapplicable permissions bits for column rules, both at parse time, and in UI 2024-03-06 09:46:33 -05:00
components (core) In custom widgets show placeholder content until all columns are mapped 2024-02-23 13:33:23 +01:00
lib (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
models (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
ui (core) Small changes to Access Rules page to clearify behavior of table default rules 2024-02-23 01:24:13 -05:00
ui2018 (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
widgets
apiconsole.ts (core) Add dark mode CSS for Swagger UI 2024-03-05 08:45:21 -05:00
app.css
app.js
billingMain.ts (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
browserCheck.ts
declarations.d.ts
DefaultHooks.ts
errorMain.ts (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
exposeModulesForTests.js
formMain.ts (core) Refactor forms implementation 2024-02-22 08:44:25 -05:00
Hooks.ts
logo.css
tsconfig.json