Skip to content

migrate to ddev#773

Draft
vincent-gao wants to merge 10 commits into
developfrom
move-to-ddev
Draft

migrate to ddev#773
vincent-gao wants to merge 10 commits into
developfrom
move-to-ddev

Conversation

@vincent-gao

Copy link
Copy Markdown
Contributor

JIRA issue: https://digital-vic.atlassian.net/browse/SUPSSP-

Changed

Screenshots

…contrib.

- Adopt ddev/ddev-drupal-contrib: module repo is the composer root, `ddev poser`
  builds a disposable Drupal site into web/, `ddev symlink-project` symlinks the
  module into web/modules/custom/tide_core (live code edits, no sync step).
- Fold composer.dev.json into composer.json (require-dev, autoload-dev,
  allow-plugins, full installer-paths targeting web/); tide_test now comes from
  the monorepo, not a separate VCS repo.
- Pin dev-site core via DRUPAL_CORE=10.6.x in .ddev/config.yaml.
- Add services: Elasticsearch 7.17 add-on, Selenium Chrome add-on, custom
  ClamAV compose file (tide_core hard-depends on clamav module).
- Add `ddev install-site` command (testing profile + tide_core/tide_test,
  points clamav at the local ddev service).
- Point behat.yml/phpunit.xml.dist at web/ docroot and ddev service hostnames;
  phpunit unit suite now also covers modules/*/tests/src/Unit.
Replaced by DDEV (see previous commit). CircleCI scripts still reference
ahoy and need a follow-up rewrite.
SD-1341 (44f83b5) changed makeMenuName() to append term ids and truncate
the result to 32 characters, but the test still stubbed only getName().
Stub id() on mocked terms and update the provider to expect id-based,
truncated menu names. This was never caught because the legacy CI phpunit
suite path (./dpc-sdp/*/tests/src/Unit) did not cover module unit tests.
The tide_build job now provisions the same DDEV environment as local
development (start, poser, symlink-project, install-site), lints with
phpcs and runs the tide_core unit and Behat suites. Per-module Behat
suites and the export_config job are commented out pending follow-up.
Also excluded DDEV-generated files from phpcs.
@vincent-gao vincent-gao changed the title move to ddev - init migrate to ddev Jul 5, 2026
views.view.media_report and views.view.tide_content_report depend on
user.role.administrator, which tide_core only provides as optional config.
During a site installation with the tide profile, optional config is
deferred to the end of the install, so tide_site's install-time config
failed validation with an UnmetDependenciesException. As optional config,
the views are imported at the end of installation, after the role exists.

Updated tide_site_update_10005/10006/10007 to read the view config from
config/optional accordingly.

Verified with a fresh 'drush si tide' via the tide repo DDEV build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant