fix: filter low-reputation authors from evergreen sitemap#3676
fix: filter low-reputation authors from evergreen sitemap#3676
Conversation
…temap Remove the isFallback check in canonicalFromRouter that suppressed canonical URLs during ISR fallback rendering. Filter posts with flags->'noindex' from sitemap generation to prevent noindex pages from appearing in sitemaps. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@claude please review this pr |
|
Claude finished @nimrodkra's task in 58s —— View job PR Review
Summary: This is a clean, targeted fix. The change is minimal and correctly mirrors the existing filter in Implementation (
|
The slug is generated from title + id (not shortId). Fix test assertions to match the actual generated slug format. Also replace magic time numbers with ONE_DAY_IN_SECONDS constant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🍹 The Update (preview) for dailydotdev/api/prod (at 822c4b0) was successful. ✨ Neo ExplanationThis is a standard application release that rolls out a new container image to all 7 production deployments and 33 cron jobs, while also running fresh database and ClickHouse schema migration jobs for the new version.Root Cause AnalysisA new version of the API application has been built and is being deployed to production. Every workload in the cluster is being updated to point to the new container image, and the versioned migration Jobs from the previous release are being replaced with new ones for this release. Dependency ChainThe new application version cascades uniformly across the entire fleet:
Risk analysisNo stateful resources (databases, storage buckets, persistent volumes) are being replaced or deleted. The migration Jobs do touch the production database and ClickHouse schemas, but they are additive-migration patterns and not destructive replacements. Deployments use rolling updates, so no downtime is expected. Resource Changes Name Type Operation
~ vpc-native-update-trending-cron kubernetes:batch/v1:CronJob update
~ vpc-native-user-profile-updated-sync-cron kubernetes:batch/v1:CronJob update
~ vpc-native-validate-active-users-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-views-cron kubernetes:batch/v1:CronJob update
+ vpc-native-api-clickhouse-migration-e95b60ea kubernetes:batch/v1:Job create
~ vpc-native-update-source-tag-view-cron kubernetes:batch/v1:CronJob update
~ vpc-native-post-analytics-history-day-clickhouse-cron kubernetes:batch/v1:CronJob update
~ vpc-native-private-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-squad-posts-analytics-refresh-cron kubernetes:batch/v1:CronJob update
~ vpc-native-user-profile-analytics-clickhouse-cron kubernetes:batch/v1:CronJob update
~ vpc-native-user-profile-analytics-history-clickhouse-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-source-public-threshold-cron kubernetes:batch/v1:CronJob update
~ vpc-native-ws-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-sync-subscription-with-cio-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-highlighted-views-cron kubernetes:batch/v1:CronJob update
- vpc-native-api-clickhouse-migration-fb269ce0 kubernetes:batch/v1:Job delete
~ vpc-native-clean-gifted-plus-cron kubernetes:batch/v1:CronJob update
~ vpc-native-worker-job-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-daily-digest-cron kubernetes:batch/v1:CronJob update
~ vpc-native-hourly-notification-cron kubernetes:batch/v1:CronJob update
+ vpc-native-api-db-migration-e95b60ea kubernetes:batch/v1:Job create
~ vpc-native-update-tag-recommendations-cron kubernetes:batch/v1:CronJob update
~ vpc-native-generic-referral-reminder-cron kubernetes:batch/v1:CronJob update
~ vpc-native-post-analytics-clickhouse-cron kubernetes:batch/v1:CronJob update
~ vpc-native-check-analytics-report-cron kubernetes:batch/v1:CronJob update
~ vpc-native-update-tags-str-cron kubernetes:batch/v1:CronJob update
~ vpc-native-generate-search-invites-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-zombie-images-cron kubernetes:batch/v1:CronJob update
~ vpc-native-temporal-deployment kubernetes:apps/v1:Deployment update
~ vpc-native-expire-super-agent-trial-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-stale-user-transactions-cron kubernetes:batch/v1:CronJob update
~ vpc-native-user-posts-analytics-refresh-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-zombie-users-cron kubernetes:batch/v1:CronJob update
~ vpc-native-personalized-digest-cron kubernetes:batch/v1:CronJob update
~ vpc-native-bg-deployment kubernetes:apps/v1:Deployment update
- vpc-native-api-db-migration-fb269ce0 kubernetes:batch/v1:Job delete
~ vpc-native-agents-digest-cron kubernetes:batch/v1:CronJob update
~ vpc-native-calculate-top-readers-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-zombie-opportunities-cron kubernetes:batch/v1:CronJob update
~ vpc-native-clean-zombie-user-companies-cron kubernetes:batch/v1:CronJob update
~ vpc-native-personalized-digest-deployment kubernetes:apps/v1:Deployment update
... and 5 other changes |
|
@claude let's run a 2nd round of review for this pr |
|
Claude finished @nimrodkra's task in 1m 20s —— View job PR Review (Round 2)
Summary: The round 1 nit (magic numbers) has been resolved — the test already uses Implementation (
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
buildEvergreenSitemapQueryto match the existing filter inbuildPostsSitemapQueryContext
Ahrefs audit found a noindex post (
es6-handbook-the-complete-guide-dsyovcz-z) listed in the evergreen sitemap. The webapp setsnoindexon posts by authors with reputation ≤ 10 (pages/posts/[id]/index.tsx:306). Theposts.xmlsitemap already filtered these via(u.id is null or u.reputation > 10), butevergreen.xmldid not — allowing old, high-upvote posts by low-reputation authors to slip through.Related apps PR: dailydotdev/apps#5677
Test plan
🤖 Generated with Claude Code