stable

Clone or download

Read-only

Check that all trackers have a readable subon field

This is part of story #10704 define a query with date fields Unused all Submitted on fields in a tracker used in cross tracker query: you should get an error when you display the widget. Use a Submitted on field but prevent current user to read it: you should get an error when you display the widget. Due to usage of PHPUnit, some legacy classes have been modified in order to conform to their parent specification: * Tracker_FormElement_Field_Date::getFieldDataFromRESTValueByField * Tracker_FormElement_Field_SubmittedOn::fetchArtifactValueWithEditionFormIfEditable * Tracker_FormElement_Field_SubmittedOn::validateFieldWithPermissionsAndRequiredStatus * Tracker_FormElement_Field_SubmittedOn::afterCreate Those changes are only here to be able to stub SubmittedOn fields. Only the minimum has been done: other classes are not changed, no styling effort, … Change-Id: Ib5348beef86c526d60ba554382ed7b17e9e20354

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerArtifactReportFactory.php +4 −4 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +16 −6 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorParameters.php +46 −9 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidComparisonCollectorVisitor.php +14 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchableCollectorVisitor.php +1 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSearchablesCollectionBuilder.php +18 −7 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/ICheckMetadataForAComparison.php +6 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/MetadataChecker.php +8 −5 Go to diff View file
R plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/SemanticUsageChecker.php Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSemantic/SubmittedOnIsMissingInAtLeastOneTrackerException.php +41 −0 Go to diff View file
M plugins/crosstracker/include/autoload.php +4 −3 Go to diff View file
A plugins/crosstracker/phpunit/.simpletest_skip +0 −0 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Report/Query/Advanced/InvalidSemantic/MetadataUsageCheckerTest.php +184 −0 Go to diff View file
A plugins/crosstracker/phpunit/bootstrap.php +24 −0 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +18 −0 Go to diff View file
M plugins/crosstracker/site-content/tuleap-crosstracker.pot +12 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Date.class.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedOn.class.php +9 −8 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_DateTest.php +2 −2 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file