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

feat: Handle Safari-mangled backup ZIPs and improve backup UI #3674

Conversation

michael-genson
Copy link
Collaborator

What type of PR is this?

(REQUIRED)

  • feature

What this PR does / why we need it:

(REQUIRED)

We've had several instances like this where Safari mangles the ZIP file structure, breaking our backups. This PR adds some logic to detect when this happens and work around it.

The UI is also very unhelpful when backups fail, so this PR fixes some state issues and flashes an alert to check server logs when a backup fails.

Which issue(s) this PR fixes:

(REQUIRED)

No open issues, several closed ones where the solution was just to fix the ZIP structure

Testing

(fill-in or delete this section)

I added a mangled zip file test before implementing the workaround, confirmed it failed, and now it passes

Copy link
Collaborator

@boc-the-git boc-the-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, though I am a bit curious re my other comment.
Assuming there's no cause for concern there, happy for you to merge @michael-genson 👍

@michael-genson michael-genson enabled auto-merge (squash) June 1, 2024 15:51
@michael-genson michael-genson merged commit 4bc88e6 into mealie-recipes:mealie-next Jun 1, 2024
10 checks passed
@michael-genson michael-genson deleted the feat/handle-safari-backup-zip-mangling branch June 1, 2024 23:25
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