Missing Pagination for List of Directs
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
Research direction
Start at client.users.by_user_id(user_id).direct_reports.get() and trace how the response handles the nextLink property. Reproduce the issue with a user having many direct reports, then verify that the call returns the complete list and add coverage for the multi-page case.
Written by the indexing model from the issue text.
Description
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_
- Dominant language
- Python
- Stars
- 44
- Forks
- 16
- Avg merge
- 20h 39m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoftgraph/msgraph-beta-sdk-python
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
type:bug type:investigation
Difficulty 3/5 1-2 days Newbie friendliness 48/100
microsoftgraph/msgraph-beta-sdk-python#1033 · 1 reaction ·
-
status:waiting-for-triage type:bug
Difficulty 3/5 1-2 days Newbie friendliness 42/100
microsoftgraph/msgraph-beta-sdk-python#1006 · 1 comment ·
-
status:waiting-for-triage type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
microsoftgraph/msgraph-beta-sdk-python#987 · 2 comments ·
All issues in microsoftgraph/msgraph-beta-sdk-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·