Repository navigation
Limit the events sitemap to upcoming and recently ended events - #1446
Merged
Merged
Conversation
The sitemap listed every live, indexable event forever, so years of ended ticket pages crowded out new ones. Events now appear only while they have a non-cancelled occurrence that is upcoming or ended within the last 120 days; events with no occurrences are left out. Also drop changefreq and priority from the sitemaps. The event values were derived from the rollback-only events.start_date, which the query never selected, so every event was marked weekly / 0.5. Search engines ignore both tags anyway.
A schedule generated through the API can store range.until with a time (2026-11-20T23:59:00). The schedule drawer passed that straight to the date input, which broke the drawer when editing the schedule. Trim it to the date. Also ignore the local .cloudflare/ directory.
Contributor
✅ E2E smoke tests: Everything passed.
|
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 free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Sitemap
changefreqandpriorityare removed from the event and organizer sitemaps. The event values came from the rollback-onlyevents.start_date, which the query never selected, so every event wasweekly/0.5. Search engines ignore both tags.Unrelated: recurring schedule drawer
range.untilwith a time. The schedule drawer now trims it to the date so editing the schedule works. New e2e spec covers it..cloudflare/directory.Testing
tscclean.recurring-occurrences.spec.tspasses on the dev stack (8/8)./api/public/sitemap-events-1.xmlon the dev stack returns the new XML.