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

JSON Import/export #7

Open
xet7 opened this issue Mar 17, 2019 · 0 comments
Open

JSON Import/export #7

xet7 opened this issue Mar 17, 2019 · 0 comments

Comments

@xet7
Copy link
Member

xet7 commented Mar 17, 2019

Moved to here from phildini#29

From @phildini

As a user, I want to be able to export a JSON file of my complete contact book, and import it again later.

Should also help for moving between hosted/sandstorm

From @paulproteus

+1

What I would do for an initial implementation is not make this part of
the synchronous Django request processing chain. Instead, make it work like
search indexes via cron, and email the user when their backup is ready.

Then you can "just" use Django's built-in JSON serializers.

From @phildini

@paulproteus do you have a solution for cron working in Sandstorm? :)

From @paulproteus

No I don't! But you could instead do it in a background task, which you
could do (without celery) via
https://hendrix.readthedocs.org/en/latest/crosstown_traffic/ if you like.

From @phildini

Some more thoughts here: need to support format versioning, and should probably use the same serializers the api uses.

So export has been added by 8a99434. Probably knock out import this week, and then will feel really good about putting a version on Sandstorm.

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

1 participant