stable

Clone or download

Read-only

fix: Tuleap Functions tracker payloads can be downloaded without being truncated

The way to retrieve the input and output payloads of Tuleap Functions in trackers has been reworked: * they are no more displayed in the web UI as it is not usable outside of toy examples * a ZIP file containing both payload (if available) can be downloaded * the max size of expected payloads has been increased so we can store up to 16MB Fixes request #37947 Tuleap Functions execution details truncate output at 65536 chars Change-Id: I6023a6faaf45bf082c713a8fd9848074ea484857

Modified Files

Name
M plugins/tracker_functions/composer.json +3 −0 Go to diff View file
M plugins/tracker_functions/composer.lock +276 −2 Go to diff View file
M plugins/tracker_functions/db/install.sql +2 −2 Go to diff View file
A plugins/tracker_functions/db/mysql/2024/202406101145_increase_size_payload_columns.php +37 −0 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/Administration/AdministrationController.php +0 −9 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/Administration/administration.mustache +7 −59 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/CustomCodeExecutionTask.php +4 −5 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/Logs/FunctionLogDao.php +46 −9 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/Logs/FunctionLogLine.php +7 −44 Go to diff View file
A plugins/tracker_functions/include/TrackerFunctions/Logs/FunctionLogLineStatus.php +28 −0 Go to diff View file
A plugins/tracker_functions/include/TrackerFunctions/Logs/FunctionLogLineToSave.php +68 −0 Go to diff View file
A plugins/tracker_functions/include/TrackerFunctions/Logs/FunctionLogPayloads.php +38 −0 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/Logs/LogLinePresenter.php +1 −2 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/Logs/LogLinePresenterBuilder.php +2 −23 Go to diff View file
A plugins/tracker_functions/include/TrackerFunctions/Logs/PayloadDownloaderController.php +89 −0 Go to diff View file
A plugins/tracker_functions/include/TrackerFunctions/Logs/RetrievePayloadsForChangeset.php +33 −0 Go to diff View file
M plugins/tracker_functions/include/TrackerFunctions/Logs/SaveFunctionLog.php +1 −1 Go to diff View file
M plugins/tracker_functions/include/tracker_functionsPlugin.php +15 −0 Go to diff View file
M plugins/tracker_functions/scripts/admin/package.json +0 −1 Go to diff View file
M plugins/tracker_functions/scripts/admin/pnpm-lock.yaml +0 −3 Go to diff View file
M plugins/tracker_functions/scripts/admin/src/index.ts +0 −20 Go to diff View file
M plugins/tracker_functions/scripts/admin/src/style.scss +0 −38 Go to diff View file
M plugins/tracker_functions/site-content/fr_FR/LC_MESSAGES/tuleap-tracker_functions.po +3 −18 Go to diff View file
M plugins/tracker_functions/site-content/pt_BR/LC_MESSAGES/tuleap-tracker_functions.po +3 −18 Go to diff View file
M plugins/tracker_functions/tests/integration/TrackerFunctions/Logs/FunctionLogDaoTest.php +26 −19 Go to diff View file
A plugins/tracker_functions/tests/unit/Stubs/Logs/RetrievePayloadsForChangesetStub.php +52 −0 Go to diff View file
M plugins/tracker_functions/tests/unit/Stubs/Logs/SaveFunctionLogStub.php +4 −4 Go to diff View file
M plugins/tracker_functions/tests/unit/TrackerFunctions/CustomCodeExecutionTaskTest.php +3 −3 Go to diff View file
A plugins/tracker_functions/tests/unit/TrackerFunctions/Logs/PayloadDownloaderControllerTest.php +104 −0 Go to diff View file
M src/additional-packages/wasmtime-wrapper-lib/src/lib.rs +1 −1 Go to diff View file