[MsGraph] add in missing $count=true flag

Đang mở
#1,392 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, csharp
Lĩnh vực
api

Hướng nghiên cứu

Start from the MsGraph request construction path and find where query options such as consistency level are assembled for Graph calls. Add $count=true alongside that handling, or implement a retry that sets it when an advanced query fails, and check how both the CLI and PowerShell surfaces pass the option through. Done means Graph requests that need counting include the flag and the existing request/query tests still pass.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

act-identity-squad bug
Affected surface

Both

Describe the bug

Not currently a confirmed bug as I have not been able to replicate the circumstances to get this error.
It may be related to Entra settings / the types of members, groups ect we have in test tenant.

I have twice gotten a similar AI review message on my MsGraph PRs

image

Likely not having this flag will cause errors similar to https://github.com/Azure/azclips/issues/1339 in some advanced query circumstances and there will be no work around.

Steps to reproduce

Not able to repro at this stage

Errors & debug output

Expected behavior

We can add this as flag like consistency level.

Though as this as just a bool its worth considering instead catching the expectation and retrying with it set to true in cases that need it.

From my quick investigation it seems like this is a required for some advanced queries param not really changing any functionality and hiding it in our logic instead of making the user enter it is likely a better user experience.

We should consider also doing this for consistency level IF eventual is the only option (requires more investigation)

Environment

Additional context

No response

Ngôn ngữ chính
C#
Star
18
Fork
10
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
157

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/azclips

Tất cả issue của Azure/azclips

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.