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

Updating dependencies in favor of Drupal 9 compatiblity #362

Merged
merged 14 commits into from
Dec 12, 2021

Conversation

navneet0693
Copy link
Contributor

@navneet0693 navneet0693 commented Nov 4, 2021

  1. Added "drupal/core-dev" for enabling PHPUnit tests. See: https://www.drupal.org/docs/develop/using-composer/starting-a-site-using-drupal-composer-project-templates#s-adding-drupalcore-dev

https://www.drupal.org/node/3176567

  1. Updated "drupal/drupal-extension" to "^4.1". And removed other behat dependencies as they will be installed with drupal-extension.

  2. Update "phpunit/phpunit" to "^9.1". See: https://www.drupal.org/project/drupal/issues/3127141

  3. Removed symfony/css-selector as it will installed as dependency of symfony/http-kernel

  4. Removed "roave/security-advisories" in favor of https://www.drupal.org/project/drupal/issues/3124260.

See: https://www.drupal.org/project/drupal/issues/3144544

  1. Changed mariadb version in docker-compose files because of Drupal 9 requirement's for database.

See: https://www.drupal.org/docs/understanding-drupal/how-drupal-9-was-made-and-what-is-included/environment-requirements-of-drupal-9#s-database-backend-and-other-hosting-requirements

  1. Removed mglaman/drupal-check and added upgrade_status module.
  1. See: https://www.drupal.org/docs/upgrading-drupal/how-to-prepare-your-drupal-7-or-8-site-for-drupal-9/upgrading-a-drupal-8-site
  2. See: https://www.drupal.org/docs/updating-drupal/how-to-prepare-your-drupal-7-or-8-site-for-drupal-9/deprecation-checking-and#s-use-the-drupal-8-branch-of-upgrade-status-for-full-site-reporting.
  3. Removing mglaman/drupal-check in favor of mglaman/phpstan-drupal with phpstan/extension-installer and phpstan/phpstan-deprecation-rules.
  4. See: https://drupal.slack.com/archives/CDDD98AMN/p1636715151099300.
  1. Temporarily added a branch of fork of palantirnet/drupal-rector from https://github.com/bluehorndigital/drupal-rector.
  1. See PR: PHPStan 1.0 and Rector 0.12 palantirnet/drupal-rector#185
  2. Added VCS repository in composer.json to add the 3248684 branch from Matt Glaman's fork
  3. The branch contains fixes that resolve the conflicts with mglaman/phpstan-drupal
  1. Temporary branch was removed in favor of the new release of drupal-rector.
  1. See: https://github.com/palantirnet/drupal-rector/releases/tag/0.12.0

Composer migration guides:

  1. https://drupalize.me/tutorial/update-drupal-versions-prior-88x-using-composer?p=3233
  2. https://www.drupal.org/docs/updating-drupal/migrating-the-composer-project-for-drupal-earlier-than-880

1. Added "drupal/core-dev" for enabling PHPUnit tests. See: https://www.drupal.org/docs/develop/using-composer/starting-a-site-using-drupal-composer-project-templates#s-adding-drupalcore-dev

2. Updated "drupal/drupal-extension" to "^4.1". And removed other behat dependencies as they will be installed with drupal-extension.

3. Update "phpunit/phpunit" to "^9.1". See: https://www.drupal.org/project/drupal/issues/3127141

4. Removed symfony/css-selector as it will installed as dependency of symfony/http-kernel
@navneet0693 navneet0693 force-pushed the feature/opensocial-11 branch from ee831c5 to f75074a Compare November 12, 2021 04:24
@navneet0693 navneet0693 force-pushed the feature/opensocial-11 branch from a45ffcd to d4831f2 Compare November 16, 2021 05:24
It fixes the conflicts with phpstan-drupal due to PHPStan versions. This fork resolves the conflicts.
navneet0693 added a commit to goalgorilla/open_social_docker that referenced this pull request Nov 19, 2021
1. Added composer.json similar to goalgorilla/drupal_social#362
2. Extends image from Drupal 9.1
3. Changed the way composer install command runs.
navneet0693 added a commit to goalgorilla/open_social_docker that referenced this pull request Nov 19, 2021
1. Added a new folder which will serve the purpose of doing D9 readiness development leaving the regular docker machines as it is.
2. Added composer.json similar to goalgorilla/drupal_social#362
3. Extends image from Drupal 9.1
4. Changed the way composer install command runs.
1. Changed dev to d9 tag for docker image.
2. Added Solr 8 configuration.
3. Upgraded selenium/standalone-firefox-debug image to install.
@navneet0693 navneet0693 force-pushed the feature/opensocial-11 branch from bc96cd0 to ed990f0 Compare December 7, 2021 16:13
docker-compose.yml Outdated Show resolved Hide resolved
@ronaldtebrake ronaldtebrake merged commit 86fd769 into master Dec 12, 2021
@ronaldtebrake ronaldtebrake deleted the feature/opensocial-11 branch December 12, 2021 11:36
Comment on lines +76 to +81
"scripts": {
"refresh": [
"rm -rf composer.lock vendor html/core html/modules/contrib html/profiles/contrib html/themes/contrib",
"@composer update -W --ansi"
]
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@navneet0693 Perhaps we can remove this since it's a command waiting for disaster for developers who do not grasp exactly what it does.

Your working copy of Open Social and themes will both be in html/*/contrib and so this command will also throw those away along with your local copy of git. This means that if you have unpushed work or unstaged changes, those changes will be gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants