microsoftgraph / microsoftgraph/msgraph-beta-sdk-python
Missing Pagination for List of Directs
未关闭
还没有人认领这个 Issue。
area:documentation
documentation
type:documentation
- 主要语言
- Python
- 星标
- 44
- 派生
- 16
- 平均合并
- 20 小时 39 分钟
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 client.users.by_user_id(user_id).direct_reports.get() 开始,跟踪响应如何处理 nextLink 属性。使用拥有许多直属下属的用户重现该问题,然后验证调用返回完整列表,并为多页情况添加覆盖测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100