Skip to content

[ExpressionLanguage] Fix null coalescing for object properties #49230

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

Closed

Conversation

shadowhand
Copy link

Q A
Branch? 6.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #47192
License MIT
Doc PR n/a

Support deep object traversal that respects null coalescing operator ??, such as:

user.settings.public.dnc ?? false

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "6.3" but it seems your PR description refers to branch "6.2".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

@shadowhand shadowhand changed the base branch from 6.3 to 6.2 February 4, 2023 01:32
@carsonbot
Copy link

Hey!

I think @mytuny has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekas nicolas-grekas modified the milestones: 6.3, 6.4 May 23, 2023
@nicolas-grekas nicolas-grekas modified the milestones: 6.4, 7.1 Nov 15, 2023
@carsonbot carsonbot changed the title [EvaluationLanguage] Fix null coalescing for object properties [ExpressionLanguage] [EvaluationLanguage] Fix null coalescing for object properties Nov 16, 2023
@fancyweb fancyweb changed the title [ExpressionLanguage] [EvaluationLanguage] Fix null coalescing for object properties [ExpressionLanguage] Fix null coalescing for object properties Nov 16, 2023
@fancyweb fancyweb modified the milestones: 6.4, 6.3 Nov 16, 2023
@fancyweb
Copy link
Contributor

I'm closing in favor of #47446 since it was opened before.

@fancyweb fancyweb closed this Nov 16, 2023
@shadowhand shadowhand deleted the fix-47192-eval-null-coalesce branch November 16, 2023 13:39
@shadowhand
Copy link
Author

shadowhand commented Nov 16, 2023

@fancyweb okay, but that patch is incorrect. The test case I included in this PR fails on #47446.

@fancyweb
Copy link
Contributor

Thanks for the warning. I also think the patch in the other PR is wrong so I proposed an alternative solution. Feel free to test it and review it 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Null safe operator in EL does not seem to work as expected
4 participants