`dsc resource list <INPUT>` should leverage the adapter cache to find resources
還沒有人認領這個 Issue。
- 主要語言
- Rust
- 星號
- 523
- 分支
- 75
- 平均合併
- 3 天 16 小時
- 30 天內合併 PR
- 24
描述
Summary of the new feature / enhancement
dsc resource list <INPUT> will not currently find resources behind adapters without specifying the adapter (or *). With the resource cache for adapters, this may be performant enough to allow searching across all adapters even without being requested.
The downside is that on a system without any cached data, the initial search for a resource will need to build out the caches. This could make the first run of dsc resource list <INPUT> extremely expensive.
Note that I am not suggesting that dsc resource list should search adapters. Even if this was fast to do, the result set would be far too large to be of much use. This may eventually be the case for un-adapted resources.
Proposed technical implementation details (optional)
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先追蹤 dsc resource list <INPUT> 命令和 adapter 資源快取的實作。檢查未指定 adapter 時搜尋的行為,接著判斷如何搜尋已快取 adapter 的資源,而不同時搜尋 adapter 本身。完成的標準是:該命令無需明確指定 adapter 即可找到 adapter 後面的資源,同時維持結果集的聚焦,並妥善處理未快取的系統。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100