Skip to content

fix: stops-for-agency response gaps — 404, code fallback, parent stations#1093

Open
Ahmedhossamdev wants to merge 1 commit into
mainfrom
fix/stops-for-agency-response-gaps
Open

fix: stops-for-agency response gaps — 404, code fallback, parent stations#1093
Ahmedhossamdev wants to merge 1 commit into
mainfrom
fix/stops-for-agency-response-gaps

Conversation

@Ahmedhossamdev

Copy link
Copy Markdown
Member

Fixes: #1090

Summary

  • Unknown agency → 404 (was 200 + null), matching stop-ids-for-agency and the spec
  • code falls back to the entity ID when the feed defines none
  • parent populated + parent stations resolved into references.stops (Extension 3a)

@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Ahmedhossamdev, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 14 minutes and 39 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7d9e53c3-4bcd-4213-9e69-07fe12bb1017

📥 Commits

Reviewing files that changed from the base of the PR and between 99e138d and fe31645.

📒 Files selected for processing (2)
  • internal/restapi/stops_for_agency_handler.go
  • internal/restapi/stops_for_agency_handler_test.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/stops-for-agency-response-gaps

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Performance Smoke Test Results

Status: PASSED

Metric Value
p(95) latency 1.7 ms
Error rate 0.00%
Total requests 340
Req/sec 11.1

Smoke test config: 5 VUs x 30s. Thresholds: p(95) < 300ms, error rate < 1%.

Full results uploaded as workflow artifact: k6-smoke-summary.

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.

spec-gap: stops-for-agency — 404 handling, code fallback, parent station references

1 participant