microsoftgraph / microsoftgraph/msgraph-beta-sdk-php

Cannot request events delta without startDateTime

オープン
#321 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

dependency:metadata ToTriage type:bug
主要言語
PHP
スター
13
フォーク
8
平均マージ
14時間 58分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php から始め、そこにある template URL と issue にリンクされている Event delta のドキュメントを比較します。startDateTime を指定せずにカレンダーの delta リクエストを再現します。リクエストが無効な StartDateTime エラーなしで成功し、パラメーターを指定するリクエストも引き続き動作すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
api
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。