stable

Clone or download

Read-only

Fix request #35065 Do not export whole artifact definition in TTM execution

Following request #31937, the full definition artifact details are added to all test definition representations in all REST endpoints. This can lead to memory / performance issues when the definition artifacts have a lot of artifact links. This full definition artifact details must be retrieved only in the REST route used to build the docx: GET /testmanagement_campaigns/{id}/testmanagement_executions with a parameter named definition_format. No functional changes expected in feature using testmanagement data: * Testplan * Doc export * TTM Change-Id: If957497906179024d1c62689d4565bab5944c0a6

Modified Files

Name
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +10 −5 Go to diff View file
A plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentationFormat.php +34 −0 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionCommonmarkRepresentation.php +5 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationBuilder.php +46 −17 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionTextOrHTMLRepresentation.php +5 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/MinimalDefinitionRepresentation.php +0 −9 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionRepresentationBuilder.php +42 −22 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/execution-querier.test.ts +1 −1 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/execution-querier.ts +1 −1 Go to diff View file
M plugins/testmanagement/tests/unit/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationBuilderTest.php +1 −1 Go to diff View file
M plugins/testmanagement/tests/unit/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationTest.php +1 −0 Go to diff View file
M plugins/testplan/include/REST/v1/DefinitionLinkedToABacklogItemRepresentation.php +1 −38 Go to diff View file