stable

Clone or download

Read-only

Take comment criterion value into account

This is part of story #10325 search in artifact comments from classic view The value provided in the comment criterion is now taken into account to filter artifatcs. This patch adds a refactoring to extract SQL part of comment search between TQL and classic search to avoid code duplication. /!\ There are some limitations (same the goes for TQL): * Searches are done for words longer than 3 characters * Some words are not taken in account because they are too common (like the, a, …) They will be added in the documentation. Change-Id: I7d0c5ce8bbf0d7e98bd4a8e84554b4152f14eb10

Modified Files

Name
M plugins/tracker/include/Tracker/Report/Query/Advanced/QueryBuilder/MetadataEqualComparisonFromWhereBuilder.php +18 −51 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/CommentFromWhereBuilder.php +88 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +38 −7 Go to diff View file
M plugins/tracker/include/autoload.php +3 −2 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +4 −2 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +3 −0 Go to diff View file
M plugins/tracker/templates/report/comment-criterion.mustache +2 −0 Go to diff View file
M plugins/tracker/tests/Tracker/Report/Query/Advanced/QueryBuilderVisitorTest.php +3 −16 Go to diff View file