From 7cf1f7d5a8ffc02652dfc1f024735f85b92d652c Mon Sep 17 00:00:00 2001 From: Eric Mc Sween <5454374+emcsween@users.noreply.github.com> Date: Thu, 6 Feb 2025 08:12:35 -0500 Subject: [PATCH] Merge pull request #23433 from overleaf/em-do-not-store-content-hashes Do not store content hashes in chunks GitOrigin-RevId: 65a255b92f9c4e216ad5a1fb5fb3fa5a6b9158c4 --- services/history-v1/storage/lib/persist_changes.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/history-v1/storage/lib/persist_changes.js b/services/history-v1/storage/lib/persist_changes.js index 03d36fda1c..2ed2742f0c 100644 --- a/services/history-v1/storage/lib/persist_changes.js +++ b/services/history-v1/storage/lib/persist_changes.js @@ -180,6 +180,10 @@ async function persistChanges(projectId, allChanges, limits, clientEndVersion) { actualHash, }) } + + // Remove the content hash from the change before storing it in the chunk. + // It was only useful for validation. + editOperation.contentHash = null } } }