-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
chore: Action execution changes for modules #29357
Conversation
/ok-to-test |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7106785385. |
/ok-to-test |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7107028099. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7106785385. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7107028099.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7107028099.
|
/ok-to-test |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7112572865. |
WalkthroughWalkthroughThe changes across the codebase reflect a significant refactoring effort, primarily focusing on streamlining the handling of JavaScript collections and actions. The Changes
TipsChat with CodeRabbit Bot (
|
[ReduxActionTypes.EXECUTE_JS_FUNCTION_INIT]: ( | ||
state: JSCollectionDataState, | ||
action: ReduxAction<{ | ||
collectionName: string; | ||
collectionId: string; | ||
collection: JSCollection; | ||
action: JSAction; | ||
}>, | ||
): JSCollectionDataState => | ||
state.map((a) => { | ||
if (a.config.id === action.payload.collectionId) { | ||
if (a.config.id === action.payload.collection.id) { | ||
const newData = { ...a.data }; | ||
const newIsDirty = { ...a.isDirty }; | ||
unset(newData, action.payload.action.id); |
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 use of unset
from lodash to remove properties from newData
and newIsDirty
may be unnecessary since the spread operator is used to create new objects immediately after. This could be simplified by not copying these properties in the first place if they are not needed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7112572865.
|
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7112572865.
To know the list of identified flaky tests - Refer here |
/ok-to-test |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/7114659727. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7114659727. |
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/7114659727. |
Description
CE changes for confirm before calling of query and js module
PR fixes following issue(s)
Fixes # (issue number)
Type of change
Testing
How Has This Been Tested?
Test Plan
Issues raised during DP testing
Checklist:
Dev activity
QA activity:
Test Plan Approved
label after Cypress tests were reviewedTest Plan Approved
label after JUnit tests were reviewedSummary by CodeRabbit
Refactor
collection
object.New Features
Bug Fixes
Documentation
Style