-
Notifications
You must be signed in to change notification settings - Fork 475
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
[feature/netcore] Support "/$count" and "?$count=true" #1153
Comments
Fixed by #1152 |
Sorry, disregard. I had to force VS to refresh the solution to see the changes. |
@robward-ms Sorry for all the noise, but I just checked, and while inline counts ( |
The /$count is likely an issue with formatting, #1157 has the latest formatting code. I'm seeing a good pass rate in the latest code on my working branch (NetCore-Latest). I'll leave the issue open until we can verify it's fixed. |
@robward-ms Thanks. I've been collecting a list of items I've found that currently do not work. Should I log them as individual issues, or create 1 issue with a bulleted/checklist? Some are fairly specific (ex. nested $expands) and some might become fixed on your latest changes. Unrelated, but I just logged this (OData/lab#79) that you might have some feedback on. Thanks for all your hard work. |
@techniq - Yes, please do files issues. I think an issue per bug is cleaner but if they are related, i.e. $expand problems, feel free to lump those together. |
@robward-ms Sounds good. I'll look to pull down your NetCore-Latest and test there before submitting new issues (that might already been resolved by unmerged PRs). Is that branch your "develop" branch that you keep in sync with your pending PRs? |
@robward-ms I just pulled down your NetCore-Latest branch and |
This is fixed and can be closed (using 7.0.0-Nightly201712181325). I don't seem to have the ability to close this myself now. |
@techniq - Thanks for the feedback! |
I think this needs to be reopened. I am encountering this issue with Microsoft.AspNetCore.Odata 7.2.1 / Microsoft.AspNetCore.OData.Versioning.ApiExplorer 3.2.3
|
Can confirm. Having the same issue over here. |
I'm also having the same issue with OData V7.2.1 and V7.2.2, Versioning V3.2.4, and ApiExplorer V3.2.3. All $select, $filter, $top, $skip, etc works fine. But using $count doesn't return the count value alongside the result array. endpoint: "templates/v1?$count=true" |
It appears neither counting all entities (
/SomeEntity/$count
) nor adding counts inline (/SomeEntity?$count=true
) are supported with the alpha release of Microsoft.AspNetCore.ODataAssemblies affected
Microsoft.AspNetCore.OData.dll, 7.0.0-Nightly201712061320
Reproduce steps
SomeEntity/$count
SomeEntity?$count=true
Expected result
@odata.count
added as metadata to responseActual result
@odata.count
The text was updated successfully, but these errors were encountered: