stable

Clone or download

Read-only

feat: Config key to limit quantity of select

Part of story #39330 Choose on which tracker I perform my query Add a config key `crosstracker_maximum_selected_columns` to limit (or not) the max number of selected columns in TQL. By default set to 0 for no limit *Testing:* If you set the config key to 1, you should be able to select only one column. Else you have an error Change-Id: Ie0f3a2231eed80ed9bf8edd00b42ab02665fa9fa

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +2 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVExportController.php +2 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php +4 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/InvalidSelectablesCollectionBuilder.php +9 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/InvalidSelectablesCollectionBuilderTest.php +14 −0 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +2 −1 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/SelectLimitExceededException.php +46 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +2 −1 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +12 −1 Go to diff View file
M plugins/tracker/site-content/pt_BR/LC_MESSAGES/tuleap-tracker.po +7 −0 Go to diff View file