microsoftgraph / microsoftgraph/msgraph-sdk-dotnet
[v5.0] CountRequestBuilder doesn't have QueryParameters Filter and Search
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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