-
Notifications
You must be signed in to change notification settings - Fork 46
Starshot should include ECA, to allow custom business logic to be implemented in the admin UI #99
Comments
I second that proposal and want to bring 2 more modules to the list for consideration, similar to the
When it comes to the library, also mentioned above by @mandclu-acquia , I'd suggest to only use them as recipes and not the provided archives. The latter have been a "dirty hack" from more than 2 years ago, and they wanted to fill in until something like recipe was available, which is the case now. So, as soon as Drupal 10.3 is available, the importable archives are likely to disappear silently and only recipes should be supported then. The missing ones will be converted from archive to recipe very soon anyways. |
I'm certainly in favor of adding ECA, but only when there's a recipe that uses it to deliver something useful and tangible. We shouldn't add the plumbing until we need it for a user-facing feature. :) |
This is a great approach @phenaproxima. I'd be happy to provide a set of recipes. The following list seems to be of general interest to the Starshot audience, subject to be extended:
When it comes to notifications, they would be sent by email and go to the email address configured in /admin/config/system/site-information, until recipes allow for user input when they are applied, then we can ask for individual addresses from the site owner. Other notification channels (Slack, Discord, etc.) would also be possible, but that's probably something for later. |
Sounds great @jurgenhaas, I am ready to test a PR, as soon as it's ready. |
That all sounds good, but let's do this in smaller chunks. How about we only implement one case (notifications of new comments), to start with? Let's do that directly in the starshot_blog recipe, since that enables commenting on blog posts. Seems like a natural place to add notifications for comments. I'm not sure notifications should go to the site email, though; why not send them to the author of the blog post? If you want to do a PR of that functionality only, I would love to take a look! |
Sure, starting with a single one to see how it goes, we can then add others step by step. The notification on comment recipe already exists, please have a look at https://gitlab.lakedrops.com/drupal/recipes/notify_new_comments This is currently sending to the site email, but I like your idea of the node author and will add that too. Will ping you when it's available. |
The above recipe is now available as v2 which notifies both, the site owner and the content author. Note 1: The site needs to be properly configured to be able to send emails, that's not part of the recipe. Note 2: I'm now starting the PR for adding this to the project here. |
I've added #115 to propose including a recipe to set up the site to send HTML emails. Happy to work on it if there's agreement it would be worth including. |
In the same way that the goal for Experience Builder is for site builders to fully customize their theme without having to write and upload files to the site, the popular ECA module allows site builders to customize the business logic of their site using BPMN.io as a visual interface.
The growing community around the ECA ecosystem has also defined a robust library of existing models that can be used as a starting point, and there is discussion about converting them to recipes.
I propose that Starshot should require the following modules in the composer.json file:
There could also be one or more recipes included to set up a model, for example to use ECA to send email notifications during specific changes in the content moderation workflow.
The text was updated successfully, but these errors were encountered: