-
Notifications
You must be signed in to change notification settings - Fork 22
Make ["component"] lookups work in expression validation #1497
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
Conversation
📝 WalkthroughWalkthroughExpressionEvaluator now checks the entire evaluation context for null and forwards a nullable PageId into GetComponentContext; LayoutEvaluatorState.GetComponentContext signature was changed to accept a nullable pageName and only applies the single-match shortcut when pageName is non-null. Tests updated and a new fixture added. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
c7d5c96
to
4b2cd6f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌
The automatic backport to The release branch Manual backport required: # Checkout the release branch
git checkout release/v8.8
git pull origin release/v8.8
# Create backport branch
git checkout -b backport/1497
# Cherry-pick the merge commit
git cherry-pick 3ee9a9a93e98efce877d03edc831c923963f3500
# Resolve conflicts, then:
git add .
git cherry-pick --continue
# Push and create PR
git push origin backport/1497 |
|
* Make ["component"] lookups work in expression validation * Fix snapshot * Add shared test
* Make ["component"] lookups work in expression validation * Fix snapshot * Add shared test
For historical reasons ["component"] lookups don't assume component ids are unique across pages, thus a component lookup wanted to know the current page and failed if no component is available. Frontend has since enforced unique component ids across all pages in a layout set, so this restriction no longer applies, but the lookup code is very simple to keep in backend.
TODO:
Copy shared tests from frontend (or write them)Related issues:
ExpressionValidation
app-frontend-react#3735Summary by CodeRabbit
Bug Fixes
Tests