Remove unreachable API operations and dead helpers - #696
Open
jvanbuel wants to merge 1 commit into
Open
Conversation
list_all_dagruns and list_all_taskinstances were declared on the operation traits, implemented on FlowrsClient, and backed by V1/V2 HTTP methods (including a full pagination loop in each taskinstance client), but nothing ever called them. All three carried #[allow(unused, reason = "trait method kept for API completeness")]. Also removes AirflowClient::get_version (same allow attribute), KeyResult::from_consumed and ConfigPaths::xdg_config_dir, none of which had callers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0127jzUgqqy8JVX5RydfQxh8
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
💤 Files with no reviewable changes (12)
📝 WalkthroughWalkthroughAirflow DAG-run and task-instance listing APIs now require DAG-scoped identifiers across V1, V2, and FlowrsClient layers. Related trait methods and version accessors are removed, while configuration and model APIs receive separate cleanup changes. ChangesAirflow scoped listing APIs
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
🚥 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Deletes 183 lines of code that nothing calls.
list_all_dagruns/list_all_taskinstancesBoth were wired end-to-end and reachable from nothing:
list_all_dagrunslist_all_taskinstancestraits/dagrun.rstraits/taskinstance.rsFlowrsClientimplclient/impls/dagrun_ops.rsclient/impls/taskinstance_ops.rsv1/dagrun.rsv1/taskinstance.rsv2/dagrun.rsv2/taskinstance.rsEach
fetch_all_task_instancescontained a complete offset/limit pagination loop. They look finished because every layer exists — which is exactly why they survived.Also removed
AirflowClient::get_version(trait decl + impl)KeyResult::from_consumedConfigPaths::xdg_config_dirNote on the
allowattributesThree of these carried
#[allow(unused, reason = "trait method kept for API completeness")]. That annotation is the reason the compiler never flagged them — the code was explicitly marked as dead and kept anyway. If any of these endpoints are wanted later, they are agit revertaway and the Airflow API hasn't changed.Verification
cargo test --workspace --lib --bins(94 passing),cargo clippy --workspace --all-targets --all-features -- -D warnings, andcargo fmt --all --checkall clean. Clippy passing with-D warningsafter removal also confirms no imports or helpers were orphaned.🤖 Generated with Claude Code
https://claude.ai/code/session_0127jzUgqqy8JVX5RydfQxh8
Generated by Claude Code
Summary by CodeRabbit
New Features
Breaking Changes
Improvements