Repository navigation
feat(api,qa): organization query budgets, API quotas, OpenAPI, and upgrade docs - #748
Merged
Merged
Conversation
- 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).
|
@bellofuad34-ctrl is attempting to deploy a commit to the Ayinkx Team on Vercel. A member of the Team first needs to authorize it. |
|
@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! 🚀 |
| token = request.headers.get("X-API-Token", "").strip() | ||
| if not token: | ||
| return None | ||
| digest = hashlib.sha256(token.encode("utf-8")).hexdigest()[:24] |
Ayinkx
approved these changes
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #638
Closes #644
Closes #652
Closes #654
Summary
workspace_dashboardandworkspace_membersquery-count/latency budgets (perf_budgets.json+ docs).CHANGELOG.mdanddocs/upgrade-guide.mdcovering schema changes, new settings, operator actions, and rollback notes for the organization migration.scripts/generate_openapi.pyto build a deterministic OpenAPI 3.1 document from Flask routes, validate it, support--checkdrift detection, plus a CI job that publishesopenapi.jsonas an artifact.api_quotawith per-token (SHA-256 hashed) and per-organization sliding windows,X-RateLimit-*headers,Retry-After, and the stablerate_limited429 catalog body; applied to public workspace endpoints.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.tests/test_perf_budgets.pycovers the new scenarios.Notes
API_QUOTA_*; the limiter remains process-local like the existing one.--checkcompares against an existing output file when present; CI generates then validates and uploads the artifact.