Skip to content

Conversation

@marcelklehr
Copy link
Member

@marcelklehr marcelklehr commented Oct 13, 2025

Summary

Currently the task processing API only had internal error messages that are not safe to show to the user. This PR extends it so that providers can also set user-facing error messages.

Checklist

@marcelklehr marcelklehr added this to the Nextcloud 33 milestone Oct 13, 2025
@marcelklehr marcelklehr added the 3. to review Waiting for reviews label Oct 13, 2025
@marcelklehr marcelklehr force-pushed the feat/taskprocessing/user-facing-error-message branch from 1cbb10f to bc0609a Compare October 14, 2025 14:51
@marcelklehr marcelklehr force-pushed the feat/taskprocessing/user-facing-error-message branch from bc0609a to 2b93d2c Compare October 14, 2025 14:58
@marcelklehr marcelklehr marked this pull request as ready for review October 14, 2025 14:59
@marcelklehr marcelklehr requested review from a team and provokateurin as code owners October 14, 2025 14:59
@marcelklehr marcelklehr requested review from ArtificialOwl and come-nc and removed request for a team October 14, 2025 14:59
to make it easier to use this across nextcloud versions

Signed-off-by: Marcel Klehr <[email protected]>
@marcelklehr marcelklehr force-pushed the feat/taskprocessing/user-facing-error-message branch from 2b93d2c to 3f52766 Compare October 15, 2025 09:20
Copy link
Contributor

@oleksandr-nc oleksandr-nc left a comment

Choose a reason for hiding this comment

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

Should we add Consumable attribute?

Interfaces, Enums and classes that have the OCP\AppFramework\Attribute\Consumable attribute, must only be consumed by apps and can not be implemented by apps themselves. This means the server side can extend the interface with new methods or reduce returned types of existing methods without it being consider an API break.

Reference: https://docs.nextcloud.com/server/latest/developer_manual///digging_deeper/api.html#php-public-api

Signed-off-by: Marcel Klehr <[email protected]>
@marcelklehr marcelklehr merged commit 99d6276 into master Oct 30, 2025
198 of 200 checks passed
@marcelklehr marcelklehr deleted the feat/taskprocessing/user-facing-error-message branch October 30, 2025 11:29
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants