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

allow empty legacy pages set for new root content #850

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

jdknight
Copy link
Member

When determining legacy pages when purging, the base identifier used is either the parent container or a configured root page. When configured to purge from root and the root page does not yet exist, this can give a misrepresentation of what legacy pages are detected when a parent page is also configured.

This commit changes this by force using the detected root page as the cleanup root. And if the cleanup root does not exist, a None root will result in an empty legacy pages set (which is expected).

When determining legacy pages when purging, the base identifier used is
either the parent container or a configured root page. When configured
to purge from root and the root page does not yet exist, this can give a
misrepresentation of what legacy pages are detected when a parent page
is also configured.

This commit changes this by force using the detected root page as the
cleanup root. And if the cleanup root does not exist, a `None` root
will result in an empty legacy pages set (which is expected).

Signed-off-by: James Knight <james.d.knight@live.com>
@jdknight jdknight added this to the 2.4 milestone Oct 14, 2023
@jdknight jdknight merged commit 7130262 into main Oct 15, 2023
27 checks passed
@jdknight jdknight deleted the proper-representation-of-new-root-cleanup branch October 15, 2023 16: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.

1 participant