Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Email organizations when accepted events cross monthly budget thresholds - #2802

Open
niemyjski wants to merge 5 commits into
mainfrom
feature/organization-budget-alerts
Open

niemyjski wants to merge 5 commits into
mainfrom
feature/organization-budget-alerts

Conversation

@niemyjski

@niemyjski niemyjski commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Organizations can choose when to receive an email as accepted events approach their monthly plan allowance. The warning uses the existing usage counters and requires no per-post Redis reservation.

Changes

  • Configure percentage thresholds on the organization usage page or through PATCH /api/v2/organizations/{id} with budget_alert_settings.
  • Verified members who have email notifications enabled receive a warning once per threshold per UTC month. The worker checks the current allowance and settings before sending. When current usage or settings make a queued warning ineligible, the worker releases its own claim so a later qualifying warning can send.
  • Event admission retains its existing monthly allowance and five-minute throttling behavior. Strict project caps remain in feat: Add usage budget controls #2270 and sampling remains in Add opt-in project event sampling and notifications #2793 for separate review.

Breaking changes and deploy notes

Warnings are off by default. Existing organizations can opt in without a migration or a new deployment setting.

Testing

The local API, worker and SMTP inbox delivered zero warnings at 29 accepted events, one at 30, and a second at 60 on a 3,000-event plan. Disabling and re-enabling warnings produced no duplicate. The final focused backend run passed 181 tests, including recovery from a failed broker publication, the two organization frontend suites passed 13 tests, and frontend validation passed. Local Elasticsearch regressions reproduced missed warnings after an allowance increase or a settings change. The corrected path allowed the replacement warning to deliver once and preserved the newer claim when old work retried. The hosted Build passed at 0fcd002c1, including the allowance, settings restoration, and HTTP validation cases. Standard CI skips billable assistant evaluations and manual performance tests.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T17:34:03.820213Z 0fcd002 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38d958936f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 114d45c53f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a328a1345b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Exceptionless.AppHost 23% 22% 132 ❌
Exceptionless.Core 80% 72% 12428 ✔
Exceptionless.Insulation 51% 43% 370 ➖
Exceptionless.Web 88% 74% 10691 ✔
Summary 83% (32656 / 39580) 73% (16728 / 23062) 23621 ✔

This branch has not been deployed

No deployments
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