stable

Clone or download

Read-only

Backend: return the last modification artifact title, description and status (semantics fields) before given one date.

Part of epic #12142 Baseline v1 How to test: - Query /baselines with api explorer --> 200 with title, description, status and last modification date - when artifact id does not exist --> 404 - when artifact did not exist before given date --> 404 - when not authorized to see this artifact --> 403 Change-Id: I56f7558656c33b0b3d7c5b0ed0f3003ace6ee367

Modified Files

Name
A include/REST/ArtifactPermissionsChecker.php +91 −0 Go to diff View file
M include/REST/BaselineRestResourcesInjector.php +19 −0 Go to diff View file
A include/REST/BaselinesController.php +195 −0 Go to diff View file
M include/REST/BaselinesResource.php +29 −6 Go to diff View file
A include/REST/FieldRepository.php +57 −0 Go to diff View file
A include/REST/SimplifiedBaselineRepresentation.php +58 −0 Go to diff View file
A phpunit/.simpletest_skip +0 −0 Go to diff View file
A phpunit/REST/ArtifactPermissionsCheckerTest.php +132 −0 Go to diff View file
A phpunit/REST/BaselinesControllerTest.php +260 −0 Go to diff View file
A phpunit/bootstrap.php +22 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-baseline.po +13 −2 Go to diff View file
M site-content/tuleap-baseline.pot +13 −1 Go to diff View file
M tests/rest/BaselinesResourceTest.php +17 −3 Go to diff View file
A tests/rest/_fixtures/Baseline/project.xml +255 −0 Go to diff View file
A tests/rest/_fixtures/Baseline/user_map.csv +1 −0 Go to diff View file
A tests/rest/_fixtures/Baseline/users.xml +10 −0 Go to diff View file