Allow searching pages by their Content Block content
Details
Details
- Reviewers
alex
Main test
- reinstall In-Portal
- login to Admin Console
- go to Configuration → Website → Search section
- confirm that Content Block Content setting is available after Description setting
- set checked Simple Search checkbox for Content Block Content field
- go to Website & Content → Browse Website section
- click on Content Mode tab
- click on Edit Content #1 button
- input text Content and press Save button
- input text Content in the sidebar Search Box and press Find It! button
- confirm that Home page is found and displayed in Category Search Results page
Languages test
- go to Configuration → Website → Regional section
- add some language
- go to Website & Content → Browse Website section
- click on Content Mode tab
- click on Edit Content #1 button
- choose added secondary language in the Language dropdown of Content Editor
- input text Language and press Save button
- choose added secondary language in the Language dropdown of Front-End page
- input text Language in the sidebar Search Box and press Find It! button
- confirm that Home page is found and displayed in Category Search Results page
Revision test
- go to Configuration → Website → Regional section
- make Enable Revision Control for Section Content checkbox checked
- press Save button
- go to Website & Content → Browse Website section
- click on Content Mode tab
- click on Edit Content #1 button
- input text Revision and press Save button
- press Save button in the revisions control to publish new revision
- input text Content in the sidebar Search Box and press Find It! button
- confirm that nothing is found with this old revision related keyword
- input text Revision in the sidebar Search Box and press Find It! button
- confirm that Home page is found and displayed in Category Search Results page
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.3.x
- Lint
Lint Errors Excuse: Full file re-formatting is not part of this task. Severity Location Code Message Error core/units/categories/categories_config.php:437 PHPCS.E.CodingStandard.Array.Array.SpaceAfterKeyword CodingStandard.Array.Array.SpaceAfterKeyword Error core/units/categories/categories_config.php:437 PHPCS.E.Generic.PHP.LowerCaseKeyword.Found Generic.PHP.LowerCaseKeyword.Found Error core/units/page_revisions/page_revisions_config.php:70 PHPCS.E.CodingStandard.Array.Array.SpaceAfterKeyword CodingStandard.Array.Array.SpaceAfterKeyword Error core/units/page_revisions/page_revisions_config.php:70 PHPCS.E.Generic.PHP.LowerCaseKeyword.Found Generic.PHP.LowerCaseKeyword.Found Error core/units/page_revisions/page_revisions_config.php:72 PHPCS.E.CodingStandard.Array.Array.SpaceAfterKeyword CodingStandard.Array.Array.SpaceAfterKeyword Error core/units/page_revisions/page_revisions_config.php:72 PHPCS.E.Generic.PHP.LowerCaseKeyword.Found Generic.PHP.LowerCaseKeyword.Found - Unit
No Unit Test Coverage - Build Status
Buildable 715 Build 715: arc lint + arc unit
Event Timeline
Comment Actions
Also update test plan:
- change enabling of search setting info confirmation that it's present in correct place
- add test to confirm, that search across languages works
- add test to confirm, that only data from live page revision is used during search
core/install/upgrades.sql | ||
---|---|---|
3062 |
| |
core/units/categories/categories_config.php | ||
438 | add 'formatter' => 'kMultiLanguage', after type field option the OnSimpleSearch event behaves different with formatter specified | |
core/units/page_revisions/page_revision_eh.php | ||
227–230 | inline there only 1 condition left | |
227–235 | perform this SQL directly in the syncPageContent method | |
228 | remove page filter the RevisionId is unique to a page, it's RevisionNumber that isn't | |
242–249 | specify $revision_id instead of $blocks | |
254 | please inline variable used only once | |
272 | inline | |
273 | format as multi-line function call |