gristlabs_grist-core/app/server
Paul Fitzpatrick 87f2fd15fb (core) add more detail to /compare endpoint
Summary:
 * Extends `/api/docs/docId1/compare/docId2` endpoint with a `detail=1` option to include details of what changed in the document content.
 * Adds an `/api/docs/docId/compare?left=HASH&right=HASH` endpoint for comparing two versions of a single document. This is needed to implement the extension to `/api/docs/docId1/compare/docId2`.
 * Adds a `HashUtil` class to allow hash aliases like `HEAD` and `HEAD~`.

Everything is a bit crude:
 * Changes are expressed as ActionSummary objects, which aren't fully fleshed out.
 * Extra data about formula columns is inserted in an inflexible way.

This is extracted and cleaned up from https://phab.getgrist.com/D2600.

Test Plan: added tests

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2614
2020-09-18 16:31:29 -04:00
..
lib (core) add more detail to /compare endpoint 2020-09-18 16:31:29 -04:00
declarations.d.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
devServerMain.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
mergedServerMain.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
serverMethods.js (core) back-end support for tables that are accessible only by owners 2020-09-14 18:05:27 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00