stable

Clone or download

Read-only

feat: Build FROM query to get trackers ids

Part of story #39330 Choose on which tracker I perform my query Currently only @project = 'self' works @project = 'self' get all trackers of current project. tracker_ids parameters is no longer mandatory for getIdContent and put rest routes when report_mode=expert. *Testing:* In a project with several tracker, if you perform an expert XTS query with `FROM @project='self'`, you should see artifacts from all your trackers (as long the WHERE and SELECT part can match them) You can try with this query: SELECT @tracker.name FROM @project = 'self' WHERE @id >= 1 Your trackers only need to have artifact id field. If you change view permission of one of the tracker -> only project admin can view it, then project member should not see artifacts from it Change-Id: I6f30e0266a22b5e683e62758a73ae5b6edbce5fb

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/CrossTrackerExpertReport.php +2 −15 Go to diff View file
M plugins/crosstracker/include/CrossTracker/CrossTrackerReportFactory.php +3 −4 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +178 −160 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php +15 −28 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/FromBuilder/FromProjectBuilderVisitor.php +74 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/FromBuilder/FromProjectBuilderVisitorParameters.php +35 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/FromBuilder/FromTrackerBuilderVisitor.php +45 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/FromBuilder/FromTrackerBuilderVisitorParameters.php +34 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/FromBuilderVisitor.php +73 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/FromBuilderVisitorParameters.php +33 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/CrossTrackerExpertQueryReportDao.php +44 −4 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/ReportTrackersRetriever.php +112 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/RetrieveReportTrackers.php +35 −0 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +42 −1 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +3 −0 Go to diff View file
M plugins/crosstracker/site-content/pt_BR/LC_MESSAGES/tuleap-crosstracker.po +3 −0 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/CrossTrackerFieldTestCase.php +9 −0 Go to diff View file
A plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/From/FromProjectTest.php +135 −0 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ArtifactIdSelectBuilderTest.php +3 −10 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ArtifactSelectTest.php +3 −10 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/AssignedToSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/DateSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/DescriptionSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/LastUpdateBySelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/LastUpdateDateSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/NumericSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/PrettyTitleSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ProjectNameSelectBuilderTest.php +6 −9 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/StaticListSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/StatusSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/SubmittedBySelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/SubmittedOnSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TextSelectFromBuilderTest.php +5 −8 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TitleSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TrackerNameSelectBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UGroupListSelectFromBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UserListSelectFromBuilderTest.php +2 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Tests/Report/ArtifactReportFactoryInstantiator.php +39 −1 Go to diff View file
M plugins/crosstracker/tests/rest/CrossTracker/CrossTrackerDataBuilder.php +13 −2 Go to diff View file
M plugins/crosstracker/tests/rest/CrossTracker/CrossTrackerTest.php +11 −16 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/CrossTrackerReportFactoryTest.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Permission/TrackersPermissionsRetriever.php +0 −5 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/ExpertQueryValidator.php +12 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +0 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Permission/TrackersPermissionsRetrieverTest.php +0 −16 Go to diff View file
M tests/integration/tests/Test/Builders/CoreDatabaseBuilder.php +1 −1 Go to diff View file