-
Notifications
You must be signed in to change notification settings - Fork 84
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
fix: files meta only return currrent files and sub directory #687
Conversation
WalkthroughThe changes streamline the handling of files and directories in the Changes
Assessment against linked issues
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #687 +/- ##
=======================================
Coverage 96.81% 96.82%
=======================================
Files 181 181
Lines 17982 17993 +11
Branches 2348 2340 -8
=======================================
+ Hits 17410 17421 +11
Misses 572 572 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
Out of diff range and nitpick comments (1)
app/repository/PackageVersionFileRepository.ts (1)
39-68
: Ensure proper indexing onpackageVersionId
anddirectory
fields for performance.Given the changes and the focus on performance, especially for large datasets, ensure that the
packageVersionId
anddirectory
fields in the database are properly indexed. This will help in efficiently filtering records based on these fields, which is critical given the SQL query structure introduced here.
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- app/port/controller/PackageVersionFileController.ts (1 hunks)
- app/repository/PackageVersionFileRepository.ts (1 hunks)
- test/port/controller/PackageVersionFileController/listFiles.test.ts (2 hunks)
- test/port/controller/PackageVersionFileController/raw.test.ts (3 hunks)
Additional comments not posted (2)
test/port/controller/PackageVersionFileController/raw.test.ts (1)
Line range hint
340-367
: Update assertions to reflect the new logic for handling directories.The updated assertions correctly reflect the changes made in the handling of files and directories. This ensures that the tests are aligned with the new functionality.
Also applies to: 429-429
test/port/controller/PackageVersionFileController/listFiles.test.ts (1)
551-551
: This test case correctly checks for a 404 status when a non-existent subdirectory is requested.
[skip ci] ## [3.59.1](v3.59.0...v3.59.1) (2024-05-19) ### Bug Fixes * files meta only return currrent files and sub directory ([#687](#687)) ([e442580](e442580))
closes #680
Summary by CodeRabbit
Bug Fixes
Tests