Plugins: let another plugin ask a plugin to act, without polling through a hook
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 22/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend-api-design
Research direction
Start by reading HookSender in teme/contracts to see how notify, transform and collect are offered to the declaring plugin, then read docs/guides/developers/plugins/your-own-hooks.md. Compare that with how ContentWriter is offered to plugins and how plugin register() listeners receive hooks. The issue leaves the API shape open between declared actions and a Resolve hook, so this is design work before any patch.
Written by the indexing model from the issue text.
Description
A plugin can declare hooks of its own (Notification, Transform, Collect), but another plugin can only listen to them; nothing lets another plugin call into it. So when a scheduling plugin wants a sharing plugin to "share this item now", the sharing plugin has to declare a Collect hook and ask for requests on a timer (each minute), and the scheduling plugin has to return the same request every time until it is taken, with a key so it is planned once.
That works, but it polls for something an event would do, it delays every request by up to the poll interval, and the asking plugin can't be told the request was accepted or refused.
Expected: a way for a plugin to publish a small declared action (a name, a typed payload, a capability needed to ask) that another plugin, which requires it, may call, and which runs as the caller's person through the receiver's own checks and returns an accepted or refused answer, much as ContentWriter is offered to plugins. Or at least a hook the sender can raise for an event it wasn't listening for: the receiving plugin's register() listens, and the call returns the first listener's answer (a Resolve hook, raised by another plugin).
Where: teme/contracts (HookSender offers notify, transform and collect for the declaring plugin only), docs/guides/developers/plugins/your-own-hooks.md.
🤖 Generated with Claude Code
- Dominant language
- PHP
- Stars
- 1
- Forks
- 1
- Avg merge
- 1h 40m
- Merged PRs (30d)
- 143
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temecms/teme
-
area/admin type/enhancement when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
area/media type/enhancement when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area/admin type/bug when/soon
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
area/import type/documentation when/soon
Difficulty 2/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area/admin area/import type/bug when/later
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
2DAW-CarlosIII/eportfolio_g5#35 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
2DAW-CarlosIII/eportfolio_g4#33 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
2DAW-CarlosIII/eportfolio_g1#34 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
QuantConnect/Documentation#2940 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
e0ipso/simple_oauth_21#63 ·
Maintainers usually reply within 1 day