microsoftgraph / microsoftgraph/msgraph-sdk-dotnet

[v5.0] CountRequestBuilder doesn't have QueryParameters Filter and Search

Open
#1,587 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug: metadata Kiota OpenApi
Dominant language
C#
Stars
789
Forks
264
Avg merge
15h 17m
Merged PRs (30d)
3

Description

Describe the bug
$count requests depends on $filter and $search parameters.
CountRequestBuilder should include the related QueryParameters in the CountRequestBuilderGetRequestConfiguration

To Reproduce

var count = _graphClient.Users.Count.GetAsync(rc =>
   {
       rc.Headers.Add("ConsistencyLevel","eventual");
       rc.QueryParameters.Search = "displayName:Luca";
       rc.QueryParameters.Filter = "startsWith(mail, luca)";
   });

Expected behavior
the above code should work.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at CountRequestBuilder and its CountRequestBuilderGetRequestConfiguration, which the issue identifies as missing the related QueryParameters. Reproduce the supplied Users.Count.GetAsync call with Search and Filter; done means the request configuration accepts both parameters and the count request works as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.