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

fix $apply with $groupby with more than one property & $top #1014

Conversation

ElizabethOkerio
Copy link
Contributor

@ElizabethOkerio ElizabethOkerio commented Aug 9, 2023

This PR Fixes #979 and #969

Moved the EnsureFlattenedProperties method from ApplyBind in BinderExtensions class to ApplyToCore in OrderByQueryOption class. The reason for this is to avoid the EnsureFlattenedProperties being called more than once since it was in a foreach loop and was assigning null to FlattenedProperties on the second loop.

@ElizabethOkerio ElizabethOkerio changed the title fix $apply with $groupby with more than one property fix $apply with $groupby with more than one property & $top Aug 9, 2023
@ElizabethOkerio ElizabethOkerio linked an issue Aug 9, 2023 that may be closed by this pull request
KenitoInc
KenitoInc previously approved these changes Aug 9, 2023
@gathogojr
Copy link
Contributor

@ElizabethOkerio Curious, did this change between 7.x and 8.x?

@ElizabethOkerio
Copy link
Contributor Author

ElizabethOkerio commented Aug 9, 2023

@gathogojr Yes.. This came about with the binders restructuring changes. This is what has been causing the $appy and $groupby issues in 8.x..

This is the change I made here #919 that fixed some of the issues in 8.x. In 7.x the flattening of properties is done but in 8.x> 8.05 where the restructuring of binders was done the flattening was left out.

@ElizabethOkerio ElizabethOkerio force-pushed the fix/apply_with_grouping_by_more_than_one_prop branch from 122fbff to 9cb3fdf Compare August 9, 2023 09:03
Copy link
Contributor

@gathogojr gathogojr left a comment

Choose a reason for hiding this comment

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

:shipit:

@xuzhg xuzhg merged commit e7ae0ce into OData:main Aug 9, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants