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

[TASK] Ensure recursive page update on page movement #3787

Conversation

dkd-friedrich
Copy link
Member

What this pr does

If a page is moved, subpages have to be considered, e.g. as rootline and slug might have changed. Also the MountPagesUpdater has to be triggerd to ensure mounted pages will be updated too.

This commit adds the missing recursive updates, an extension to the RecordMovedEvent and PageMovedEvent is done allowing that recursive updates on move operations will only be done if the parent page of the page has changed.

How to test

Move a page with subpages and check index and queue, moved pages have to be removed from index and queued for reindexing.

Resolves: #206

If a page is moved, subpages have to be considered, e.g. as rootline
and slug might have changed. Also the MountPagesUpdater has to be
triggered to ensure mounted pages will be updated too.

This commit adds the missing recursive updates, an extension to the
RecordMovedEvent and PageMovedEvent is done allowing that recursive
updates on move operations will only be done if the parent page of
the page has changed.

Resolves: TYPO3-Solr#206
dkd-friedrich added a commit to dkd-friedrich/ext-solr that referenced this pull request Sep 20, 2023
If a page is moved, subpages have to be considered, e.g. as rootline
and slug might have changed. Also the MountPagesUpdater has to be
triggered to ensure mounted pages will be updated too.

This commit adds the missing recursive updates, an extension to the
RecordMovedEvent and PageMovedEvent is done allowing that recursive
updates on move operations will only be done if the parent page of
the page has changed.

Ports: TYPO3-Solr#3787
Resolves: TYPO3-Solr#206
dkd-friedrich added a commit to dkd-friedrich/ext-solr that referenced this pull request Sep 20, 2023
If a page is moved, subpages have to be considered, e.g. as rootline
and slug might have changed. Also the MountPagesUpdater has to be
triggered to ensure mounted pages will be updated too.

This commit adds the missing recursive updates, an extension to the
RecordMovedEvent and PageMovedEvent is done allowing that recursive
updates on move operations will only be done if the parent page of
the page has changed.

Ports: TYPO3-Solr#3787
Resolves: TYPO3-Solr#206
@dkd-friedrich dkd-friedrich merged commit 5937421 into TYPO3-Solr:main Sep 20, 2023
8 checks passed
dkd-friedrich added a commit that referenced this pull request Sep 20, 2023
If a page is moved, subpages have to be considered, e.g. as rootline
and slug might have changed. Also the MountPagesUpdater has to be
triggered to ensure mounted pages will be updated too.

This commit adds the missing recursive updates, an extension to the
RecordMovedEvent and PageMovedEvent is done allowing that recursive
updates on move operations will only be done if the parent page of
the page has changed.

Ports: #3787
Resolves: #206
@dkd-friedrich dkd-friedrich deleted the task/main/206-ensure_recursive_page_updates branch September 20, 2023 11:21
@dkd-kaehm dkd-kaehm mentioned this pull request Oct 13, 2023
1 task
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.

Update solr index of subpages when branch gets moved
1 participant