stable

Clone or download

Read-only

feat: GET artidoc_sections/:id

We can now retrieve the content of one section only (until now we had to query the whole document to know the content of a section). This will be usefull to refresh the new content of a section after its edition (Needed to get the post processed value, for cross references links in the new content). The :id parameter of the route is the id (uuid) of the section that can be retrieved in the array of sections of the document. Part of story #37543: edit Artidoc sections Change-Id: I453df025c9b05d51e3d77804dfe4ba456cce02cc

Modified Files

Name
M plugins/artidoc/include/Artidoc/Document/ArtidocDao.php +24 −1 Go to diff View file
M plugins/artidoc/include/Artidoc/Document/PaginatedRawSections.php +1 −1 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/SearchOneSection.php +31 −0 Go to diff View file
M plugins/artidoc/include/Artidoc/REST/ResourcesInjector.php +2 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/REST/v1/ArtidocSectionRepresentationBuilder.php +67 −0 Go to diff View file
A plugins/artidoc/include/Artidoc/REST/v1/ArtidocSectionsResource.php +98 −0 Go to diff View file
M plugins/artidoc/tests/integration/Artidoc/Document/ArtidocDaoTest.php +22 −0 Go to diff View file
M plugins/artidoc/tests/rest/Artidoc/ArtidocTest.php +35 −0 Go to diff View file
A plugins/artidoc/tests/unit/Artidoc/REST/v1/ArtidocSectionRepresentationBuilderTest.php +158 −0 Go to diff View file
M plugins/artidoc/tests/unit/Artidoc/Stubs/Document/RetrieveArtidocStub.php +11 −2 Go to diff View file
M plugins/artidoc/tests/unit/Artidoc/Stubs/Document/SearchArtidocDocumentStub.php +1 −1 Go to diff View file
A plugins/artidoc/tests/unit/Artidoc/Stubs/Document/SearchOneSectionStub.php +47 −0 Go to diff View file
M src/common/DB/DatabaseUUIDFactory.php +5 −0 Go to diff View file
M src/common/DB/DatabaseUUIDV7Factory.php +9 −0 Go to diff View file
A src/common/DB/InvalidUuidStringException.php +31 −0 Go to diff View file