Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Sep 2024 at 01:08 UTC
Updated:
17 Jan 2025 at 00:57 UTC
Jump to comment: Most recent
Comments
Comment #3
quietone commentedComment #4
andypostLooks unused for real
Comment #5
quietone commentedThese appear to be unused as well.
\Drupal\Tests\user\Kernel\Views\HandlerFilterPermissionTest::$columnMap
\Drupal\KernelTests\Core\Entity\EntityCrudHookTest::$ids
\Drupal\Tests\system\Functional\System\PageTitleTest::$savedTitle
\Drupal\Tests\Core\Batch\PercentagesTest::$testCases
\Drupal\views_ui\ViewUI::$renderPreview
Comment #7
quietone commentedIt seems I did not same some changes to the Issue summary
Comment #8
quietone commented@annmarysruthy, thanks for working on the MR. To complete this we also need to update the Issue Summary with some evidence that it is safe to remove these. Even if the current tests pass we want to look at the history to make sure that some testing hasn't been lost over the years.
I have started that for the 2 variables that started this, can you add the same details for the rest? I use git blame to find when the variable was added and then use the GitLab interface to add links to the commit. This information helps the reviewers and committers.
Comment #9
annmarysruthy commentedComment #10
annmarysruthy commentedComment #11
annmarysruthy commentedComment #12
quietone commented@annmarysruthy, thanks!
I am working on adding a link to the commits.
Comment #13
quietone commentedComment #14
quietone commentedTime for reviews.
Comment #15
smustgrave commentedSeems straight forward.
Searched for some of the terms and verified where they're currently used they're actually used.
Comment #16
larowlanThanks @annmarysruthy that's awesome git archeaology. I updated one issue link and reviewed all of these.
I think we're good except for
\Drupal\views_ui\ViewUI::$renderPreviewbecause technically public properties are an API.If we want to remove that we have to write something like \Drupal\Core\DependencyInjection\DeprecatedServicePropertyTrait to use a magic __get to warn the user they're accessing a deprecated property.
APIs are forever 😢
I think that should be split into it's own issue.
Thanks everyone for the work on this one so far.
Comment #17
quietone commentedI thought I commented about renderPreview.
I think we make an exception for
\Drupal\views_ui\ViewUI::$renderPreviewand just remove instead of deprecating it. All usages of it in core were removed in Jun 2013 before Drupal 8 was released. in this commit.Comment #18
larowlanOk I'll add a CR and commit today
Comment #19
quietone commentedThanks, I started the changed record.
Comment #20
larowlanCommitted to 11.x and published the change record - thanks!