Feature Request: Trigger Instance for Policies
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
SUMMARY
When a policy cancels an action or a workflow, there's no way one can know the action/workflow was canceled by the policy. From the conversation we had in Slack, we'd like to have a trigger instance to be able to write a rule and do whatever is needed.
In addition to the trigger instance, it's a good idea to have a message being published when a workflow/action is canceled by a policy so StackStorm users can have an idea of what caused the cancellation.
ISSUE TYPE
- Feature Idea
STACKSTORM VERSION
st2 2.10.3, on Python 2.7.5
Contributor 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.
Research direction
Start by tracing how policies cancel actions and workflows, then examine the existing trigger-instance and message-publishing entry points. Define the behavior for identifying policy-caused cancellation and publishing its message; the work is done when users can write a rule from the trigger instance and see what caused the cancellation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100