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

Bug -- Import/Export appears to be broken #36

Closed
icsy7867 opened this issue Dec 30, 2022 · 3 comments
Closed

Bug -- Import/Export appears to be broken #36

icsy7867 opened this issue Dec 30, 2022 · 3 comments

Comments

@icsy7867
Copy link

icsy7867 commented Dec 30, 2022

I have not been able to successfully import/export (Not a huge deal as I can just backup couchdb instead, but having manual backups might be nice once I get thousands of items...). Currently YAML export does not work, JSON export does work.

It looks like the function/method for the yaml.safeDump should now just be yaml.dump. If you edit your:
ImportExport.vue

And update yaml.safeDump to simply yaml.dump

        saveAs(new Blob([yaml.dump(errors)], { type: 'text/plain;charset=utf-8' }), 'importErrors.yml')
        saveAs(new Blob([yaml.dump(data.rows)], { type: 'text/plain;charset=utf-8' }), `${this.exportFileName}.yml`)

However, imports still arent working, but now yaml export is working, and now allows you to download an error file.
I added this change here:
#37

@FoxUSA
Copy link
Owner

FoxUSA commented Dec 31, 2022

This was fixed in #27, I just haven't gotten around to merging the branch and tagging it yet.

@icsy7867
Copy link
Author

Neat! Thanks for responding! I'll keep an eye out for it. While I'm getting use to couchdb and your web app, I just don't want to add my hundreds of items and locations and then break couchdb. So I'm wanting to make sure I have a backup.

@FoxUSA
Copy link
Owner

FoxUSA commented Jan 2, 2023

The JSON dump should still work.

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

No branches or pull requests

2 participants