-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix: Skip JSObject eval where the path is the function #41157
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
WalkthroughA conditional check was added to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (9)📓 Common learnings
📚 Learning: in `app/client/src/workers/evaluation/handlers/jslibrary.ts`, when removing keys from `self`, use `d...
Applied to files:
📚 Learning: the use of `any` for the `entityproperties` parameter in the `getjsactionbindings` function within `...
Applied to files:
📚 Learning: the `updatejscollectionactionrefactor` method in `jsactionapi.tsx` includes a check to ensure `actio...
Applied to files:
📚 Learning: in test cases within `datatreeevaluator/test.ts`, type safety is not a priority, and using `any` is ...
Applied to files:
📚 Learning: the `updatejscollection` method in `jsactionapi.tsx` uses optional chaining and logical and to safel...
Applied to files:
📚 Learning: the `entity_type.module_instance` case in `entityproperties.tsx` is intentionally a combination of t...
Applied to files:
📚 Learning: the use of `any` type for `moduleinstanceentities` in `app/client/src/ce/entities/datatree/types.ts`...
Applied to files:
📚 Learning: the `geterrorpropertypath` function in `anvilwidgetselectionsaga.ts` includes a temporary fix to han...
Applied to files:
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
Documentation and Community
|
Shadow EE PR to verify tests https://github.com/appsmithorg/appsmith-ee/pull/8057 |
Description
JSObjects and JSModuleInstance function paths were earlier skipped eval when present in the eval order. In the reactive actions PR this check was removed and due to that JSModuleInstances function were overriden in
evalContextCache
with it's uneval value. Due to which during any eval where the JSModuleInstance function is present as a binding, fails to evaluateThis PR reverts the check
Fixes #41146
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/16665740260
Commit: 9a10adb
Cypress dashboard.
Tags:
@tag.All
Spec:
Fri, 01 Aug 2025 05:00:23 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit