connector(filesystem): Refactor resource_for_reader args into data class#169
Conversation
|
@coderabbitai: Please review, also taking the conversation in #146 into account. |
🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== Current PR metadata (`#169`) =="
gh pr view 169 --json number,title,body,author,baseRefName,headRefName,files,url
echo
echo "== Files changed in `#169` =="
gh pr diff 169 --name-only
echo
echo "== Earlier PR metadata (`#146`) =="
gh pr view 146 --json number,title,body,author,state,url
echo
echo "== Review comments and discussion from `#146` =="
gh api repos/panodata/omniload/issues/146/comments --paginate --jq '.[] | {user: .user.login, created_at, body}'
echo
gh api repos/panodata/omniload/pulls/146/comments --paginate --jq '.[] | {user: .user.login, path, line, body}'
echo
echo "== Outline of likely changed Python files in current checkout =="
for f in $(gh pr diff 169 --name-only | rg '\.py$'); do
echo "-- $f --"
ast-grep outline "$f" --items all || true
done
echo
echo "== Unified diff for `#169` =="
gh pr diff 169Length of output: 47336
✅ Action performedReview finished.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #169 +/- ##
==========================================
+ Coverage 51.89% 51.96% +0.06%
==========================================
Files 196 196
Lines 9139 9153 +14
==========================================
+ Hits 4743 4756 +13
- Misses 4396 4397 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (5)
Summary by CodeRabbit
WalkthroughThis PR adds a ChangesFilesystemReference-based resource_for_reader refactor
Estimated code review effort: 2 (Simple) | ~12 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@omniload/source/filesystem/impl/local.py`:
- Line 11: The top-level import of FilesystemReference in local.py breaks the
lazy startup pattern by importing omniload.source.filesystem.model too early
because it pulls in fsspec at module load. Move the FilesystemReference import
into dlt_source alongside the other filesystem imports, and keep the local
module free of that top-level dependency so it only loads when the function
runs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 0af111e1-fd06-490f-ac97-df0f5fc2ffe3
📒 Files selected for processing (5)
omniload/source/filesystem/adapter.pyomniload/source/filesystem/impl/local.pyomniload/source/filesystem/impl/remote.pyomniload/source/filesystem/model.pytests/main/filesystem/test_local.py
6e3e06b to
17da06c
Compare
About
References