-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
handle error if linked row display value is formula #10378
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
📝 WalkthroughWalkthroughThe pull request introduces a new asynchronous function Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (3)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts (1)
721-724: Refactor to unify string vs. builder returns.
Consider always returning a consistent object structure fromgetLinkedColumnDisplayValue. This avoids repeated ternary checks and potential runtime errors when the value might beundefined.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts(4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: release-docker / buildx
- GitHub Check: unit-tests
- GitHub Check: unit-tests-pg
🔇 Additional comments (5)
packages/nocodb/src/db/formulav2/formulaQueryBuilderv2.ts (5)
19-19: No action needed.
This is a trivial type import line.
110-110: No action needed.
This is just a blank line addition.
674-678: Same potential undefined return concern.
getLinkedColumnDisplayValuereturningundefinedwould break the code at lines 680-684.
680-684: Ensure handling of non-string returns.
This segment expects either a string or an object with a.builder, but will fail iflinkedDisplayValueisundefined.
710-714: Propagate the same undefined handling fix here.
The variablechildDisplayValuecould beundefined, leading to a runtime error in subsequent usage.
Uffizzi Ephemeral Environment Deploying☁️ https://app.uffizzi.com/github.com/nocodb/nocodb/pull/10378 ⚙️ Updating now by workflow run 13084288663. What is Uffizzi? Learn more! |
2f664c5 to
d4e8dff
Compare
Change Summary
Provide summary of changes with issue number if any.
Change type
Test/ Verification
Provide summary of changes.
Additional information / screenshots (optional)
Anything for maintainers to be made aware of