Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Looking at the code I'm wondering if any of the feed writer services are ever used.
Since #2976335: Use Zend-Feed's standalone extension managers to prevent sites breaking this is now only about feed.bridge.writer.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#19 | 2919215-2-19.patch | 1.71 KB | alexpott |
#2 | 2919215-2.patch | 2.19 KB | alexpott |
Comments
Comment #2
alexpottLet's see...
If this passes we have zero test coverage and zero use case for this :)
Comment #3
dawehnerI once had the honour to use zend writer in a project. I don't remember the exact details, nor do I have the source code, but it turned out the bridge in Drupal was broken, can't say how anymore though :(
Regarding usage in contrib:
Comment #4
alexpott@dawehner so it looks like no one is using the writer in contrib. Makes sense if you found it buggy :)
Comment #5
dawehnerSomething we could certainly talk about is to mark it as deprecated. On the longrun we could tell people to use internal services + composer dependencies if they really want to.
Comment #6
borisson_I agree with #5, marking it as deprecated sounds like a good idea. I don't think we can just remove it.
Comment #8
alexpott#2976335: Use Zend-Feed's standalone extension managers to prevent sites breaking deprecates all of feed.writer.* and feed.reader.* services - so once that lands this becomes only about
feed.bridge.writer
Comment #14
quietone CreditAttribution: quietone as a volunteer commentedComment #17
alexpottRe-purposing this issue to do things with deprecations.
Comment #18
alexpottThe feeds module uses feed.bridge.reader and does not depend on aggregator so let's just do the feed.bridge.writer - one less thing to worry about.
Comment #19
alexpottComment #20
alexpottThinking about the feed.bridge.reader and #18. Maybe we could still do the move but tell people that either they depend on aggregator or the use the standalone or they create a new service. And we could deprecate \Drupal\Component\Bridge\ZfExtensionManagerSfContainer too and move it to aggregator.
Comment #21
longwaveWe better update the deprecation that we just added that points to this service :)
Comment #22
longwaveNow we have deprecated all the
feed.(reader|writer).*
services what is the point of feed.bridge.reader and ZfExtensionManagerSfContainer?Would we be better off wrapping
Laminas\Feed\Reader\StandaloneExtensionManager
in a service, perhaps with a service collector that allows users to add new feed types?Comment #23
catchI think it'd be worth going ahead with what we have here, then opening follow-ups for #20-22 - just to make sure we get this deprecation in now, and not in another four years.
In general, once #3188549: [Meta] Tasks to deprecate both Aggregator and our dependency on Laminas Feed is done, we can remove Laminas/Feed entirely from core. #2003108: Switch Views RSS to use Serializer/Zend never happened so it is only used by aggregator. We need to deprecate all of the services in order to remove them, but not really worth expending effort trying to clean up an integration we're going to nuke entirely.
Comment #24
longwaveOK, let's just get this small part done and defer the rest to followups if needed. Not even sure #21 is relevant if nobody is using this in contrib and earlier reports suggest the writer service doesn't work anyway.
Comment #25
alexpott@longwave @catch - how about #20 - deprecating feed.bridger.reader in core and moving it to Aggregator - imo that woud make it easier to remove Laminas/Feed when and if we remove aggregator.
Comment #26
longwaveSure but let's do that in a followup, deprecating the writer is easy because nobody uses it, restructuring the reader means moving ZfExtensionManagerSfContainer and deprecating the entire Bridge component I think, which seems much more complicated.
Comment #29
catchCommitted/pushed to 10.0.x and cherry-picked to 9.4.x, thanks!
Comment #30
alexpottOpened #3258654: Deprecate feed.bridge.reader and move it to the Aggregator module to deal with the reader service.
Comment #32
quietone CreditAttribution: quietone as a volunteer commentedPublished the change record.