Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing test case for importing dump with attachments #1396

Closed
wants to merge 3 commits into from

Conversation

rixo
Copy link

@rixo rixo commented Aug 18, 2019

This PR contains:

  • IMPROVED TESTS

Describe the problem you have without this PR

Actually, I'm not completely sure what I'm trying to do is supposed to be supported. That's why I'm opening a PR with a test case instead of an issue, so you can judge by yourself.

My problem is that importing a dump of a DB that contains attachments fails with an error.

Furthermore, the attachment's data are not present in the json data produced by the dump.

Is dumping of attachments meant to supported by RxDB?

@pubkey pubkey closed this in 45f66e7 Aug 20, 2019
@pubkey
Copy link
Owner

pubkey commented Aug 20, 2019

I fixed an error which threw the exception on import.
However, it is currently not possible to export the attachments together with the json-data.

@rixo
Copy link
Author

rixo commented Aug 20, 2019

Thanks again. That's good to me. I've already implemented a basic workaround that save & restore attachments for each doc in the dump. Maybe I'll dig deeper when I'll look into sync / replication.

@pubkey Is there any plan / desire to add support for attachments in dumps?

pubkey added a commit that referenced this pull request Aug 20, 2019
@pubkey
Copy link
Owner

pubkey commented Aug 20, 2019

I added it to the backlog. I have no plans to implement it. If you have the time, a PR would be nice.

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.

None yet

2 participants