Problem/Motivation
The Sitemap module defines a block plugin with ID sitemap_syndicate (i.e.: \Drupal\sitemap\Plugin\Block\SitemapSyndicateBlock), which appears to exist only to display an RSS icon that links to an RSS feed.
Before commit b35b30f from 2017-03-22, the location of this RSS feed was customizable (i.e.: similar to the Feed URL config on the Frontpage sitemap plugin) — the location to link to was stored in the top-level configuration sitemap.settings.rss_front. But we deleted sitemap.settings.rss_front in \sitemap_update_8200()
While I doubt anyone actually uses the SitemapSyndicateBlock, deleting it would be a backwards-compatibility break / regression, so we should fix and deprecate it in 8.x-2.x so it can be removed in 3.0.x.
Proposed resolution
Write a test for the SitemapSyndicateBlock.- done by @mparker17 by #4Update the SitemapSyndicateBlock configuration to have an- done by @mparker17 by #4rss_feed_pathconfiguration (both in the schema and in the block plugin class). Update the test to check that it can be changed.- Write an update hook to see if
plugins.frontpage.settings.rssexists (i.e.: from the Frontpage sitemap plugin configuration), and if so, migrate it to the new configuration. If not, fallback to the default,/rss.xml. Mark everything related to SitemapSyndicateBlock as deprecated for removal in 3.0.x- done by @mparker17 by #4
Remaining tasks
Write a MR- done by @mparker17 by #4Write a draft change record- done by @mparker17 by #4Add an update hook- done by @mparker17 by #7Review and feedback- skipped by @mparker17 in #7RTBC and feedback- done by @mparker17 in #7Commit- done by @mparker17 in #10Release- released by @mparker17 in sitemap-8.x-2.5
User interface changes
Adds the ability to set the RSS link destination in the SitemapSyndicateBlock settings.
API changes
None (only deprecations).
Data model changes
Introduces a block.block.sitemap_syndicate_stark.settings.rss_feed_path configuration.
Issue fork sitemap-3545858
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
mparker17Update the issue summary with slightly clearer wording.
Comment #3
mparker17Assigning to myself.
Comment #5
mparker17Made some progress but still have to write the update hook to migrate from the old config.
Comment #6
mparker17Turns out we deleted
rss_frontfrom the global settings in\sitemap_update_8200(), which explains why my test wasn't working.Updating the issue summary to reflect the new scope.
Comment #7
mparker17Okay, this seems to be working now, and testbot is happy. Note that it will conflict with #3545794: Remove unused cache, max_age configuration options in SitemapSyndicateBlock.
Comment #8
phenaproximaNo objections here! This is partially blocking progress in Drupal CMS so let's ship it, I say!
Comment #9
mparker17Okay, I'll merge this, and then fix any conflicts in #3545794: Remove unused cache, max_age configuration options in SitemapSyndicateBlock and put that one for review.
Comment #11
mparker17Merged! Thanks @phenaproxima! I will update this message when the other issue is ready for review, and also when this gets released.
Comment #13
mparker17This fix has been released in sitemap-8.x-2.5.