apache / apache/openwhisk

entity lifecycle management: handling deletion of referenced entities

Open
#1,047 3 comments 0 reactions 0 assignees View on GitHub
API error handling
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

1. Trigger and Action entities may be referenced in Rules.
2. Actions may by referenced by Sequences.

What should happen when a referenced entity is deleted (or an entitlement change occurs to a referenced entity)?

Options include:
- Delete the referencing entity (e.g., delete Rule).
- Disable the referencing entity (e.g., disable Rule).
- Don't allow deleting the referenced entity (e.g., the user cannot delete Trigger/Action until they delete Rule).

A rule could be automatically disabled if any of the following occur:
- A referenced trigger or action is deleted (or generally "disabled").
- The owner of the rule loses activate privilege on the referenced trigger.
- The owner of the rule loses activate privilege on the referenced action.

Similarly, a sequence could be automatically disabled if any of the following occur:
- A referenced action is deleted (or generally "disabled").
- The owner of the sequence loses activate privilege on the referenced action.

Since actions may be a sequence, where applicable, a recursive check may be necessary.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.