-
Notifications
You must be signed in to change notification settings - Fork 172
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
Some fixes for Drupal 11.0.x compatibility #4354
base: 2.x
Are you sure you want to change the base?
Conversation
Update: as of last push, fixed many errors, but still getting some from:
Also will need
|
Only test failing at this point seems to be |
d805588
to
b5cfe48
Compare
Another option, probably better - once all tests pass, revert changes to info.yml files and merge this, so that the other fixes don't get stale. |
ecbf9e9
to
4658533
Compare
4d36404
to
eeabfce
Compare
b924b34
to
eef0ef2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should update the tests on https://github.com/GetDKAN/recommended-project/tree/11.0.x since we don't need PHP 8.1 or PHP 8.2 any more.
@@ -8,10 +8,13 @@ | |||
use Drupal\datastore\PostImportResult; | |||
use Drupal\datastore\Service\ResourceProcessor\DictionaryEnforcer; | |||
use Drupal\datastore\Service\ResourceProcessor\ResourceDoesNotHaveDictionary; | |||
use Drupal\Core\Database\Query\SelectInterface; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My IDE tells me these changes are unneeded.
@@ -24,6 +24,7 @@ | |||
use Psr\Log\LoggerInterface; | |||
use Symfony\Component\DependencyInjection\Container; | |||
use Symfony\Component\DependencyInjection\ContainerInterface; | |||
use Symfony\Component\EventDispatcher\EventDispatcher; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher is now an unneeded use.
@@ -24,6 +24,7 @@ | |||
use Psr\Log\LoggerInterface; | |||
use Symfony\Component\DependencyInjection\Container; | |||
use Symfony\Component\DependencyInjection\ContainerInterface; | |||
use Symfony\Component\EventDispatcher\EventDispatcher; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher is now an unneeded use.
|
Fixes #4356
Fixes to get DKAN build-able and passing with Drupal 11.0. I still haven't gotten the CI to work, because mysql 8.0, at least in ddev, doesn't allow the db user to turn off strict mode. MariaDB works fine. Need to decide whether to fix what's going on in mysql or switch to mariadb somehow in CI. But I'd like to get these changes in before they get stale.
The circleCI changes ended up not being needed since I couldn't get the Drupal 11 job to run anyway, but I left them in because they're probably useful in the future.
To test Drupal 11:
ddev config --auto
,ddev get getdkan/ddev-dkan
ddev dkan-init --project-version=11.0.x
ddev dkan-site-install
ddev dkan-phpunit
Changes of note: