stable

Clone or download

Read-only

feat: display list of attachments of a test execution

When a test execution has attachments (typically dragndrop of an image in the comment editor, or manual addition of attachments in the execution artifact ui), they are displayed as a list next to the comment. If filename is too long, then ellipsis are displayed to not break the layout. Except the download of the corresponding file, no interaction is available in this list. The download is opened in a new tab, so that we don't get a warning about realtime disconnection because SocketIO thinks that we are leaving the page. Part of story #22705: display list of attachments of a test execution Change-Id: I5c8efd46a5f62f9f24c79d0d73279d2dd0710853

Modified Files

Name
M plugins/testmanagement/include/TestManagement/Config.class.php +21 −16 Go to diff View file
A plugins/testmanagement/include/TestManagement/REST/v1/AttachmentRepresentation.php +49 −0 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +12 −2 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionRepresentation.php +11 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionRepresentationBuilder.php +50 −11 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution-detail.tpl.html +20 −0 Go to diff View file
M plugins/testmanagement/tests/rest/TestManagement/BaseTest.php +25 −0 Go to diff View file
M plugins/testmanagement/tests/rest/TestManagement/ExecutionsTest.php +85 −0 Go to diff View file
M plugins/testmanagement/tests/rest/TestManagementDataBuilder.php +4 −3 Go to diff View file
A plugins/testmanagement/tests/rest/_fixtures/execution_attachments/project.xml +1187 −0 Go to diff View file
A plugins/testmanagement/tests/rest/_fixtures/execution_attachments/testmanagement.xml +9 −0 Go to diff View file
A plugins/testmanagement/tests/rest/_fixtures/execution_attachments/user_map.csv +2 −0 Go to diff View file
A plugins/testmanagement/tests/rest/_fixtures/execution_attachments/users.xml +10 −0 Go to diff View file
M plugins/testmanagement/tests/rest/_fixtures/project/user_map.csv +1 −1 Go to diff View file
M plugins/testmanagement/tests/rest/lib/Cache.php +14 −0 Go to diff View file
M plugins/testmanagement/tests/unit/TestManagement/ConfigTest.php +22 −2 Go to diff View file
M plugins/testmanagement/themes/BurningParrot/css/includes/_current-execution.scss +28 −0 Go to diff View file
M plugins/tracker/tests/unit/Builders/TrackerTestBuilder.php +14 −22 Go to diff View file