Skip to content

Fix newsletter month seeding so the current month's issue always appears#4295

Merged
mashehu merged 3 commits into
mainfrom
claude/newsletter-first-not-showing-flxipc
Jul 1, 2026
Merged

Fix newsletter month seeding so the current month's issue always appears#4295
mashehu merged 3 commits into
mainfrom
claude/newsletter-first-not-showing-flxipc

Conversation

@ewels

@ewels ewels commented Jul 1, 2026

Copy link
Copy Markdown
Member

The newsletter dated the 1st of month M reports the previous calendar
month's content, but getNewsletterMonths seeded candidate months from the
month each item was dated in rather than the month that reports it. A
newsletter therefore only appeared if something happened to be dated in its
own month, so the July issue (reporting June) would not show on the 1st
unless unrelated July-dated content existed.

Seed backward-looking content (blog posts, advisories, releases, new
pipelines) from month X into the newsletter dated X+1, and events into both
their own month and the previous month (matching the forward-looking
"upcoming events" section). newsletterMonthHasContent still gates out any
candidate whose sections would all be empty.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01XUD4bQJx4nFhMGTtSqiwvK

The newsletter dated the 1st of month M reports the *previous* calendar
month's content, but getNewsletterMonths seeded candidate months from the
month each item was *dated in* rather than the month that *reports* it. A
newsletter therefore only appeared if something happened to be dated in its
own month, so the July issue (reporting June) would not show on the 1st
unless unrelated July-dated content existed.

Seed backward-looking content (blog posts, advisories, releases, new
pipelines) from month X into the newsletter dated X+1, and events into both
their own month and the previous month (matching the forward-looking
"upcoming events" section). newsletterMonthHasContent still gates out any
candidate whose sections would all be empty.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUD4bQJx4nFhMGTtSqiwvK
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for nf-core-main-site ready!

Name Link
🔨 Latest commit 7bc51cc
🔍 Latest deploy log https://app.netlify.com/projects/nf-core-main-site/deploys/6a44de34f4199b0008c2d867
😎 Deploy Preview https://deploy-preview-4295--nf-core-main-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot deleted a comment from netlify Bot Jul 1, 2026

@mashehu mashehu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code comments could also be a bit less wordy

Comment thread sites/main-site/utils/newsletter.ts Outdated
@mashehu
mashehu merged commit 1f1e333 into main Jul 1, 2026
12 checks passed
@mashehu
mashehu deleted the claude/newsletter-first-not-showing-flxipc branch July 1, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants