Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add removal_action to remove settings.ddev.redis.php on add-on removal #15

Merged
merged 2 commits into from
Jul 20, 2023

Conversation

rfay
Copy link
Member

@rfay rfay commented Jul 20, 2023

The Issue

In DDEV v1.22.0+ there is a removal_actions section of the install.yaml, specifically for things like what this add-on does, adding settings config into sites/default.

How This PR Solves The Issue

Do the cleanup of sites/default/settings.ddev.redis.php on removal

Manual Testing Instructions

On a drupal site:

ddev get https://github.com/rfay/ddev-redis/tarball/20230720_post_removal_action
Verify that sites/default/settings.ddev.redis.php exists
ddev get --remove redis

You should have no sites/default/settings.ddev.redis.php any more.

Make sure it doesn't break on DDEV v1.22.6 (which should ignore that extra section)

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

@rfay
Copy link
Member Author

rfay commented Jul 20, 2023

Manually tested with v1.21.6 and v1.22.0, all seems to work correctly.

@rfay rfay merged commit e4aaccd into ddev:main Jul 20, 2023
2 checks passed
@rfay rfay deleted the 20230720_post_removal_action branch July 20, 2023 17:13
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant