stable

Clone or download

Read-only

feat: Add additional checks for suitable trackers

Addition to REST API: PUT artidoc/:id/configuration { selected_tracker_ids: [<tracker-id>] } => The tracker must have a semantic title (string field), a description, and no other required fields than title and description, else a 400 is raised. part of story #38288: add a new section Change-Id: I79da727a21762829ce60f3e7d79052573dfec545

Modified Files

Name
A plugins/artidoc/include/Artidoc/Document/Tracker/CheckTrackerIsSuitableForDocument.php +36 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/Tracker/NoSemanticDescriptionFault.php +37 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/Tracker/NoSemanticTitleFault.php +37 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/Tracker/SemanticTitleIsNotAStringFault.php +37 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/Tracker/SuitableTrackerForDocumentChecker.php +93 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/Tracker/TooManyRequiredFieldsFault.php +37 −0 Go to diff View file
R plugins/artidoc/include/Artidoc/REST/v1/TrackerNotFoundFault.php Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/ArtidocResource.php +23 −0 Go to diff View file
M plugins/artidoc/include/Artidoc/REST/v1/PUTConfigurationHandler.php +13 −14 Go to diff View file
M plugins/artidoc/site-content/fr_FR/LC_MESSAGES/tuleap-artidoc.po +12 −0 Go to diff View file
A plugins/artidoc/tests/unit/Artidoc/Document/Tracker/SuitableTrackerForDocumentCheckerTest.php +260 −0 Go to diff View file
M plugins/artidoc/tests/unit/Artidoc/REST/v1/PUTConfigurationHandlerTest.php +13 −40 Go to diff View file
A plugins/artidoc/tests/unit/Artidoc/Stubs/Document/Tracker/CheckTrackerIsSuitableForDocumentStub.php +78 −0 Go to diff View file