microsoftgraph / microsoftgraph/microsoft-graph-explorer-v4

deltaExcludeParent header for delta link still includes root in response

Open
#4,052 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ToTriage
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:

  1. Go to Graph Explorer
  2. GET endpoint: https://graph.microsoft.com/v1.0/drives/{driveId}/root/delta with Prefer: deltaExcludeParent header
  3. change permission on a file or folder in oneDrive
  4. GET endpoint: the deltaLink from step 3 with Prefer: deltaExcludeParent header

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.