-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(TaskProcessing): user-facing error messages #55713
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
feat(TaskProcessing): user-facing error messages #55713
Conversation
1cbb10f to
bc0609a
Compare
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
…r messages Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Co-authored-by: Anupam Kumar <[email protected]> Signed-off-by: Marcel Klehr <[email protected]>
bc0609a to
2b93d2c
Compare
to make it easier to use this across nextcloud versions Signed-off-by: Marcel Klehr <[email protected]>
2b93d2c to
3f52766
Compare
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.
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]>
This allows for cutting them to longer lengths Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
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
3. to review, feature component)stable32)