overleaf/services
Domagoj Kriskovic 218a4538c1 [web] support for reverting binary files (#18033)
* [web] revert binary file

* use addEntityWithName if file was deleted

* todo comments

* only show Revert file in ui even if deleted

* use _revertBinaryFile function

* emit new ids when reverting

* format:fix

* await emitToRoom calls

* use EditorController.upsertFile

* remove _revertBinaryFile function

* binary file check

* mock importFile method in tests

* move findElementByPath stub

* debug ci error

* resolve with empty object as file

* fix tests

* remove await before expect()

* format:fix

* test when binary file exists and when it does not

* use "file-revert" for source

* [web] revert existing file without ranges support (#18107)

* [web] revert existing file without ranges support

* ignore document_updated_externally if file-revert

* fix test

GitOrigin-RevId: a5e0c83a7635bc7d934dec9debe916bdd4beb51e
2024-05-30 08:04:20 +00:00
..
chat Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
clsi Merge pull request #18537 from overleaf/jpa-cleanup-synctex 2024-05-29 08:03:57 +00:00
contacts Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
docstore Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
document-updater Merge pull request #17958 from overleaf/mj-web-revert-file 2024-05-29 08:04:16 +00:00
filestore Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
git-bridge Merge pull request #18312 from overleaf/gs-git-bridge-bash 2024-05-17 08:05:19 +00:00
history-v1 Merge pull request #18088 from overleaf/ab-session-secret-rotation 2024-05-27 10:23:33 +00:00
notifications Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
project-history Merge pull request #17958 from overleaf/mj-web-revert-file 2024-05-29 08:04:16 +00:00
real-time Merge pull request #18088 from overleaf/ab-session-secret-rotation 2024-05-27 10:23:33 +00:00
spelling Merge pull request #18289 from overleaf/ac-ar-eslint-return-await 2024-05-27 10:22:49 +00:00
web [web] support for reverting binary files (#18033) 2024-05-30 08:04:20 +00:00