Needs work
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Nov 2017 at 02:07 UTC
Updated:
10 Jan 2024 at 13:03 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
grasmash commentedComment #4
wjackson commentedThe patch works as expected and adds the Image element to the RSS channel. The following patch cleans up the field labels to remove some unnecessary formatting.
Comment #5
runeasgar commented$ curl -l https://www.drupal.org/files/issues/2018-04-13/rss-feed-image-2924204-4.patch | git apply -vdrush crI may be testing this incorrectly, given that @wjackson already indicated it was working as expected. So, leaving this as "Needs review".
Steps to reproduce would be helpful. Happy to re-test once those are provided.
Comment #6
runeasgar commentedNevermind, figured it out. This is for an image for the feed, not for each feed item. Located under the display's "Format" -> "Settings", with "RSS Feed" selected". Re-testing:
curl -l https://www.drupal.org/files/issues/2018-04-13/rss-feed-image-2924204-4.patch | git apply -vdrush crI think this "Needs work", but feel free to correct that if I'm wrong. Also, this will probably require tests? I won't add "Needs tests" just yet, since the patch doesn't appear to be working.
Comment #7
runeasgar commentedLooking at the RSS 2.0 image spec:
https://validator.w3.org/feed/docs/rss2.html#ltimagegtSubelementOfLtchan...
Looks like the title and link tags are part of the spec, which I didn't realize. So, it looks like this is only visually messed up, not functionally.
Also, should the link tag should be linking to the site, not necessarily the view? Dunno. The language doesn't seem to clarify. Regardless, that seems like nitpicking.
Comment #9
didebruAm I get this right, this patch will provide one global image for an whole rss view?
Why not adding it here as per row e.g.
url="http://www.foo.com/movie.mov"
fileSize="12216320"
type="video/quicktime"
medium="video"
isDefault="true"
expression="full"
bitrate="128"
framerate="25"
samplingrate="44.1"
channels="2"
duration="185"
height="200"
width="300"
lang="en" />?
Comment #10
drup16 commentedThis patch seems to only allow for an image for the entire `RSS`, not single rows that are returned in the feed.
Comment #11
drup16 commentedI am adding reference to related issue that will return
<enclosure>for eachitemreturned. Patch #4 will only add the Image element to the RSS channel.Comment #14
pobster commentedRerolling patch for testing on 8.9.x
And yes ... this is different functionality from attaching an image to each item, please check the RSS spec.
Comment #15
pobster commentedCore doesn't really care about tidy whitespace ... but I see that's what's being requested here.
Comment #18
pobster commentedHmmm new tests ...
Comment #20
pobster commentedUgh ... apologies, I changed the whitespace ~ updated the hash.
Comment #21
pobster commentedComment #23
pjudge commentedI'm not a patch wizard, have only done this a handful of times, but I think there might be some text at the top of the patch in #20 (from, date, subject) that is interfering with my ability to apply the patch. Not sure if other people experience this as well. I'm using composer.
Comment #24
pobster commentedHiya!
Nah that's standard formatting; https://git-scm.com/docs/git-format-patch
It's more likely that it just needs rerolling for the current 8.9.x-dev branch.
Comment #26
playful commented#20 is working for me on D8.9.7, but there are 7 extra "+" symbols that are actually outputted in the feed.
Comment #28
playful commented#20 seems to be working on D9.2.9.
Comment #29
pobster commentedThat's odd - there are double
++in the patch ... that'll be why. I'll reroll it a bit later.Comment #30
pobster commentedComment #31
playful commented#30 working on D9.2.9 with php 7.4. Thanks!
Comment #35
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 #37
damienmckennaRerolled for 11.x.
Comment #38
smustgrave commentedBelieve this will need test coverage as well.
Thanks!
Comment #39
uberengineer commentedRerolled for 10.2.x