Skip to content

docs(billing): scope the usage_log workspace index note to created_at windows - #9479

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/usage-index-note
Oct 30, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/usage-index-note

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • The usage analytics index note said every read narrowed to one workspace runs on usage_log_workspace_created_at_cost_idx; only a read over a created_at window (a range or a reporting period) is index-only there
  • A Stripe-period drill-down matches the period stamps, which that index does not carry, so the note now says so, matching the scope builder, the schema and the 0446 migration

Type of Change

  • Documentation

Testing

Comment-only change. usage-analytics.test.ts, bun run lint, bun run check:audits

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Oct 30, 2026 6:09pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This comment-only change appears safe to merge.

Summary

Clarifies the workspace index note without changing executable code.

  • The usage index note limits its claim to created_at windows.

Reviews (2) · Last reviewed commit: "docs(billing): limit the workspace index..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 13a782b into staging Oct 30, 2026
118 of 120 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/usage-index-note branch October 30, 2026 18:26

This branch was previously deployed

1 inactive deployment
Preview — c3f498f4 Deployed Oct 30, 2026 by vercel[bot]
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.

1 participant