microsoftgraph / microsoftgraph/msgraph-sdk-python
Wrongly defined `delta` on messages
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 630
- 派生
- 96
- 平均合并
- 15 小时 20 分钟
- 30 天内合并 PR
- 3
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从第 140 行附近的 users/item/messages/messages_request_builder.py 定义开始,并将其与 Microsoft Graph message 资源文档进行比较。检查 messages delta request 的暴露方式,并确认不受支持的 API 行为;当 invalid messages-level delta operation 不再定义,或以其他方式与文档所述的 per-mailfolder 支持保持一致时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100