-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mount point indexing and corresponding tests have been adjusted for TYPO3 13. Mount points are supported in general and the mounted pages will be indexed like standard pages. But there are some points to consider: * Cross-site mounts require that `config.index_enable = 1` is set in the pagetree of the mounted page, as TYPO3 loads the TypoScript of the mounted page. This is probably a bug in the TYPO3 core and may change, due to changes in RootlineUtility->generateRootlineCache() the mount page pid isn't used any more. * Pages in a pagetree without a site configuration cannot be indexed, in fact TYPO3 currently can't mount a page from a page tree without a site configuration and an exeception occurs. Test procedure in PageIndexerTest has been improved and now uses the PageUriBuilder to build the url to index, instead of building the url in the test itself. Resolves: #4160
- Loading branch information
1 parent
003df51
commit de98a93
Showing
12 changed files
with
305 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 12 additions & 13 deletions
25
Tests/Integration/IndexQueue/FrontendHelper/Fixtures/can_index_mounted_page.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
# There is following scenario: | ||
# | ||
# [0] | ||
# | | ||
# ——[20] Shared-Pages (Not root) | ||
# | | | ||
# | ——[24] FirstShared (Not root) | ||
# | | ||
# ——[ 1] Page (Root) | ||
# |—[ 1] Page (Root Testpage 1) | ||
# | | ||
# ——[14] Mount Point (to [24] to show contents from) | ||
# |—[14] Mount Point (to [24] to show contents from) | ||
# | | ||
# |—[24] FirstShared | ||
"pages", | ||
,"uid","pid","is_siteroot","doktype","mount_pid","mount_pid_ol","slug","title" | ||
# Site tree | ||
,14,1,0,7,24,1,"/mount-point","Mount Point" | ||
# Shared Pages tree | ||
,20,0,0,254,0,0,"/","Shared-Pages" | ||
,24,20,0,1,0,0,"/first-shared","FirstShared (Not root)" | ||
,24,1,0,1,0,0,"/first-shared","FirstShared" | ||
"tt_content", | ||
,"uid","pid","colPos","CType","bodytext" | ||
,99,24,0,"text","Some Lorem Ipsum conteint!" | ||
"tx_solr_indexqueue_item", | ||
,"uid","root","item_type","item_uid","indexing_configuration","changed","indexed","has_indexing_properties","indexing_priority","indexed","errors" | ||
,4711,1,"pages",24,"pages",1449151778,0,0,0,0,0 | ||
,"uid","root","item_type","item_uid","indexing_configuration","changed","indexed","has_indexing_properties","indexing_priority","indexed","errors","pages_mountidentifier" | ||
,4711,1,"pages",24,"pages",1449151778,0,1,0,0,0,"24-14-1" | ||
"tx_solr_indexqueue_indexing_property", | ||
,"uid","root","item_id","property_key","property_value" | ||
,1,1,4711,"mountPageSource",24 | ||
,2,1,4711,"mountPageDestination",14 | ||
,3,1,4711,"isMountedPage",1 |
26 changes: 26 additions & 0 deletions
26
...tegration/IndexQueue/FrontendHelper/Fixtures/can_index_mounted_page_from_another_site.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# There is following scenario: | ||
# | ||
# [0] | ||
# | | ||
# |—[ 111] Page (Root Testpage 2) | ||
# | | | ||
# | |—[24] FirstShared | ||
# | | ||
# |—[ 1] Page (Root Testpage 1) | ||
# | | ||
# |—[14] Mount Point (to [24] to show contents from) | ||
"pages", | ||
,"uid","pid","is_siteroot","doktype","mount_pid","mount_pid_ol","slug","title" | ||
,14,1,0,7,24,1,"/mount-point","Mount Point" | ||
,24,111,0,1,0,0,"/first-shared","FirstShared" | ||
"tt_content", | ||
,"uid","pid","colPos","CType","bodytext" | ||
,99,24,0,"text","Some Lorem Ipsum conteint!" | ||
"tx_solr_indexqueue_item", | ||
,"uid","root","item_type","item_uid","indexing_configuration","changed","indexed","has_indexing_properties","indexing_priority","indexed","errors","pages_mountidentifier" | ||
,4711,1,"pages",24,"pages",1449151778,0,1,0,0,0,"24-14-1" | ||
"tx_solr_indexqueue_indexing_property", | ||
,"uid","root","item_id","property_key","property_value" | ||
,1,1,4711,"mountPageSource",24 | ||
,2,1,4711,"mountPageDestination",14 | ||
,3,1,4711,"isMountedPage",1 |
26 changes: 26 additions & 0 deletions
26
...tegration/IndexQueue/FrontendHelper/Fixtures/can_index_mounted_page_outside_site_root.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# There is following scenario: | ||
# | ||
# [0] | ||
# | | ||
# |—[20] Shared-Pages (Not root) | ||
# | | | ||
# | |—[24] FirstShared (Not root) | ||
# | | ||
# |—[ 1] Page (Root) | ||
# | | ||
# |—[14] Mount Point (to [24] to show contents from) | ||
"pages", | ||
,"uid","pid","is_siteroot","doktype","mount_pid","mount_pid_ol","slug","title" | ||
,14,1,0,7,24,1,"/mount-point","Mount Point" | ||
,24,20,0,1,0,0,"/first-shared","FirstShared" | ||
"tt_content", | ||
,"uid","pid","colPos","CType","bodytext" | ||
,99,24,0,"text","Some Lorem Ipsum conteint!" | ||
"tx_solr_indexqueue_item", | ||
,"uid","root","item_type","item_uid","indexing_configuration","changed","indexed","has_indexing_properties","indexing_priority","indexed","errors","pages_mountidentifier" | ||
,4711,1,"pages",24,"pages",1449151778,0,1,0,0,0,"24-14-1" | ||
"tx_solr_indexqueue_indexing_property", | ||
,"uid","root","item_id","property_key","property_value" | ||
,1,1,4711,"mountPageSource",24 | ||
,2,1,4711,"mountPageDestination",14 | ||
,3,1,4711,"isMountedPage",1 |
27 changes: 16 additions & 11 deletions
27
Tests/Integration/IndexQueue/FrontendHelper/Fixtures/can_index_multiple_mounted_page.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
# There is following scenario: | ||
# [0] | ||
# | | ||
# ——[20] Shared-Pages (Not root) | ||
# |—[111] 2nd page root | ||
# | | | ||
# | ——[44] FirstShared (Not root) | ||
# | |—[44] FirstShared (Not root) | ||
# | | ||
# ——[ 1] Page (Root) | ||
# |—[ 1] Page (Root) | ||
# | | ||
# ——[14] Mount Point (to [44] to show contents from) | ||
# | | ||
# ——[ 2] Page (Root) | ||
# |—[14] Mount Point (to [44] to show contents from) | ||
# | | ||
# ——[24] Mount Point (to [44] to show contents from) | ||
# |—[24] Mount Point (to [44] to show contents from) | ||
"pages", | ||
,"uid","pid","is_siteroot","doktype","mount_pid","mount_pid_ol","slug","title" | ||
# Site tree a | ||
,14,1,0,7,44,1,"/mount-point","Mount Point" | ||
,24,1,0,7,44,1,"/mount-point-2","Mount Point 2" | ||
# Shared Pages tree | ||
,20,0,0,254,0,0,"/shared-pages","Shared-Pages" | ||
,44,20,0,1,0,0,"/first-shared","FirstShared (Not root)" | ||
,44,111,0,1,0,0,"/first-shared","FirstShared (Not root)" | ||
"tt_content", | ||
,"uid","pid","colPos","CType","bodytext" | ||
,99,44,0,"text","Some Lorem Ipsum conteint!" | ||
"tx_solr_indexqueue_item", | ||
,"uid","root","item_type","item_uid","indexing_configuration","changed","indexed","has_indexing_properties","indexing_priority","indexed","errors" | ||
,4711,1,"pages",44,"pages",1449151778,0,0,0,0,0 | ||
,4712,1,"pages",44,"pages",1449151778,0,0,0,0,0 | ||
,4711,1,"pages",14,"pages",1449151778,0,1,0,0,0 | ||
,4712,1,"pages",24,"pages",1449151778,0,1,0,0,0 | ||
"tx_solr_indexqueue_indexing_property", | ||
,"uid","root","item_id","property_key","property_value" | ||
,1,1,4711,"mountPageSource",44 | ||
,2,1,4711,"mountPageDestination",14 | ||
,3,1,4711,"isMountedPage",1 | ||
,4,1,4712,"mountPageSource",44 | ||
,5,1,4712,"mountPageDestination",24 | ||
,6,1,4712,"isMountedPage",1 |
2 changes: 1 addition & 1 deletion
2
...gration/IndexQueue/FrontendHelper/Fixtures/can_index_with_additional_fields_into_solr.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"pages", | ||
,"uid","pid","is_siteroot","doktype","slug","title","subtitle","crdate","tstamp" | ||
,2,1,1,1,"/","hello solr","the subtitle",1449151778,1449151778 | ||
,2,1,1,1,"/hello-solr","hello solr","the subtitle",1449151778,1449151778 | ||
"tx_solr_indexqueue_item", | ||
,"uid","root","item_type","item_uid","indexing_configuration","changed","indexed","has_indexing_properties","indexing_priority","indexed","errors" | ||
,4711,1,"pages",2,"pages",1449151778,0,0,0,0,0 |
2 changes: 1 addition & 1 deletion
2
Tests/Integration/IndexQueue/FrontendHelper/Fixtures/does_not_die_if_page_not_available.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"tx_solr_indexqueue_item", | ||
,"uid","root","item_type","item_uid","indexing_configuration","changed","indexed","has_indexing_properties","indexing_priority","indexed","errors" | ||
,4711,999,"pages",1636120156,"pages",1449151778,0,0,0,0,0 | ||
,4711,1,"pages",1636120156,"pages",1449151778,0,0,0,0,0 |
Oops, something went wrong.