schemaOutOfSyncStatus

function schemaOutOfSyncStatus(oldPrimaryKey, newPrimaryKey): [string, SerializedLucidDictionary]

For the moment, when the upstream Google Sheet is changed in such a way that the schema has changed, we simply
stop updates from happening. We do need to alert the user that this has happened, though. This is a utility function
for creating the appropriate entry in the errors map so that the user can be alerted that updates have stopped
and what they need to do to fix it.

The eventual, proposed fix is to allow schemas to have version numbers so that changes to the schema from Google
can simply be folded in to the on-document copies of the data and all following edits.

Parameters

ParameterTypeDescription
oldPrimaryKeystring[]The primary key stored in the data sync service and which currently is used to interpret patches.
newPrimaryKeystring[]The primary key as it has been changed in the real Google Sheets.

Returns

[string, SerializedLucidDictionary]

The error map entry which alerts the document that this problem has happened.