System Flows e.g. for Invite eMails #18419
Replies: 4 comments 7 replies
-
@rijkvanzanten I would be happy to get a basic feedback (👍 / 👎 ) whether this idea is of interest or not. Maybe it was already discussed or is against basic principles regarding the direction directus should go. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Heya! Thanks for opening this feature request! This feature request has received over 15 votes from the community. This means we'll move this feature request to the Under Review state! The Core team will schedule a meeting to review this request as soon as possible. The discussion will then be approved or denied. You may or may not be invited to join this meeting with the core team. For more information, see our Feature Request Process. |
Beta Was this translation helpful? Give feedback.
-
Consider breaking this into two RFCs:
|
Beta Was this translation helpful? Give feedback.
-
Summary
Instead of hard coded business logic in directus source, parts could be transferred to the powerful flows system, allowing users to adapt the logic to their needs. A set of "system flows" would ship with directus - like
directus_
system collections to have an out of the box working configuration.But if needed, the flows / business logic can be modified to match project specific needs (see design details).
Basic Example
One first use cases in mind are the user invite and password reset mails. As stated in #8239, #7372, #16673, #15590, #17485, #3115, and probably more, users have the need for customizing system mails e.g. subject or an i18n body.
A brief example on how this could work for user invite mails:
Event Hook
would be extend withusers.invite
, which provides as payload data which was before handed into the template (JWT, and email). Maybe also the role the user gets assigned, or key of the bare user record in the db...Motivation
This feature could address a wide range of needs and brings new flexibility. One first use cases in mind are the user invite and password reset mails. System flows could enable users to:
And some bricks of this idea like duplicating flows are features already requested by users (see #14405)
Detailed Design
I am happy to spend time on a destails system design if the idea in general is of interest.
Requirements List
Must Have:
Event Hook
likeusers.invite
orauth.password.reset
Should Have:
Could Have:
Won't Have:
Drawbacks
I am happy to spend time on defining drawbacks if the idea in general is of interest.
Alternatives
Each requirement could be addressed separately in a different scope, like i18n for mails as proposed via translatable apis (see #17485)
Adoption Strategy
I am happy to spend time on an adoption strategy if the idea in general is of interest.
Unresolved Questions
Honestly, a lot. But as said, I am happy to spend time on this if there is a general interest in the idea. Maybe the idea of system flows was already discussed and declined...
Beta Was this translation helpful? Give feedback.
All reactions