Problem/Motivation

In #3215045: [Duplicate] Highlight obsolete module's status at admin/reports/status page, providing warning and link with explanation we discovered that there were 2 themes who used experimental: true instead of lifecycle: experimental in their .info.yml. We're changing that in issue #3250585: Highlight deprecated modules and themes at admin/reports/status page, providing warning and link with explanation.

However unlikely: There could be Contrib out there who also use experimental: true therefore we need a nice deprecation for this.

Exactly for that this issue was opened.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3250342

Command icon 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

Spokje created an issue. See original summary.

spokje’s picture

spokje’s picture

Issue summary: View changes
spokje’s picture

Issue summary: View changes
quietone’s picture

spokje’s picture

Thanks @quietone

Turns out there are uses of 'experimental: true' in contrib.

We'll file issues in those modules queues when we start this issue I suppose?

spokje’s picture

Title: [PP-1] Deprecate "experimental: true" in .info.yml » Deprecate "experimental: true" in .info.yml
Status: Postponed » Active

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

spokje’s picture

Assigned: Unassigned » spokje
Status: Active » Needs work
spokje’s picture

Assigned: spokje » Unassigned
Status: Needs work » Needs review

smustgrave made their first commit to this issue’s fork.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Rebased as the MR was unmergable it said.

All the tests appear to be green so think this good.

catch’s picture

Feels bad asking (and too late to reduce any work) but do we really need test coverage for this one?

spokje’s picture

Always unsure about test coverage, so my default is to add it.

If we can do without, I'm happy to remove it from the MR.

longwave’s picture

Given that we are only adding to one method, maybe it only needs a small unit test that covers the deprecation?

Also, is there a better place to do this in InfoParserDynamic::parse()?

quietone’s picture

Status: Reviewed & tested by the community » Needs review

Change is failing tests. :-(

spokje’s picture

Assigned: Unassigned » spokje
Status: Needs review » Needs work
spokje’s picture

Assigned: spokje » Unassigned
Status: Needs work » Needs review

Let's see if this works as minimal testing

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

See minimal fixed the test cases.

@catch I imagine the "Legacy experimental test" check is for a test theme so it doesn't run that code? That's what I saw at least.

spokje’s picture

xjm’s picture

Status: Reviewed & tested by the community » Needs work

This is ready overall, but let's remove that out-of-scope change with the typehint. Thanks!

rpayanm made their first commit to this issue’s fork.

rpayanm’s picture

Status: Needs work » Needs review
xjm’s picture

Status: Needs review » Reviewed & tested by the community

Thanks @rpayanm! That's exactly the fix we need.

xjm’s picture

Status: Reviewed & tested by the community » Fixed

Since I was only RTBCing a very small change, I'm comfortable committing this myself even though I re-RTBCed it.

Committed to 10.1.x, and published the change record. Thanks everyone!

  • xjm committed 94230c5a on 10.1.x
    Issue #3250342 by Spokje, smustgrave, rpayanm, quietone, xjm, catch,...

Status: Fixed » Closed (fixed)

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