Problem/Motivation
ECA is getting popular although as of today it still has far less installations than Rules module. However, ECA seems to have an upward trending install count, but Rules is trending downward. As of today, Rules has a compatible Drupal 11 version. So Rules integration will remain supported.
Proposed resolution
Implement the ECA integration in a new submodule.
Remaining tasks
- Code a new role_expire_eca submodule
- Write tests for the new submodule
- Add documentation on role_expire main README file
Original report by kopeboy
Rules is not D10 ready yet, while a new substitute module ECA has emerged, which is already stable, has even more features and better admin UI.
I would suggest you have a look into that and put the Rules packed with this module in a submodule for better organization.
Issue fork role_expire-3362875
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rcodinaI agree ECA integration would be awesome. Patches are welcome. However, I would like #3036511: Add a new configurable email notification system to be committed first.
Comment #3
rcodinaRules integration is moving to a submodule with the new Drupal 11 compatible version (4.x branch).
Comment #4
rcodinaComment #5
rcodinaComment #6
drupgirl commented+1 for eca integration
Comment #7
rcodinaComment #8
rcodinaComment #9
rcodinaComment #11
kuzyawkk commentedComment #12
plasticpippo commented+1 for ECA integration
if you integrate it with ECA there is no need for #3036511: Add a new configurable email notification system as it can be done within ECA
Comment #14
kuzyawkk commentedYes, I added implementation for the ECA module similar to the Rules module.
I did not add any additional features on my own.
Comment #15
_tarik_ commentedI see pipelines found problems with phpcs and phpstan, and the tests are missing, while they are mentioned in the issue description.
I have some free time to complete this task, so I've assigned it to myself.
Comment #16
_tarik_ commentedI’ve finished my changes here, so the issue is ready for review.
I did these steps in the scope of my work:
1. Manually tested changes that did @kuzyawkk (testing environment: eca version 2.1.13, Drupal core - 10.5)
2. Fixed errors from phpcs and phpstan
3. Added tests that cover both plugins: role_expire_eca_remove_expire_time and role_expire_eca_set_expire_time
Comment #17
rcodinaAdded missing features to match Rules module integration.