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 tidy task #1449

Merged
merged 2 commits into from
May 18, 2018
Merged

Fix tidy task #1449

merged 2 commits into from
May 18, 2018

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented May 18, 2018

What is this pull request for?

This should fix the tidy task issues #1432 and #1433 .

Notable changes (remove if none)

Adds another task for the folded pages, and reloads every record that is to be deleted.

This makes the task a littler slower, but safer: Afterwards, the migration that adds foreign keys and things runs through without issues.

This removes possible duplicate folded pages as part of the tidy task,
in order to provide a smoother upgrade path.
With nested elements, we might have orphaned elements with nested elements
or elements with orphaned nested elements.

This change reloads the record in question in order to make sure it is
still there. If not, the reload will return `nil`, and nothing terrible happens.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

This all makes sense. Thanks 🤝Martin

@tvdeyen tvdeyen merged commit 9ba107b into AlchemyCMS:4.0-stable May 18, 2018
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.

2 participants