Commit e5cab66
authored
[FEATURE] Cascade fe_group changes with extendToSubpages (reindex + cleanup)
### Summary
When a parent page’s `fe_group` changes and `extendToSubpages=1` is set, access rules effectively change for descendants as well. This PR ensures the index reflects those changes by triggering subtree reindexing and removing stale access variants.
### What this PR does
- Adds a `changeSet` wildcard (`'*'`) in `AbstractUpdateHandler` to match “any change” of a field, because `fe_group` diffs are non-trivial.
- Introduces trigger `extendToSubpageEnabledAndFeGroupWasChanged` in `DataUpdateHandler` and `GarbageHandler`:
- If `extendToSubpages=1` and `fe_group` changed → enqueue reindex for descendants (subtree) and clean up outdated access variants/documents.
### How to test
1) Create a small tree: parent **P** with `extendToSubpages=1`, children **C1/C2** inheriting access (no local `fe_group`).
2) Index once so all pages are present.
3) Change **P**’s `fe_group` (e.g., add/remove a frontend group).
4) Expected: subtree pages are queued for reindex; outdated access variants/documents are removed.
(Before this PR: descendants did not reliably reindex; stale variants remained.)
Fixes: #43991 parent 05f720a commit e5cab66
File tree
3 files changed
+17
-0
lines changed- Classes/Domain/Index/Queue/UpdateHandler
3 files changed
+17
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
265 | 272 | | |
266 | 273 | | |
267 | 274 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
0 commit comments