- Issue created by @catch
- ๐ฎ๐ณIndia Binoli Lalani Gujarat
Binoli Lalani โ made their first commit to this issueโs fork.
- Status changed to Needs work
10 months ago 8:23am 23 April 2024 - ๐ฌ๐งUnited Kingdom longwave UK
Also lots more:
core/lib/Drupal/Core/Entity/EntityTypeRepository.php: @trigger_error('Calling EntityTypeRepository::__construct() without the $entityTypeBundleInfo argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/3365164', E_USER_DEPRECATED); core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php: @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::loadRevision instead. See https://www.drupal.org/node/3294237', E_USER_DEPRECATED); core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php: @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Entity\RevisionableStorageInterface::deleteRevision instead. See https://www.drupal.org/node/3294237', E_USER_DEPRECATED); core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php: @trigger_error('Not providing a setDefaultTranslationEnforced() method when implementing \Drupal\Core\TypedData\TranslatableInterface is deprecated in drupal:10.2.0 and is required from drupal:11.0.0. See https://www.drupal.org/node/3376146', E_USER_DEPRECATED); core/lib/Drupal/Core/Entity/Controller/EntityController.php: @trigger_error('Calling ' . __METHOD__ . '() without the $route_match argument is deprecated in drupal:10.1.0 and it will be required in drupal:11.0.0. See https://www.drupal.org/node/3337782', E_USER_DEPRECATED);
- First commit to issue fork.
- Status changed to Needs review
10 months ago 3:39pm 23 April 2024 - ๐บ๐ธUnited States smustgrave
Tried to address additional ones but could use some feedback about the KeyValueStorage
- ๐ฌ๐งUnited Kingdom catch
The KeyValue changes look sensible - removing methods from the non-revisionable storage and adding them to the ones that are.
- ๐ฎ๐ณIndia onkararun
@ 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
- ๐ฌ๐งUnited Kingdom catch
@Arun.k there is no special tooling, we are just grepping the relevant directories, like:
grep -r @deprecated core/lib/Drupal/Core/Entity/
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.
- ๐ฎ๐ณIndia onkararun
Thankyou @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 notTesting result:
Merge request !7657 3442713-remove-deprecated-code is fixed
Moved the issue to RTBC ++ - Status changed to RTBC
10 months ago 6:26am 25 April 2024 - Status changed to Needs work
10 months ago 10:23am 25 April 2024 - ๐ฌ๐งUnited Kingdom longwave UK
Missed one earlier, I think
core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
is in scope given it's the same revision methods we are deleting elsewhere in this issue. - Status changed to Needs review
10 months ago 10:28am 25 April 2024 - ๐ฌ๐งUnited Kingdom longwave UK
Fixed #13, also re-added the comments back to EntityRepositoryInterface as that relates to code that is staying until Drupal 12.
- Status changed to RTBC
10 months ago 1:01pm 25 April 2024 - ๐บ๐ธUnited States smustgrave
Additional change seems good. Going to mark since this is blocking another deprecation ticket.
- ๐ฌ๐งUnited Kingdom catch
Got this started but missed so many here I think I'm still OK to commit. Committed/pushed to 11.x, thanks!
- Status changed to Fixed
10 months ago 1:14pm 25 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.