Delta request for sites doesn't return the correct ID of the site, only a subset

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
api, backend

调研方向

首先重现 issue 中显示的两个调用:SitesRequestBuilderGetRequestConfiguration 和 sites delta 请求。将返回的 Site id 与 Microsoft Graph 的 site-delta 文档进行比较,包括 removed 响应示例。完成的标准是 SDK 行为得到修正,或者确认 API 存在不一致并将其清楚地记录下来。

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

描述

question

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
派生
149
平均合并
1 天 4 小时
30 天内合并 PR
5

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

microsoftgraph/msgraph-sdk-php 的其他 Issue

查看 microsoftgraph/msgraph-sdk-php 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

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