Problem/Motivation
I just discovered the existence of \Drupal\serialization\EntityResolver\UuidReferenceInterface.
It's only implemented by \Drupal\hal\Normalizer\EntityReferenceItemNormalizer and only used by \Drupal\serialization\EntityResolver\UuidResolver
Proposed resolution
Remove the 'dead' code.
Remaining tasks
None.
User interface changes
None.
API changes
BC layer is provided.
Data model changes
None.
| Comment | File | Size | Author |
|---|
Issue fork drupal-2930243
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:
Comments
Comment #2
wim leersFirst, let's prove that absolutely nothing in the
serializationmodule is using this.BC layer still needs to be added.
Comment #5
MerryHamster commentedI guess class RegisterEntityResolversCompilerPass have to be in HAL module too.
Comment #6
MerryHamster commentedComment #8
wim leers@MerryHamster: thank you, good catch! But
\Drupal\serialization\SerializationServiceProviderwas using that class, so that will now need to be moved to\Drupal\hal\HalServiceProvideras well!Comment #11
andypostReroll of #5
Comment #13
andypostShould fix a lot of errors
Comment #15
andypostFix another bunch of tests and clean-up remaining mentions in comments
Comment #16
andypostMissed that service provider using register (not alter) now much more tests are fixed
Comment #18
andypostAs it down to just few failures, make sense to decide on upgrade path
Comment #19
andypostNow it pass, at least deprecated interfaces should be left for BC
Comment #25
spokjeThe
halmodule has moved out of Drupal Core and into a Contrib Module.Moving this issue to the Contrib Module queue.
Comment #26
wim leersHm … shouldn't we tackle this in core? There is now dead code in
serialization.modulewhich should've been moved tohal.modulebefore the HAL module was removed? 🤔Comment #27
larowlanAgree
Comment #28
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #32
quietone commented@Wim Leers, thanks for catching this.
Comment #33
smustgrave commentedCan issue summary and title be updated this is about removing dead code now?
Comment #34
quietone commentedYes, I forgot to do that.
Comment #35
smustgrave commentedThanks! Removal seems good
Comment #36
catchShouldn't the classes and services be deprecated in 11.x for removal in 12.x?
Comment #37
smustgrave commentedDo you think anyone could be using them? Seemed like dead code?
Comment #38
catchIt's still used in HAL, which is mentioned in the issue summary. https://git.drupalcode.org/project/hal/-/blob/1.x/src/Normalizer/EntityR...
There are 30,000 sites using the module.