Uh oh!
There was an error while loading. Please reload this page.
Fix sitemap lastmod regression from PR #539 merge - #540
Closed
timujinne wants to merge 1 commit into
Closed
Conversation
PR BeamLabEU#539's 3-way merge silently overwrote two sitemap helpers that existed on upstream/dev but not on the source fork: - lib/modules/sitemap/sources/publishing.ex: restore latest_post_date/2 used for publishing group listing lastmod - lib/modules/sitemap/sources/static.ex: restore static_lastmod/1 with cross-source homepage lookup Files restored to their state at 0b561d1 (last upstream/dev commit before the PR BeamLabEU#539 merge). Behavior restored: - Publishing group listings emit <lastmod> from latest post date - Homepage / emits <lastmod> from latest publishing content across groups - Other static pages keep Date.utc_today() baseline (unchanged) Original commits that added the helpers (now restored): - e7b0ef6 Add lastmod to sitemap group listings and homepage - 54b9b89 Add lastmod to sitemap router-discovered and static entries Full analysis in dev_docs/pull_requests/2026/539-v117-document-composition-tables/CLAUDE_REVIEW.md section "#1 Undeclared scope".
ddon
commented
May 13, 2026
Contributor
Thanks for catching this @timujinne — your diagnosis matches exactly what the post-merge review of #539 turned up, and the citation to Closing this in favor of
Sorry for the duplicate work — both branches were investigating in parallel and ours just landed first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #539 (V117 migration) was merged with a silent sitemap regression. The 3-way merge overwrote two sitemap helpers that existed on
upstream/devbut had been removed long ago on the source fork — restoring them.What broke after PR #539
lib/modules/sitemap/sources/publishing.exlastmod: latest_post_date(slug, language)lastmod: nillib/modules/sitemap/sources/static.ex(lines 202, 227)lastmod: static_lastmod(path)lastmod: Date.utc_today()defp latest_post_date/2defp static_lastmod/1SEO impact of the regression:
/blog,/posts, …) lost their<lastmod>element entirely/now reportslastmod: today's dateon every sitemap regeneration — a known SEO anti-patternFix
Restores both files to their state at
0b561d1b— the lastupstream/devcommit before the PR #539 merge. Both helper functions (latest_post_date/2,static_lastmod/1) and their callsites come back.Original commits that introduced this logic:
e7b0ef60Add lastmod to sitemap group listings and homepage54b9b899Add lastmod to sitemap router-discovered and static entriesTest Plan
mix compile --warnings-as-errorscleanmix docscleanmix quality(credo + dialyzer) clean<lastmod>again, homepage<lastmod>should reflect latest publishing content rather than today's dateContext
Detailed pre-merge analysis:
dev_docs/pull_requests/2026/539-v117-document-composition-tables/CLAUDE_REVIEW.md(already ondevvia commit17b3b6e1) — see section "#1 Undeclared scope: PR also reverted the dynamic-lastmod sitemap logic on dev".