Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
adding change records for all @deprecated constants in .module files
Comment | File | Size | Author |
---|---|---|---|
#13 | 2873768-13.patch | 11.71 KB | harsha012 |
#7 | 2873768-7.patch | 12.82 KB | WidgetsBurritos |
#7 | interdiff-5-7.txt | 1.47 KB | WidgetsBurritos |
#5 | drupal-change_record_deprecated-2873768-5.patch | 10.29 KB | dhopki12 |
Comments
Comment #2
dhopki12 CreditAttribution: dhopki12 commentedComment #3
dhopki12 CreditAttribution: dhopki12 commentedAdding patch
I added an "@see https://www.drupal.org/node/2831620" message to each constant in each file listed in the original change record. After adding this patch, I reviewed other *.module files in core and found 3 more with constants listed as deprecated which are not included in the original record.
I tracked down the following change orders and am going to submit a revised patch after updating these files with appropriate @see statements as well.
Have not found the change order referencing image.module constants
Comment #4
dhopki12 CreditAttribution: dhopki12 commentedComment #5
dhopki12 CreditAttribution: dhopki12 commentedAdding new patch addressing taxonomy.module and node.module file constants. Still have not found the change order referencing image.module constants.
Comment #6
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commented@dhopki12,
From the looks of it, this is the CR for image.module:
[#1820974]
I don't have a chance right this second to update the patch, but I can either jump on it this weekend sometime, or if you wanna update your patch, I think the rest of this looks pretty good.
Comment #7
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedThis patch adds the CR for the image module. I believe this to be the last module file needed in this patch.
That said, the image CR (https://www.drupal.org/node/1820974) merely makes mention of the deprecation of IMAGE_STORAGE_* modules and doesn't necessarily provide a detailed explanation of which modules were deprecated as was done for other modules, but it did seem to get approved as part of the removal itself: #2637630: Deprecate unused constants in image.module.
Either way, it would be easy enough to modify the CR if anyone sees the need to do so.
Comment #8
pobster CreditAttribution: pobster at ArcadeGeek LTD for Rackspace commentedLGTM +1
Comment #9
Mile23Verified that all the @deprecated constants in *.module files are covered.
Comment #11
catchThis is failing DrupalCs checks - tl;dr there shouldn't be an empty line between the @deprecated and the @see:
(and etc.)
Comment #12
Mile23I think you mean there shouldn't be an extra line *after* @see.
Comment #13
harsha012 CreditAttribution: harsha012 as a volunteer and at Red Crackle commentedre-roll the patch against 8.5x and fixed the spacing issue
Comment #14
Mile23The patch in #13 applies and doesn't show any errors in phpcs.
Do we still need to modify the CR as per #7?
If we do, we'd want to be sure and link it back to this issue.
Comment #15
angel.hComment #16
angel.hAll fine.
Comment #17
Gábor HojtsyI agree with #7, added this sentence to the image CR: https://www.drupal.org/node/1820974/revisions/view/9222920/10671248
Also checked that all the links point to the correct change records for each constant linked.
Comment #20
Gábor HojtsyThanks all, committed to 8.5.x and cherry-picked to 8.4.x.
Comment #22
kay_v CreditAttribution: kay_v as a volunteer commentedRemoving parent issue per conversation with @xjm at Drupalcon Nashville Mentored Sprint prep. Her recommendation to do so was based on a few points that made sense to all of us in the discussion, namely:
- so many child issues makes this parent unwieldy
- search filters will allow people needing to refind closed children