From 17128a7882cdeb6831e3598d83511c4593d107cd Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 2 Feb 2026 12:39:35 +0100 Subject: [PATCH] fix(developer_manual): Add TaskProcessing updates to 33 upgrade guide see https://github.com/nextcloud/server/pull/56908 see https://github.com/nextcloud/server/pull/56717 Signed-off-by: Marcel Klehr --- .../app_upgrade_guide/upgrade_to_33.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst index 7e37b3190b5..1f1f8b42694 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst @@ -81,6 +81,7 @@ Added APIs - ``OCA.Profile.ProfileSections`` was added as a framework agnostic replacement for ``OCA.Core.ProfileSections``. See section about the profile app above. + Changed APIs ^^^^^^^^^^^^ @@ -197,11 +198,18 @@ Added APIs } $result->closeCursor(); +- ``ImageToTextOpticalCharacterRecognition`` TaskProcessing task type was added + +- ``ISynchronousWatermarkingProvider`` TaskProcessing provider interface was added to allow synchronous processing providers to react to the boolean includeWatermark flag + + Changed APIs ^^^^^^^^^^^^ - The ``setId`` and ``getId`` methods of ``\OCP\BackgroundJob\IJob`` were changed to return/accept a string instead of an int. Same for ``\OCP\BackgroundJob\IJobList`` were some methods (``removedById``, ``getById`` and ``getDetailsById``) are now taking a string instead of an int. The string is suppose to be a snowflake id. - The ``setObjectId`` and ``getObjectId`` methods of ``\OCP\Activity\IEvent`` were changed to return/accept a string in addition to an int. The string is suppose to be a snowflake id. +- The ``\OCP\TaskProcessing\Task`` class now has ``getIncludeWatermark`` and ``setIncludeWatermark`` methods for indicating whether the provider should add a watermark to the generated output. +- The TaskProcessing OCS API now also accepts the ``includeWatermark`` flag when scheduling tasks Deprecated APIs ^^^^^^^^^^^^^^^