stable

Clone or download

Read-only

Refactoring: Composition instead of inheritance

This is part of story #10704 define a query with date fields No functional changes; subon and lud searches work like before. Responsibility to extract the value of a comparison is given to a dedicated object. Change-Id: I75279b98337cdd5db069395f093e8179b0c9801b

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +31 −15 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/BetweenComparisonFromWhereBuilder.php +23 −31 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/DateValueExtractor.php +83 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/EqualComparisonFromWhereBuilder.php +22 −6 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/FromWhereBuilder.php +1 −81 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/GreaterThanComparisonFromWhereBuilder.php +22 −6 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/GreaterThanOrEqualComparisonFromWhereBuilder.php +22 −6 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/LesserThanComparisonFromWhereBuilder.php +22 −6 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/LesserThanOrEqualComparisonFromWhereBuilder.php +22 −6 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/NotEqualComparisonFromWhereBuilder.php +22 −6 Go to diff View file
M plugins/crosstracker/include/autoload.php +3 −2 Go to diff View file