Delta request for sites doesn't return the correct ID of the site, only a subset
まだ誰も着手していません。
評価
調査の方向性
まず、issue に示されている 2 つの呼び出しを再現します。SitesRequestBuilderGetRequestConfiguration と sites の delta リクエストです。返された Site ID を、removed のレスポンス例を含む Microsoft Graph の site-delta ドキュメントと比較します。SDK の動作が修正されるか、API の不整合が確認されて明確にドキュメント化されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I am using the latest version (2.3.0), and I want to get the list of all sites.
When I use the classical SitesRequestBuilderGetRequestConfiguration and invoke
$response = $context->sites()->get($configuration)->wait();
I get the correct set of values - instances of \Microsoft\Graph\Generated\Models\Site where ids of all the listed sites conform to the full specification of "Site collection hostname, Site collection unique ID, Site unique ID".
When I use DeltaRequestBuilderGetRequestConfiguration and invoke
$context->sites()->delta()->get()->wait()
all the instances of \Microsoft\Graph\Generated\Models\Site look identical, with the exception of the id field, which is suddenly truncated to the Site unique ID only. (Which isn't really unique globally, only within a certain site collection.)
The official documentation is a bit unclear on this. The example for obtaining the whole set clearly indicates that full ids should be returned:
"id": "contoso.sharepoint.com,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740",
but the "Removed" response only indicates the Site unique ID only.
"id": "bd565af7-7963-4658-9a77-26e11ac73186",
Without consistent behavior, the delta requests will be unusable.
- 主要言語
- PHP
- スター
- 669
- フォーク
- 150
- 平均マージ
- 15時間 21分
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-sdk-php のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoftgraph/msgraph-sdk-php#1794 · コメント 2 件 ·
-
bug: metadata type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
microsoftgraph/msgraph-sdk-php#1739 · コメント 6 件 ·
-
status:waiting-for-triage type:bug
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
microsoftgraph/msgraph-sdk-php#1643 · コメント 8 件 · リアクション 4 件 ·
-
status:waiting-for-triage
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
microsoftgraph/msgraph-sdk-php#1800 · リアクション 1 件 ·
-
Now オープン
難易度 5/5 1週間以上 初心者へのやさしさ 1/100
microsoftgraph/msgraph-sdk-php#1799 ·
microsoftgraph/msgraph-sdk-php の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getgrav/grav-plugin-api#45 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
RSS-Bridge/rss-bridge#5098 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
phingofficial/phing#2025 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
silverstripe/developer-docs#911 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100