microsoftgraph / microsoftgraph/microsoft-graph-explorer-v4
deltaExcludeParent header for delta link still includes root in response
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 260
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
For delta links (https://learn.microsoft.com/en-us/graph/api/driveitem-delta?view=graph-rest-1.0&tabs=http), I use header: Prefer: deltaExcludeParent but it always returns the root alongside the driveItem that changed.
To Reproduce
Steps to reproduce the behavior:
- Go to Graph Explorer
- GET endpoint: https://graph.microsoft.com/v1.0/drives/{driveId}/root/delta with
Prefer: deltaExcludeParentheader - change permission on a file or folder in oneDrive
- GET endpoint: the deltaLink from step 3 with
Prefer: deltaExcludeParentheader
Expected behavior
should only have 1 value in delta link response which is the changed file/folder. But current behavior returns 2 values, the changed file/folder and root (the drive)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
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.
Research direction
Start by reproducing the request in Graph Explorer using the documented drive delta endpoint, the deltaLink, and the Prefer: deltaExcludeParent header. Compare both responses with the expected single changed file or folder; the payload names no repository file or test, so determining whether this belongs in Graph Explorer or the Microsoft Graph service is part of the investigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100