Feature ask: Have ability to ignore query options when EnableQueryAttribute use query options to apply queryable.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 505
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
Assemblies affected
Which assemblies and versions are known to be affected e.g. ASP.NET Core OData 8.x
Describe the bug
@xuzhg , as we discussed, hope we can extend EnableQueryAttribute to support setting ignore query options when apply ODataQueryOptions to queryable during OnActionExecuted since consumer may pass the pagination to underlying backend service and only use in memory filter.
Reproduce steps
The simplest set of steps to reproduce the issue. If possible, reference a commit that demonstrates the issue.
Data Model
Please share your Data model, for example, your C# class.
EDM (CSDL) Model
Please share your Edm model, for example, CSDL file.
You can send $metadata to get a CSDL XML content.
Request/Response
Please share your request Uri, head or the request body
Please share your response head, body.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Please share your call stack or any error message
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
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 by tracing EnableQueryAttribute and its OnActionExecuted handling of ODataQueryOptions applied to an IQueryable. Clarify which query options should be ignored when pagination is delegated to an underlying backend service and filtering remains in memory. Done means the behavior and supported options are specified and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100