Skip to content

feat(api,qa): organization query budgets, API quotas, OpenAPI, and upgrade docs - #748

Merged
Ayinkx merged 1 commit into
AyinkxLab:mainfrom
bellofuad34-ctrl:feat/phase11-12-qa-api
Nov 22, 2026
Merged

Ayinkx merged 1 commit into
AyinkxLab:mainfrom
bellofuad34-ctrl:feat/phase11-12-qa-api

Conversation

@bellofuad34-ctrl

Copy link
Copy Markdown
Contributor

Closes #638
Closes #644
Closes #652
Closes #654

Summary

Tests

  • tests/test_api_quota.py: success headers, burst denial, sustained window sliding, org quota, disabled dimension.
  • tests/test_openapi_generation.py: determinism, validation, route coverage, typed path params.
  • tests/test_upgrade_guide.py: release notes and required guide sections.
  • Existing tests/test_perf_budgets.py covers the new scenarios.

Notes

  • Quota defaults are high (600/token, 1200/org per minute) and configurable via API_QUOTA_*; the limiter remains process-local like the existing one.
  • --check compares against an existing output file when present; CI generates then validates and uploads the artifact.

- Seed a 50-member organization and add dashboard/membership query
  budgets (Closes AyinkxLab#638).
- Add per-token and per-organization quotas with X-RateLimit headers and
  the stable rate_limited body (Closes AyinkxLab#654).
- Generate and validate the OpenAPI 3.1 document in CI and upload it as
  an artifact (Closes AyinkxLab#652).
- Add release notes and an upgrade guide with rollback notes for the
  organization migration (Closes AyinkxLab#644).
@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

@bellofuad34-ctrl is attempting to deploy a commit to the Ayinkx Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 22, 2026

Copy link
Copy Markdown

@bellofuad34-ctrl Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Comment thread app/services/ratelimit.py
token = request.headers.get("X-API-Token", "").strip()
if not token:
return None
digest = hashlib.sha256(token.encode("utf-8")).hexdigest()[:24]
@Ayinkx
Ayinkx merged commit d2a5dcb into AyinkxLab:main Nov 22, 2026
12 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants