Problem/Motivation
In #3587416: Update ddev plugins and gitignore, we added some DDEV tooling to make it easier to set up Elasticsearch Connector for contributing.
In a similar issue for another module, @boromino and @mparker17 came up with a script to further simplify setting up the module for development: a custom ddev reset-test-env command to install dependencies, re-install Drupal and the module, and display a link that contributors can use to log into the test site.
This seems like a useful addition to Elasticsearch Connector, so lets port that custom command to this module.
Proposed resolution
Add a .ddev/commands/host/reset-test-env file that looks like...
#!/bin/bash
ddev poser
ddev exec "cd web/core && yarn install"
ddev symlink-project
ddev drush -y site:install standard
ddev drush -y pm:install elasticsearch_connector_test facets
ddev drush -y elasticsearch_connector_test:add-test-content
ddev drush -y search-api:index test_elasticsearch_index
ddev drush -y cr
ddev drush -y uli
Once this issue is merged, update the documentation accordingly.
Remaining tasks
Merge request for 9.0.x- merge request !221 created by @mparker17 in #3Merge request for 8.0.x- merge request !220 created by @mparker17 in #2Community/maintainer review- skipped by @mparker17 in #4Commit to 9.0.x- done by @mparker17 in #5Commit to 8.0.x- done by @mparker17 in #6Update the docs- done by @mparker17 in #7- Release 9.0.x
- Release 8.0.x
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork elasticsearch_connector-3588301
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 #4
mparker17Merge requests created; testbot is happy with them. I'm going to skip community/maintainer review since the patches were written by a maintainer. Merging shortly.
Comment #7
mparker17Merged to both branches, and I've updated the documentation. I will update this issue when this change is released.
Comment #9
mparker17(fix typo in issue summary)