Skip to content

Conversation

@marcelklehr
Copy link
Member

See nextcloud/server#55741 for the server-implementation.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements the ITriggerableProvider interface for AppAPI task processing providers, allowing providers to be externally triggered. This enhancement adds triggering capabilities to existing task processing providers by extending the anonymous provider class to implement the new interface.

  • Adds ITriggerableProvider interface implementation to anonymous ExApp providers
  • Implements a trigger() method that makes HTTP requests to external apps
  • Updates constructor dependencies to support the triggering functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

looks good to me, if it is working good

@marcelklehr
Copy link
Member Author

Mh, after a test I can say with confidence: it's not working :D
This change introduces a circular dependency and causes an infinite loop :/

@marcelklehr
Copy link
Member Author

Tested and works

@marcelklehr marcelklehr merged commit 1ff3441 into main Oct 22, 2025
33 of 34 checks passed
@marcelklehr marcelklehr deleted the feat/taskprocessing-trigger-endpoint branch October 22, 2025 12:04
marcelklehr added a commit to cloud-py-api/nc_py_api that referenced this pull request Oct 22, 2025
See nextcloud/app_api#683 for the corresponding
AppAPI PR.

Changes proposed in this pull request:

* Add a `trigger_handler` param to set_handlers() that will be called
when the /trigger endpoint is requested by AppAPI.

---------

Signed-off-by: Marcel Klehr <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants