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

fix: Make Nextcloud Migrations Fault Tolerant #3544

Conversation

michael-genson
Copy link
Collaborator

What type of PR is this?

(REQUIRED)

  • bug

What this PR does / why we need it:

(REQUIRED)

Adds a try/except block in Nextcloud migrations to skip over individual failures. This also fixes nutrition data parsing as detailed in #3543 by ignoring empty nutrition values and coercing number values into strings.

Which issue(s) this PR fixes:

(REQUIRED)

Fixes #3543

Testing

(fill-in or delete this section)

Manually tested the .zip file provided in #3543 before (to confirm failure) and after (to confirm success).

Copy link
Contributor

@p0lycarpio p0lycarpio left a comment

Choose a reason for hiding this comment

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

The code seems correct and I can confirm that it works with the supplied zip

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.

LGTM. Thanks for having provided feedback @p0lycarpio <3

@boc-the-git boc-the-git enabled auto-merge (squash) May 5, 2024 11:10
@boc-the-git boc-the-git merged commit 6991dff into mealie-recipes:mealie-next May 5, 2024
10 checks passed
@michael-genson michael-genson deleted the fix/make-nextcloud-migrations-fault-tolerant branch May 5, 2024 14:48
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.

[BUG] - Nextcloud migration fails due to malformed nutrition field
3 participants