Skip to content

Conversation

@julien-nc
Copy link
Member

This will be useful when scheduling internal intermediate tasks for which we don't want watermarking.
When tasks are scheduled via the OCS API, watermarking is always enabled.

@marcelklehr We can't change the signature of ISynchronousProvider::process without making sure all the providers are compatible with the new signature (which is impossible). So for now I pass an extra param when calling it.

@julien-nc julien-nc added this to the Nextcloud 33 milestone Nov 26, 2025
@julien-nc julien-nc force-pushed the enh/noid/taskpro-optional-watermarking branch from f0f20ca to d43d071 Compare November 26, 2025 15:07
@marcelklehr
Copy link
Member

When tasks are scheduled via the OCS API, watermarking is always enabled.

ExApp may need this, though

if ($schema->hasTable('taskprocessing_tasks')) {
$table = $schema->getTable('taskprocessing_tasks');
if (!$table->hasColumn('add_watermarking')) {
$table->addColumn('add_watermarking', Types::SMALLINT, [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: How about enable_watermarking or apply_watermark or include_watermark?

getAddWatermark() sounds a bit odd. 🤔

@julien-nc julien-nc force-pushed the enh/noid/taskpro-optional-watermarking branch from d43d071 to 9eca93c Compare November 27, 2025 09:50
@julien-nc julien-nc force-pushed the enh/noid/taskpro-optional-watermarking branch 2 times, most recently from a9c5926 to 8d0401f Compare November 27, 2025 09:57
Copy link
Contributor

@kyteinsky kyteinsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@julien-nc
Copy link
Member Author

@marcelklehr

  • addWatermarking and add_watermarking -> includeWatermark and include_watermark
  • new ISynchronousWatermarkingProvider that extends ISynchronousProvider
  • new param to the OCS schedule endpoint to toggle watermarking

…ing tasks and pass it to ISynchronousWatermarkingProvider::process

Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc julien-nc force-pushed the enh/noid/taskpro-optional-watermarking branch from 8d0401f to b4f7fe2 Compare November 27, 2025 10:32
@julien-nc julien-nc marked this pull request as ready for review November 27, 2025 13:01
@julien-nc julien-nc requested review from a team and provokateurin as code owners November 27, 2025 13:01
@julien-nc julien-nc requested review from leftybournes, salmart-dev and yemkareems and removed request for a team November 27, 2025 13:01
@AndyScherzinger AndyScherzinger merged commit 3da9905 into master Nov 28, 2025
202 of 209 checks passed
@AndyScherzinger AndyScherzinger deleted the enh/noid/taskpro-optional-watermarking branch November 28, 2025 14:40
@AndyScherzinger AndyScherzinger added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement feature: TaskProcessing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants