stable

Clone or download

Read-only

[chore] DuckTypedField should retrieve itself its field type

part of story #10710 search on fields with duck typing No functional changes Why? In order to prepare permission check on fields, DuckedTypeField now check itself its own type Change-Id: I37da92a678d1bf4e1354fac026a6f08980bb5b66

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +5 −6 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/DuckTypedField/DuckTypedField.php +28 −9 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/DuckTypedField/SearchFieldTypes.php Go to diff View file
D plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/DuckTypedField/TrackerFieldDao.php +0 −44 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Field/EqualComparisonFromWhereBuilder.php +10 −4 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/Field/FieldUsageChecker.php +12 −8 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +4 −5 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/EqualComparisonTest.php +3 −4 Go to diff View file
D plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/TrackerFieldDaoTest.php +0 −75 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/DuckTypedField/DuckTypedFieldTest.php +79 −26 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidSearchableCollectorVisitorTest.php +34 −8 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/QueryBuilder/Field/EqualComparisonFromWhereBuilderTest.php +30 −16 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/QueryValidation/Field/FieldUsageCheckerTest.php +56 −24 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Tests/Builders/InvalidSearchableCollectorParametersBuilder.php +29 −20 Go to diff View file
D plugins/crosstracker/tests/unit/CrossTracker/Tests/Stub/SearchFieldTypesStub.php +0 −52 Go to diff View file
M plugins/tracker/tests/unit/Stub/RetrieveFieldTypeStub.php +12 −8 Go to diff View file