stable

Clone or download

Read-only

Have read-only states of fields in REST API on GET /artifacts/{id}

This change is part of story #13216 This change introduces a new parameter on GET on /artifacts/{id}. You can now specify a tracker structure minimal (the current one) or complete (a complete tracker structure with fields permissions computed on the fly taking workflow read only fields into account). Example: GET on /artifacts/{id}?tracker_structure_format=complete Change-Id: I318da6c97d2d96c94bf99b74495f0515c22d3435

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/REST/v1/PlanningRepresentation.class.php +2 −2 Go to diff View file
M plugins/timetracking/include/Timetracking/REST/v1/ProjectResource.php +14 −1 Go to diff View file
M plugins/timetracking/include/Timetracking/REST/v1/TimetrackingOverviewRepresentationsBuilder.php +1 −1 Go to diff View file
M plugins/timetracking/phpunit/Time/TimetrackingOverviewRepresentationsBuilderTest.php +8 −3 Go to diff View file
M plugins/tracker/include/REST/Artifact/ArtifactRepresentation.class.php +4 −6 Go to diff View file
M plugins/tracker/include/REST/Artifact/ArtifactRepresentationBuilder.php +27 −11 Go to diff View file
R plugins/tracker/include/REST/TrackerRepresentation.class.php Go to diff View file
M plugins/tracker/include/REST/MinimalTrackerRepresentation.php +2 −2 Go to diff View file
A plugins/tracker/include/REST/PermissionsExporter.php +79 −0 Go to diff View file
M plugins/tracker/include/REST/ResourcesInjector.class.php +2 −2 Go to diff View file
M plugins/tracker/include/REST/TrackerReference.class.php +1 −1 Go to diff View file
A plugins/tracker/include/REST/TrackerRepresentation.php +25 −0 Go to diff View file
M plugins/tracker/include/REST/TrackerRestBuilder.class.php +69 −13 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +60 −17 Go to diff View file
M plugins/tracker/include/REST/v1/ProjectTrackersResource.class.php +15 −2 Go to diff View file
M plugins/tracker/include/REST/v1/ReportsResource.class.php +7 −2 Go to diff View file
M plugins/tracker/include/REST/v1/TrackersResource.class.php +35 −8 Go to diff View file
M plugins/tracker/phpunit/REST/Artifact/ArtifactRepresentationBuilderTest.php +10 −7 Go to diff View file
A plugins/tracker/phpunit/REST/PermissionsExporterTest.php +120 −0 Go to diff View file
M plugins/tracker/tests/REST_Backend/TrackerRestBuilderTest.php +9 −5 Go to diff View file
A plugins/tracker/tests/rest/Artifacts/ArtifactsTest.php +62 −0 Go to diff View file