Merge pull request #20129 from overleaf/jpa-handle-partial-deletion

[misc] improve handling of document deletion

GitOrigin-RevId: bd6b225b91ab38365e9ff272c50ece995e767bf2
This commit is contained in:
Jakob Ackermann
2024-08-26 15:09:25 +02:00
committed by Copybot
parent 4ead502a71
commit 166356582c
5 changed files with 346 additions and 4 deletions
@@ -1731,6 +1731,12 @@ describe('ProjectEntityUpdateHandler', function () {
)
})
it('flushes the project to mongo', function () {
this.DocumentUpdaterHandler.promises.flushProjectToMongo.should.have.been.calledWith(
projectId
)
})
it('deletes the entity in mongo', function () {
this.ProjectEntityMongoUpdateHandler.promises.deleteEntity
.calledWith(projectId, docId, 'doc')