-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add first_usage filter on /volumes endpoint #712
Conversation
WalkthroughThis pull request refactors the test setup by extracting the query hook creation into a dedicated variable with conditional debug configuration. In addition, a new "first_usage" filter is introduced in the volumes resource handler, updating both the dataset-building and filter resolution logic to include the "first_usage" column. Two new test cases are added to validate volumes retrieval—with and without a Point In Time (PIT) query—using this filter. No changes were made to exported or public entity declarations. Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant H as VolumesResourceHandler
participant Q as Query Builder
participant DB as Database
C->>H: Request volumes list (with first_usage filter)
H->>H: Apply filters() including "first_usage"
H->>Q: Call buildDataset with accountsQuery adjustments
Q->>H: Execute resolveFilter for "first_usage"
H->>DB: Run SQL query with updated join and filter condition
DB-->>H: Return query result
H-->>C: Deliver filtered volumes list
Suggested reviewers
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Pro Plan! Simply use the command 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (9)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #712 +/- ##
==========================================
+ Coverage 81.49% 81.55% +0.06%
==========================================
Files 133 133
Lines 7170 7180 +10
==========================================
+ Hits 5843 5856 +13
+ Misses 1023 1021 -2
+ Partials 304 303 -1 ☔ View full report in Codecov by Sentry. |
Fixes LX-6