Skip to content

fix(blog): update PostHog query to filter posts by month range#7980

Merged
nurul3101 merged 1 commit into
mainfrom
blog-posthog-posts-12mo
Jun 25, 2026
Merged

fix(blog): update PostHog query to filter posts by month range#7980
nurul3101 merged 1 commit into
mainfrom
blog-posthog-posts-12mo

Conversation

@nurul3101

@nurul3101 nurul3101 commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes
    • The “Blog posts published per month” tile now shows a rolling 12-month view, rather than all historical months.
    • This keeps the chart focused on the most recent year and makes trends easier to read.

@nurul3101 nurul3101 self-assigned this Jun 25, 2026
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jun 25, 2026 10:15am
docs Ready Ready Preview, Comment Jun 25, 2026 10:15am
eclipse Ready Ready Preview, Comment Jun 25, 2026 10:15am
site Ready Ready Preview, Comment Jun 25, 2026 10:15am

Request Review

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7823b246-8da0-4c5e-a16a-11c13498ecfb

📥 Commits

Reviewing files that changed from the base of the PR and between 653bc6f and 7ff85d8.

📒 Files selected for processing (1)
  • apps/blog/scripts/update-posthog-blog-tiles.mjs

Walkthrough

The blog posts-per-month PostHog query now limits returned months to a rolling 12-month window, including the current month, while preserving month ordering.

Changes

Blog tile month window

Layer / File(s) Summary
Month filter update
apps/blog/scripts/update-posthog-blog-tiles.mjs
The posts-per-month HogQL query adds a WHERE clause that filters months to toStartOfMonth(today()) - toIntervalMonth(11) and later, while still ordering by month.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: tightening the PostHog blog query to a month range filter.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands.

@argos-ci

argos-ci Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jun 25, 2026, 10:21 AM

@nurul3101 nurul3101 merged commit bea9093 into main Jun 25, 2026
17 of 18 checks passed
@nurul3101 nurul3101 deleted the blog-posthog-posts-12mo branch June 25, 2026 10:17
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.

2 participants