Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continue on [#1298] Support for OData $count operations as per v4.01 spec section 11.2.10 feature #1336

Closed
wants to merge 3 commits into from

Conversation

xuzhg
Copy link
Member

@xuzhg xuzhg commented Nov 26, 2018

Issues

This pull request continues on PR #1298.

Description

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

Copy link
Contributor

@KanishManuja-MS KanishManuja-MS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests failing.

@xuzhg
Copy link
Member Author

xuzhg commented Nov 28, 2018

@KanishManuja-MS Thanks. This PR is not labeled "Ready for review". Please ignore it now and I will update it later.

@xuzhg xuzhg changed the title Dollar count Continue on [#1298] Support for OData $count operations as per v4.01 spec section 11.2.10 feature Dec 14, 2018
@madansr7 madansr7 added this to the vNext milestone Dec 17, 2018
@madansr7 madansr7 added the Ready for review Use this label if a pull request is ready to be reviewed label Dec 17, 2018
@marabooy marabooy removed the Ready for review Use this label if a pull request is ready to be reviewed label Mar 10, 2020
@joshcomley
Copy link

Other than the conflict, what is necessary to get this PR moving?

@KenitoInc
Copy link
Contributor

Other than the conflict, what is necessary to get this PR moving?

Hey @joshcomley
Thanks for you contributions so far in relation to support for $count
Actually I have started looking into this feature. Specifically on these 2 requests:
$expand=navProp/$count
$select=navProp/$count
We need first to get the design.

ps: OData core is currently supporting
$filter=navProp/$count gt 10
$filter=collectionValuedProp/$count gt 10

Lets work together to ensure this feature is realised.
Thanks

@joshcomley
Copy link

Hi @KenitoInc - thanks for getting back so quick!

In case it is of any use, I have just updated my original PR rebasing onto master, merging with this PR's additions:

#1298

The tests pass except for one which I think is unrelated to this PR (Microsoft.OData.Tests.ScenarioTests.UriParser.CustomUriFunctionsTests.AddCustomFunction_ShouldAddFunctionWhichAlreadyExistsAsBuiltInWithSameName_AddAsOverload).

PR 1298 supports $expand=navProp/$count but it doesn't support $select=navProp/$count.

@KenitoInc
Copy link
Contributor

Resolved by PRs #2051 and #2069

@KenitoInc KenitoInc closed this Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants