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

Make filter and orderby work for fields that need to be expanded #249

Merged
1 commit merged into from
Apr 14, 2023

Conversation

ghost
Copy link

@ghost ghost commented Apr 12, 2023

Description

With this change if you put a field in $filter or $orderby which requires expansion, the underlying query will expand it. This works regardless of whether the field is $expand in the returned data.

Type of Change

[ ] Bug Fix
[X] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@ghost ghost force-pushed the filter_on_expanded branch from 2e9b64d to 82e1bb9 Compare April 13, 2023 14:56
@ghost ghost changed the title Make odata filter and orderby work for Expanded fields Make filter and orderby work for fields that need to be expanded Apr 13, 2023
@ghost ghost marked this pull request as ready for review April 13, 2023 14:59
@ghost ghost self-requested a review as a code owner April 13, 2023 14:59
@ghost ghost force-pushed the filter_on_expanded branch 2 times, most recently from 6aae23d to 6a5f4ca Compare April 13, 2023 15:10
With this change if you put a field in $filter or $orderby which
requires expansion, the underlying query will expand it. This works
regardless of whether the field is $expand in the returned data.
@ghost ghost force-pushed the filter_on_expanded branch from 6a5f4ca to 75dce72 Compare April 14, 2023 08:00
@ghost ghost merged commit 9d332ee into main Apr 14, 2023
5 checks passed
@ghost ghost deleted the filter_on_expanded branch April 14, 2023 08:48
This pull request was closed.
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.

None yet

3 participants