-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add a boolean 'addWatermarking' attribute to taskprocessing tasks #56717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a boolean 'addWatermarking' attribute to taskprocessing tasks #56717
Conversation
f0f20ca to
d43d071
Compare
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, [ |
There was a problem hiding this comment.
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. 🤔
d43d071 to
9eca93c
Compare
a9c5926 to
8d0401f
Compare
kyteinsky
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
|
…ing tasks and pass it to ISynchronousWatermarkingProvider::process Signed-off-by: Julien Veyssier <[email protected]>
8d0401f to
b4f7fe2
Compare
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.