stable

Clone or download

Read-only

Have a dedicated class to represent an expert report

Part of story #39330 Choose on which tracker I perform my query In the expert mode, there is no need to have valid or invalid tracker anymore In the REST representation, invalid trackers are not returned anymore. There is no functional change in the widget Change-Id: Id8e7a732ecd6d16b39bcdbeb7120cecc5abc2812

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/CrossTrackerDefaultReport.php +2 −3 Go to diff View file
A plugins/crosstracker/include/CrossTracker/CrossTrackerExpertReport.php +119 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/CrossTrackerReport.php +55 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/CrossTrackerReportFactory.php +6 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Permission/CrossTrackerPermissionGate.php +2 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/ResourcesInjector.php +1 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerDefaultReportRepresentation.php +3 −7 Go to diff View file
A plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerExpertReportRepresentation.php +65 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportRepresentation.php +32 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +31 −15 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/UserIsAllowedToSeeReportChecker.php +2 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVExportController.php +3 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/CrossTrackerArtifactReportFactory.php +5 −5 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/CrossTrackerWidget.vue +1 −1 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/DateDuckTypedFieldTest.php +0 −30 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/DatetimeDuckTypedFieldTest.php +0 −37 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/NumericDuckTypedFieldTest.php +0 −24 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/OpenStaticListDuckTypedFieldTest.php +0 −13 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/OpenUGroupListDuckTypedFieldTest.php +0 −14 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/OpenUserListDuckTypedFieldTest.php +0 −18 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/StaticListDuckTypedFieldTest.php +0 −17 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/TextDuckTypedFieldTest.php +0 −9 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/UGroupListDuckTypedFieldTest.php +0 −18 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/DuckTypedField/UserListDuckTypedFieldTest.php +0 −22 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/ArtifactIdMetadataTest.php +0 −21 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/AssignedToMetadataTest.php +0 −22 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/DescriptionMetadataTest.php +0 −8 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/LastUpdateByMetadataTest.php +0 −18 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/LastUpdateDateMetadataTest.php +0 −33 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/StatusMetadataTest.php +0 −6 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/SubmittedByMetadataTest.php +0 −18 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/SubmittedOnMetadataTest.php +0 −33 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/TitleMetadataTest.php +0 −8 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ArtifactIdSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ArtifactSelectTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/AssignedToSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/DateSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/DescriptionSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/LastUpdateBySelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/LastUpdateDateSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/NumericSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/PrettyTitleSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/ProjectNameSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/StaticListSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/StatusSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/SubmittedBySelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/SubmittedOnSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TextSelectFromBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TitleSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/TrackerNameSelectBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UGroupListSelectFromBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Select/UserListSelectFromBuilderTest.php +3 −4 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/CrossTrackerReportFactoryTest.php +41 −19 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/CrossTrackerReportTest.php +2 −3 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/REST/v1/UserIsAllowedToSeeReportCheckerTest.php +0 −1 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/SimilarField/SimilarFieldsMatcherTest.php +1 −1 Go to diff View file