gristlabs_grist-core/app/gen-server/lib
Paul Fitzpatrick 438f259687 (core) start reconciling forking with granular access
Summary:
This allows a fork to be made by a user if:
 * That user is an owner of the document being forked, or
 * That user has full read access to the document being forked.

The bulk of the diff is reorganization of how forking is done.  ActiveDoc.fork is now responsible for creating a fork, not just a docId/urlId for the fork. Since fork creation should not be limited to the doc worker hosting the trunk, a helper endpoint is added for placing the fork.

The change required sanitizing worker allocation a bit, and allowed session knowledge to be removed from HostedStorageManager.

Test Plan: Added test; existing tests pass.

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2700
2021-01-12 14:08:49 -05:00
..
DocApiForwarder.ts (core) start reconciling forking with granular access 2021-01-12 14:08:49 -05:00
DocWorkerMap.ts (core) start reconciling forking with granular access 2021-01-12 14:08:49 -05:00
HomeDBManager.ts (core) distinguish open public documents from listing them 2020-11-27 09:56:25 -05:00
Housekeeper.ts (core) add housekeeping endpoints for cleaning doc snapshots+state 2021-01-05 10:31:14 -05:00
Permissions.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
scrubUserFromOrg.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
TypeORMPatches.ts (core) revamp snapshot inventory 2020-10-30 13:52:46 -04:00
Usage.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
values.ts (core) move home server into core 2020-07-21 20:39:10 -04:00