stable
Clone or download
Read-only
We will need a section id later (for example to refresh the content of a section after the corresponding artifact update, so that we can retrieve the post processed value of the description). We cannot use the artifact id as section id since we don't want to open the door to breaking changes the day we have other thing than artifact as section (eg free text). The introduced id is a UUID, as recommended by [ADR-0028](adr/0028-prevent-data-loss.md). No functional changes, the id is visible in the REST representation of sections. Part of story #37543: edit Artidoc sections Change-Id: I2eef93c8c7194bbb9c8da801f91e632ab70e16e9
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/artidoc/db/install.sql | +2 | −1 | Go to diff View file |
A | plugins/artidoc/db/mysql/2024/202405141820_add_uuid_as_primary_key.php | +54 | −0 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/Document/ArtidocDao.php | +59 | −23 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/Document/ArtidocRetriever.php | +1 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/Document/PaginatedRawSections.php | +3 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/Document/SaveSections.php | +1 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/Document/SearchArtidocDocument.php | +1 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/Document/SearchPaginatedRawSections.php | +1 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/REST/v1/ArtidocResource.php | +7 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/REST/v1/ArtidocSectionRepresentation.php | +1 | −0 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/REST/v1/PUTSectionsHandler.php | +8 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/REST/v1/PaginatedArtidocSectionRepresentationCollectionBuilder.php | +1 | −1 | Go to diff View file |
M | plugins/artidoc/include/Artidoc/REST/v1/RawSectionsToRepresentationTransformer.php | +20 | −6 | Go to diff View file |
M | plugins/artidoc/tests/integration/Artidoc/Document/ArtidocDaoTest.php | +34 | −26 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/REST/v1/PUTSectionsHandlerTest.php | +9 | −4 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/REST/v1/PaginatedArtidocSectionRepresentationCollectionBuilderTest.php | +13 | −8 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/REST/v1/RawSectionsToRepresentationTransformerTest.php | +31 | −28 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/Stubs/Document/SaveSectionsStub.php | +2 | −2 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/Stubs/Document/SearchArtidocDocumentStub.php | +1 | −1 | Go to diff View file |
M | plugins/artidoc/tests/unit/Artidoc/Stubs/Document/SearchPaginatedRawSectionsStub.php | +1 | −1 | Go to diff View file |