Allow getting a word from the Frontier#4148
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughRenamed the repository bulk frontier method to Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client
participant Ctrl as Controller
participant Svc as Service
participant Repo as Repository
Client->>Ctrl: Request frontier list
Ctrl->>Svc: GetAllFrontier(projectId)
Svc->>Repo: GetAllFrontier(projectId)
Repo-->>Svc: List<Word>
Svc-->>Ctrl: List<Word>
Ctrl-->>Client: 200 OK (list)
Client->>Ctrl: Request single frontier word (with optional audio)
Ctrl->>Svc: GetFrontier(projectId, wordId, audioFile?)
Svc->>Repo: GetFrontier(projectId, wordId, audioFile?)
Repo-->>Svc: Word? (nullable)
Svc-->>Ctrl: Word or NotFound
Ctrl-->>Client: 200 OK / 404 NotFound
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4148 +/- ##
===========================================
+ Coverage 74.76% 86.12% +11.36%
===========================================
Files 302 56 -246
Lines 11068 4829 -6239
Branches 1389 599 -790
===========================================
- Hits 8275 4159 -4116
+ Misses 2390 524 -1866
+ Partials 403 146 -257
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jasonleenaylor
left a comment
There was a problem hiding this comment.
Am I missing a test that uses the new GetFrontier implementation?
I saw the mock was added but I don't think there are any tests which call GetFrontier.
@jasonleenaylor reviewed 12 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec).
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 3 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @imnasnainaec).
c3a9af7 to
e82d6a3
Compare
e82d6a3 to
a6d0bfc
Compare
a6d0bfc to
363b527
Compare
Important piece of #4146 (though the payoff of this pr alone is small)
Purpose: Without this, whenever we want a frontier word, it requires a 2-part operation: getting the word from
WordsCollectionthen confirming that it's inFrontierCollection.This change is
Summary by CodeRabbit
Bug Fixes
Refactor
Tests