microsoftgraph / microsoftgraph/msgraph-beta-sdk-python
Missing Pagination for List of Directs
オープン
まだ誰も着手していません。
area:documentation
documentation
type:documentation
- 主要言語
- Python
- スター
- 44
- フォーク
- 16
- 平均マージ
- 20時間 39分
- マージ済み PR(30日)
- 3
説明
Describe the bug
I am fetching directs via client.users.by_user_id(user_id).direct_reports.get(). The list is incomplete for users with many directs. Browsing through the code a bit, it seems that this API ignores the nextLink property and only returns the first page.
Expected behavior
The list of returned directs should be complete.
How to reproduce
- create user
user_idwith many directs - fetch direct reports of this user with
client.users.by_user_id(user_id).direct_reports.get() - confirm not all results are returned.
SDK Version
1.11.0
Latest version known to work for scenario above?
none.
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
- OS: Ubuntu 22.04
- arch: x86
### Other information
_No response_
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
client.users.by_user_id(user_id).direct_reports.get() から開始し、レスポンスが nextLink プロパティをどのように処理しているかを追跡します。直属の部下が多数いるユーザーで問題を再現し、その後、呼び出しが完全なリストを返すことを確認して、複数ページの場合のカバレッジを追加します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100