Skip to content

Conversation

@nikitalita
Copy link
Collaborator

Previously, when we deleted a file, we would remove it from the "files" map in the branch doc entirely. This creates issues when you reload a project and try to revert to a commit where a deleted file was a linked binary file; since it wasn't in the "files" map, we don't retrieve the doc handle for it from the branch doc, and we have no ability to get that file. This changes it such that it retains the "url" and adds a "deleted" property to the files map if it's a binary file, so that we still see it when we retrieve the linked binary docs from the branch doc.

@paulsonnentag
Copy link
Collaborator

Is this intended as a short term workaround until we reimplement sync? If we don't load the DocHandle correctly if the file was deleted does that mean we also don't load it if the user replaced the binary file with another version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants