Skip to content

fixes #834, add DefaultQueryConfigurations class - #835

Merged
xuzhg merged 3 commits into
mainfrom
issue834
Feb 7, 2023
Merged

fixes #834, add DefaultQueryConfigurations class#835
xuzhg merged 3 commits into
mainfrom
issue834

Conversation

@xuzhg

@xuzhg xuzhg commented Feb 6, 2023

Copy link
Copy Markdown
Member

fixes #834

  1. Add DefaultQueryConfigurations class
  2. Use it in ODataOptions (a public api changes)
  3. change the related test codes.

Benefit:

  1. It's a mistake to use DefaultQuerySetting from ModelBuilder ( I think)
  2. Now, we can add other configuration, for example $compute, $search.

ElizabethOkerio
ElizabethOkerio previously approved these changes Feb 7, 2023
@ElizabethOkerio

Copy link
Copy Markdown
Contributor

there are so many tests failing though

gathogojr
gathogojr previously approved these changes Feb 7, 2023

@gathogojr gathogojr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left a few naming suggestions and minor comments. Otherwise LGTM

Comment thread src/Microsoft.AspNetCore.OData/Edm/EdmHelpers.cs Outdated
Comment thread src/Microsoft.AspNetCore.OData/Query/Validator/FilterQueryValidator.cs Outdated
Comment thread src/Microsoft.AspNetCore.OData/Query/DefaultQueryConfigurations.cs Outdated
Co-authored-by: John Gathogo <john.gathogo@microsoft.com>
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.

ASP.NET Core OData should have its own DefaultQuerySettings

3 participants