Problem/Motivation
Found these while working on #3477599: Fix Drupal.Commenting.VariableComment.Missing.
Steps to reproduce
Proposed resolution
Remove the following class properties
\Drupal\Tests\block\Functional\BlockUiTest::$regionsadded in #1535868: Convert all blocks into plugins, in this commit\Drupal\Tests\locale\Functional\LocaleUpdateCronTest::$batchOutputadded in #1998056: Automatically update interface translations using cron, in this commit.\Drupal\Tests\user\Kernel\Views\HandlerFilterPermissionTest::$columnMapThe variable was added on file creation in #1872876: Turn role permission assignments into configuration. in this commit\Drupal\KernelTests\Core\Entity\EntityCrudHookTest::$idsvariable was added on file creation in #709892: Complete entity CRUD hook invocations in this commit\Drupal\Tests\system\Functional\System\PageTitleTest::$savedTitlethe variable was added on file creation in #2389455: Clean-up system module test members - ensure property definition and use of camelCase naming convention in this commit\Drupal\Tests\Core\Batch\PercentagesTest::$testCasesadded in #2003736: Convert system module's Batch unit tests to phpunit in this commit. Actually leftover when converting to a data prodiver.\Drupal\views_ui\ViewUI::$renderPreview, variable added in #1798574: Refactor Views UI to be a form controller in this commit. Usages removed in #1983164: Entity Forms in ajax requests don't find the route, commit
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3477600
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:
- 3477600-remove-2-unused
changes, plain diff MR !9677
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!