microsoftgraph / microsoftgraph/msgraph-beta-sdk-php

Cannot request events delta without startDateTime

未关闭
#321 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

dependency:metadata ToTriage type:bug
主要语言
PHP
星标
13
派生
8
平均合并
14 小时 58 分钟
30 天内合并 PR
3

描述

Describe the bug

Event delta documentation says param startDateTime is optional when working with calendars but class DeltaRequestBuilder always include it in template url causing call to fail with ODataError.

Expected behavior

When performing a normal call without any optional param to get a full delta, no error should append.

How to reproduce
$client->me()
->calendars()
->byCalendarId($remoteId)
->events()
->delta()
->get(
    new DeltaRequestBuilderGetRequestConfiguration([
        'Prefer' => sprintf('outlook.timezone="%s"', $local->getTimeZone()->getName())
    ])
)
->wait()
SDK Version

2.8.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output
{
    "error": {
        "code": "ErrorInvalidParameter",
        "message": "The value '' of parameter 'StartDateTime' is invalid."
    }
}
Configuration

No response

Other information

No response

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php 开始,将其模板 URL 与 issue 中链接的 Event delta 文档进行比较。在不提供 startDateTime 的情况下复现日历 delta 请求;当请求能够成功执行且不出现无效的 StartDateTime 错误,同时提供该参数的请求仍然正常工作时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
api
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。