Missing Pagination for List of Directs
还没有人认领这个 Issue。
评估
调研方向
从 client.users.by_user_id(user_id).direct_reports.get() 开始,跟踪响应如何处理 nextLink 属性。使用拥有许多直属下属的用户重现该问题,然后验证调用返回完整列表,并为多页情况添加覆盖测试。
由索引模型根据 Issue 内容生成。
描述
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_
- 主要语言
- Python
- 星标
- 44
- 派生
- 16
- 平均合并
- 20 小时 39 分钟
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoftgraph/msgraph-beta-sdk-python 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 72/100
-
status:waiting-for-triage type:bug
难度 3/5 1-2 天 新手友好度 55/100
-
type:bug type:investigation
难度 3/5 1-2 天 新手友好度 48/100
microsoftgraph/msgraph-beta-sdk-python#1033 · 1 个 reaction ·
-
status:waiting-for-triage type:bug
难度 3/5 1-2 天 新手友好度 42/100
microsoftgraph/msgraph-beta-sdk-python#1006 · 1 条评论 ·
-
status:waiting-for-triage type:bug
难度 2/5 1-3 小时 新手友好度 48/100
microsoftgraph/msgraph-beta-sdk-python#987 · 2 条评论 ·
查看 microsoftgraph/msgraph-beta-sdk-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100