|
Ran
|
Jobs
1
|
Files
781
|
Run time
2min
|
Badge
README BADGES
|
push
github
Add admin API endpoint for rate limit utilization status (#9152) * Add admin API endpoint for rate limit utilization status Adds GET /admin/projects/:projectId/rate-limits that reads current FHIR quota consumption from Redis for project members. Accepts optional membershipId query params to check specific memberships. Returns per-membership and per-project quota utilization without consuming any rate limit points. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: maddyli <maddy@medplum.com> * [autofix.ci] apply automated fixes Signed-off-by: maddyli <maddy@medplum.com> * Move rate limits to FHIR operation, extract shared config, use arrayify - Move endpoint from /admin/projects/:id/rate-limits to /fhir/R4/Project/:id/$rate-limits as a proper FHIR operation - Extract shared rate limit config (key prefixes, duration, quota resolution) into getFhirQuotaConfig() in fhirquota.ts so the endpoint and the rate limiter stay in sync - Use arrayify() from @medplum/core for query param normalization - Return FHIR Parameters resource instead of custom JSON Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: maddyli <maddy@medplum.com> * [autofix.ci] apply automated fixes Signed-off-by: maddyli <maddy@medplum.com> * Revert "refactor(agent): always collect HL7 conn stats (#9141)" This reverts commit 6f87f6cd5. Signed-off-by: maddyli <maddy@medplum.com> * have rate limit call consume rate limits Signed-off-by: maddyli <maddy@medplum.com> * [autofix.ci] apply automated fixes Signed-off-by: maddyli <maddy@medplum.com> * remove getfhirquota from context.ts Signed-off-by: maddyli <maddy@medplum.com> * refactor: use OperationDefinition with parseInputParameters/buildOutputParameters Replace manual Parameters construction with FHIR OperationDefinition-based parameter handling for the $rate-limits operation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by... (continued)
18707 of 21342 branches covered (87.65%)
Branch coverage included in aggregate %.
48 of 50 new or added lines in 3 files covered. (96.0%)
33933 of 36048 relevant lines covered (94.13%)
13337.13 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
92.45 |
packages/server/src/fhir/operations/project-rate-limits.ts |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 25574796321.1 | 781 |
91.72 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|