Repository navigation
feat(project): add project export and import MVP - #1998
Draft
Malte Janz (MalteJanz) wants to merge 12 commits into
Draft
Malte Janz (MalteJanz) wants to merge 12 commits into
Malte Janz (MalteJanz) wants to merge 12 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1998 +/- ##
==========================================
- Coverage 69.71% 69.47% -0.24%
==========================================
Files 541 550 +9
Lines 36770 37393 +623
==========================================
+ Hits 25633 25978 +345
- Misses 11137 11415 +278
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Pretty much WIP / Draft state. May be splitted up into multiple PRs later.
What changed?
Adds an MVP of
project exportandproject import. They move the database and the files of the public and private filesystems between instances as one archive, using the layout from the ADR.--skip-database,--skip-public-filesand--skip-private-fileschoose what goes into the archive. The dump flags (--anonymize,--clean,--limit, ...) are shared withproject dump. Skipping files also removes their media rows; rows that reference them are dropped or unlinked according to their foreign keys.--forceskips the prompt and is required when the command can't prompt.--dry-runonly prints the plan.Why?
project dumponly covers the database. Restoring a shop elsewhere also needs its media and private files, such as invoices.How was this tested?
TBA, will need some extensive testing by others as well.
Related issue or discussion
Closes #1957
Follow up todo's
AI Disclosure
This PR was created with AI Assistance from Claude Opus 5.5 (high effort).