Problem/Motivation
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3442713
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:
- 3442713-remove-deprecated-code
changes, plain diff MR !7657
Comments
Comment #4
catchStill a couple of unit test failures.
Comment #5
longwaveAlso lots more:
Comment #7
smustgrave commentedTried to address additional ones but could use some feedback about the KeyValueStorage
Comment #8
catchThe KeyValue changes look sensible - removing methods from the non-revisionable storage and adding them to the ones that are.
Comment #9
arun.k commented@ binoli-lalani @longwave kindly please provide which tool you are using to check the deprecated code. so i can review this code. Because drupal-check is not working in drupal 11 setup
Comment #10
catch@Arun.k there is no special tooling, we are just grepping the relevant directories, like:
Code that should be 'removed from drupal:11.0.0' is in scope for these issues. Code that says 'removed from drupal:12.0.0' should be left where it is for now.
Comment #11
arun.k commentedThankyou @catch for the knowledge and @smustgrave I have Verified and tested Merge request !7657 3442713-remove-deprecated-code on Drupal Version 11.x-dev & PHP Version 8.3
Testing Steps:-
1). Install Drupal 11.x version.
2). /projects/drupal/ git remote add drupal-3442713 https://git.drupalcode.org/issue/drupal-3442713.git
3). git fetch drupal-3442713
4). git checkout -b '3442713-remove-deprecated-code' --track drupal-3442713/'3442713-remove-deprecated-code'
5). use vendor/bin/phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueContentEntityStorage.php
6). use vendor/bin/phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml core/.phpstan-baseline.php to check deprecated code removed or not
Testing result:
Merge request !7657 3442713-remove-deprecated-code is fixed
Moved the issue to RTBC ++
Comment #12
arun.k commentedComment #13
longwaveMissed one earlier, I think
core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.phpis in scope given it's the same revision methods we are deleting elsewhere in this issue.Comment #14
longwaveFixed #13, also re-added the comments back to EntityRepositoryInterface as that relates to code that is staying until Drupal 12.
Comment #15
smustgrave commentedAdditional change seems good. Going to mark since this is blocking another deprecation ticket.
Comment #17
catchGot this started but missed so many here I think I'm still OK to commit. Committed/pushed to 11.x, thanks!