Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bobbygryzynger created an issue. See original summary.

bobbygryzynger’s picture

bobbygryzynger’s picture

Status: Active » Needs review
Berdir’s picture

Status: Needs review » Needs work

Thanks. Note that I will not commit this soon as this is just a deprecation message and would mean that pathauto then requires 8.6. That is not going to happen soon just for a deprecation, especially since 8.5 still receives security updates until 8.7 is released.

Also, this should then also update the version .info.yml file, setting to needs work for that.

bobbygryzynger’s picture

@berdir no problem, makes sense. I'm mostly just trying to prevent this message from popping up in my test suite.

The attached patch bumps the version to 8.6.

bobbygryzynger’s picture

Status: Needs work » Needs review
hugronaphor’s picture

Status: Needs review » Needs work
hugronaphor’s picture

By now, there are more related context deprecation. context has to be replaced with context_definitions in annotation classes.

As of Drupal 8.7 with default core/phpunit.xml.dist the tests are failing and pretty much holds our dev workflow.

Maybe a new major(not sure this is how you call it) release can be created which will require Drupal 8.7?

idebr’s picture

Category: Bug report » Task
Status: Needs review » Reviewed & tested by the community

Drupal 8.5.x is no longer supported, so this issue can now be resolved while staying in sync with Drupal core supported versions.

The patch applies cleanly and solves the deprecation error.

Berdir’s picture

Status: Reviewed & tested by the community » Needs work

Except it can't, as the failing test shows. context_definition is an 8.7 deprecation :)

The patch needs to be updated to set 8.7 as the minimum version and I don't want to commit that yet.

> As of Drupal 8.7 with default core/phpunit.xml.dist the tests are failing and pretty much holds our dev workflow.

I'd strongly recommend to not rely on the default deprecation settings for projects. Those defaults are for drupal core, not projects built with it. These deprecations exist for a reason, contrib modules have no choice but to wait 6 month or so after new core version is out until they update their code, or they break the previous core version, which is problematic e.g. when you need to do a security release.

Kristen Pol’s picture

Issue tags: +Drupal 9 compatibility

Per a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.

Berdir’s picture

Berdir credited Sahana _N.

Berdir credited andreyjan.

Berdir’s picture

Berdir’s picture

  • Berdir committed 6aa4b7c on 8.x-1.x
    Issue #3004108 by bobbygryzynger, Berdir, hugronaphor, andreyjan, Sahana...
Berdir’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Sahana _N’s picture