- Issue created by @andrewmacpherson
- π»π³Vietnam tra.duong
I have take a look at the status of color module:
- A "deprecated" link is displayed on the Extend page => YES
- They are also mentioned in a deprecated section on the Status Report page => YES
- The Upgrade Status contrib module mentions deprecated modules => YES
System:
- Drupal 9.5.4-dev
- PHP: 8.1.14
- Mysql: 5.7.29Note: It also appeared on uninstall module page(/admin/modules/uninstall).
- π¬π§United Kingdom andrewmacpherson
I've discovered a few interesting things after digging around...
My website's composer.lock and composer-manifest.yml both have an entry to require
drupal/color
, and git blame tells me that this appeared when I upgraded to D9.5.x a few days ago. It isn't a requirement of my root composer.json.Aside: I also have the
drupal/environment_indicator
contrib module as a requirement of my root composer.json. Currently I have version 4.0.5 which listsdrupal:color
as a dependency in the module info file, but the contrib project does not have a composer.json of it's own.After I disable the Environment Indicator and Color modules, then remove them using composer, the core color module IS then described as deprecated on the Extend page. Now I see a deprecated link, where I didn't before.
The funnny thing is, I could also see that the the CKEditor contrib module is installed, and it does show a deprecated link, even though the contrib Color module does not.
Looking at the CKEditor and Color module files...
I have two versions of these present on my filesystem: the ones from Drupal core, and the contrib versions. Neither are explicitly mentioned as root requirements in my composer.json, but I see them in my composer.lock and composer-manifest.yml.
The Color and CKEditor versions inside web/core/modules have the lifecycle:deprecated line.
The CKEditor version in web/modules/contrib has the lifecycle:deprecated line
The Color module version in web/modules/contrib does not have the lifecycle:deprecated line.
Well now I'm confused. I follow the news, so I already knew that the Color module was deprecated in D9.5, and has been removed from D10. So I was puzzled that the Status Report page didn't complain about it.
After digging around, I think the deprecation status is working fine in Drupal core, for the core versions of deprecated modules.
However, the contrib versions of Color and CKEditor modules are behaving differently to each other.
My hunch is that the CKEditor module got the lifecycle:deprecated message added BEFORE the contrib project was created, but the Color module got this line added AFTER the contrib project was created.
Upshot: this was mightily confusing, but I'm not sure anything is actually broken, at least in core. So I'm reclassifying this as a support request.
Something in the orchestration of this core-to-contrib migration has gotten mixed up, resulting in confusing messages. Either the contrib Color module or the contrib CKEditor module is saying the "wrong" thing, but I'm not sure what they're supposed to be saying. I haven't looked at the other new contrib projects for deprecated modules.
I'm going to bed. I'll let somebody else decide which project to move this issue to :-)
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
My guess is the colour module in contrib has removed the deprecated lifecycle status from it's info file
In which case I think this is works as designed, because composer has resolved the issue for you by flavouring the contrib version when colour was required by environment indicator
- Status changed to Closed: outdated
over 1 year ago 3:00pm 16 June 2023