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

CSHARP-4935 allow Linq Translation conversion from interface to deriv… #1250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LucStr
Copy link

@LucStr LucStr commented Jan 18, 2024

…ed type.

This will allow for a proper "downcasing" of the type. With my proposed changes we will now be able to run filters if the collection type is an interface.

I also had to change the default implementation of how the DiscriminatedInterfaceSerializer works as there would always be an exception as the object serializer enforces a whitelist for types to be serialized. I would actually like it better if we would instead resolve the class map of the underlying type to serialize a dependent object, but I did not want to touch on this in this PR.

I am unsure about the placement of the ConvertExpressionToFilterTranslatorTest as it is a bit different to the other tests in that file, but it was the only way to trigger the conversion in ConvertExpressionToFilterFieldTranslator

@LucStr LucStr requested a review from a team as a code owner January 18, 2024 22:38
@LucStr LucStr requested review from adelinowona and removed request for a team January 18, 2024 22:38
@adelinowona adelinowona requested review from rstam and removed request for adelinowona January 19, 2024 22:28
@rstam rstam removed their request for review March 14, 2024 21:56
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.

1 participant