BUG: ConsistencyLevel: Eventual header should be enabled for advanced queries or all results will be returned regardless

未关闭
#513 28 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

从 Invoke-GraphRequest 入口点和 AutoRest 生成的命令开始,然后跟踪 -Search、-Count、-OrderBy 和 -Filter 的处理方式。将它们的行为与 ConsistencyLevel 参数以及链接的 Microsoft Graph 指南进行比较。当高级查询参数自动发送 eventual consistency 标头而无需 workaround 时,即视为完成。

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

描述

type:bug

https://developer.microsoft.com/en-us/identity/blogs/microsoft-graph-advanced-queries-for-directory-objects-are-now-generally-available/
The consistencylevel: eventual header should automatically be set if parameters such as -Search, -Count, -OrderBy, and -Filter if an operation parameter is used.

Workaround

Invoke-GraphRequest

-Headers @{ConsistencyLevel='eventual'}

AutoRest-Generated Commands

-ConsistencyLevel Eventual
This should be safe for general profile usage as well in substitute for doing the above:
$PSDefaultParameterValues['Get-Mg*:ConsistencyLevel'] = 'Eventual'

AB#7724

主要语言
C#
星标
898
派生
230
平均合并
2 天 5 小时
30 天内合并 PR
31

贡献指南

打开贡献指南

从这里开始

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

microsoftgraph/msgraph-sdk-powershell 的其他 Issue

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

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

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