Skip to content

Implement FolderFilteringAction/set update #1951

@quantranhong1999

Description

@quantranhong1999

Why

We would implement FolderFilteringAction/set update extension that allows users to cancel the filtering task.

/set update can only be performed on the status property, if and only if the status is waiting or inProgress.

["FolderFilteringAction/set",
  {
    "update": {
        "2034-495-05857-57abcd-0876664": {"status":"canceled"}
      }
   },
   "#0"
]

Would cancel the task:

["FolderFilteringAction/set",
  {
    "updated" : {"2034-495-05857-57abcd-0876664": null },
    "notUpdated": {}
   },
   "#0"
]

How

  • Implement FolderFilteringAction/set update (can take inspiration from EmailActionRecovery/set update)
    destroy would fail.
  • Contract tests

Note:

  • method does not require accountId (aligned with EmailRecoveryAction)
  • requires the Filter capability: com:linagora:params:jmap:filter
  • do not cancel tasks of other users
  • do not cancel other tasks type e.g. EmailRecoveryAction task

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions