As an administrator, I'd like to resolve or delete comments in workflows by comment reason only

Description

The comment WOH only supports resolving and deleting comments if you specify both reason and description (both of which must match):

https://docs.opencast.org/r/3.x/admin/workflowoperationhandlers/comment-woh/

If you specify reason only in the operation, you get this error:

2017-08-12 12:23:41,859 | WARN | pool-79-thread-11 | (CommentWorkflowOperationHandler:192) - Not resolving comment with 'null' text and 'EVENTS.EVENTS.DETAILS.COMMENTS.REASONS.CUTTING' reason as it doesn't exist.

which removes the possibility of varying the description text for different purposes.

It should be possible to use a resolve operation like this:

Activity

Show:
Stephen Marquard
August 12, 2017, 11:15 AM

Some additional changes to consider:

  • The WOH doesn't allow adding duplicate comments, but this might be appropriate in some cases. Should probably have a configurable WOH option (e.g. "allow-duplicate").

  • The resolve/delete operations will match only one comment. With multiple comments with the same reason but different text, the WOH should be able to delete or resolve multiple comments.

Fixed and reviewed

Assignee

Stephen Marquard

Reporter

Stephen Marquard