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

Add partial import functionality #812

Merged
merged 45 commits into from
Sep 20, 2020

Conversation

WithoutPants
Copy link
Collaborator

Resolves #206.
Second part of #770.

Adds an "Import from file" button to the tasks page. This brings up a dialog box to upload a zip file containing exported datafiles.

image

Behaviour can be tailored where the system finds an existing object: ignore/fail does not alter or create any object, overwrite does a complete overwrite of the existing object.

Behaviour for missing related objects can also be tailored: ignore will not set the applicable relationship if possible, fail will abort creating the object, create will create a new basic object to reference.

This PR includes a full refactor of the import logic, which includes the full import functionality.

Import functionality has been changed so that if a single object fails, the import operation does not abort.

@WithoutPants WithoutPants added the feature Pull requests that add a new feature label Sep 15, 2020
@WithoutPants WithoutPants added this to the Version 0.4.0 milestone Sep 15, 2020
@WithoutPants WithoutPants mentioned this pull request Sep 17, 2020
@WithoutPants WithoutPants merged commit 8866670 into stashapp:develop Sep 20, 2020
Tweeticoats pushed a commit to Tweeticoats/stash that referenced this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull requests that add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import improvements
1 participant