stable

Clone or download

Read-only

feat: Store last update info about template

When we edit a template, we should see the last update date (and the user) and who did the modification. Since the plugin is experimental, the table is recreated from scratch so early birds will loose their templates. Part of story #38630: Export to file Change-Id: I946e1e84e6d2446efaa5791a68316bf3db032eb8

Modified Files

Name
M plugins/pdftemplate/db/install.sql +6 −4 Go to diff View file
A plugins/pdftemplate/db/mysql/202407151100_add_updated_columns.php +50 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/BuildUpdateTemplateRequestMiddleware.php +3 −1 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/CreatePdfTemplateController.php +2 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/DisplayPdfTemplateCreationFormController.php +1 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/DisplayPdfTemplateCreationOrUpdateFormPresenter.php +4 −3 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/DisplayPdfTemplateUpdateFormController.php +3 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/IndexPdfTemplateController.php +1 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/IndexPdfTemplatePresenter.php +2 −1 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/PdfTemplatePresenter.php +19 −3 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/create-or-update-template.mustache +7 −1 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/Admin/template-form-elements.mustache +36 −38 Go to diff View file
A plugins/pdftemplate/include/PdfTemplate/Admin/template-metadata.mustache +26 −0 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/CreateTemplate.php +7 −1 Go to diff View file
M plugins/pdftemplate/include/PdfTemplate/PdfTemplateDao.php +36 −12 Go to diff View file
M plugins/pdftemplate/include/pdftemplatePlugin.php +1 −1 Go to diff View file
M plugins/pdftemplate/site-content/fr_FR/LC_MESSAGES/tuleap-pdftemplate.po +6 −0 Go to diff View file
M plugins/pdftemplate/tests/integration/PdfTemplate/PdfTemplateDaoTest.php +27 −10 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/Admin/BuildUpdateTemplateRequestMiddlewareTest.php +34 −20 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/Admin/DisplayPdfTemplateCreationFormControllerTest.php +11 −0 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/Admin/DisplayPdfTemplateUpdateFormControllerTest.php +21 −14 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/Admin/UpdatePdfTemplateControllerTest.php +5 −5 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/Admin/UpdateTemplateRequestTest.php +11 −11 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/PdfTemplateForUserRetrieverTest.php +3 −9 Go to diff View file
M plugins/pdftemplate/tests/unit/PdfTemplate/Stubs/CreateTemplateStub.php +9 −2 Go to diff View file
M src/common/Export/Pdf/Template/PdfTemplate.php +2 −0 Go to diff View file
A tests/lib/Builders/Export/Pdf/Template/PdfTemplateTestBuilder.php +114 −0 Go to diff View file