microsoftgraph / microsoftgraph/msgraph-sdk-python

Wrongly defined `delta` on messages

Open
#1,087 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status:waiting-for-triage type:bug
Dominant language
Python
Stars
630
Forks
96
Avg merge
15h 20m
Merged PRs (30d)
3

Description

Describe the bug

We define a delta on messages (https://github.com/microsoftgraph/msgraph-sdk-python/blob/9542fa0b95c58822968116896048a00fe911eda4/msgraph/generated/users/item/messages/messages_request_builder.py#L140) that can be used like await client.users.by_user_id(some_id).messages.delta.get(), however the API doesn't support this (yet) and thus simply returns Unsupported request: Change tracking is not supported against 'microsoft.graph.message'.

Tracking changes on messages, according to the docs, only exists on a per mailfolder basis. message resource type

Expected behavior

Not having it defined (or get Graph API to finally support tracking).

How to reproduce

Given some GraphServiceClient client, a user or mailbox with id some_id and appropriate permissions call:

await client.users.by_user_id(some_id).messages.delta.get()
SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

No response

Configuration

No response

Other information

Disclaimer this might as well not be a msgraph-sdk-python issue but generally wrongly defined in the msgraph-sdk. I'm reporting it here because I only checked 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 with the generated users/item/messages/messages_request_builder.py definition around line 140 and compare it with the Microsoft Graph message resource documentation. Check how the messages delta request is exposed and confirm the unsupported API behavior; done means the invalid messages-level delta operation is no longer defined or is otherwise aligned with the documented per-mailfolder support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.