-
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
batching update success #37915
batching update success #37915
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes in this pull request involve updates to Redux action constants and the introduction of a new generator function in the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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
Documentation and Community
|
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
🧹 Outside diff range and nitpick comments (2)
app/client/src/sagas/ActionExecution/PluginActionSaga.ts (1)
1698-1699
: Remove unnecessary ESLint directiveThe
eslint-disable-next-line prefer-const
comment is not associated with any code. Since there is no variable declaration following it, this directive can be removed to clean up the code.app/client/src/ce/actions/evaluationActionsList.ts (1)
99-99
: Remove commented-out action typeThe line commenting out
ReduxActionTypes.BATCH_UPDATES_SUCCESS
is no longer needed and can be removed to keep the codebase clean.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (3)
app/client/src/ce/actions/evaluationActionsList.ts
(2 hunks)app/client/src/ce/constants/ReduxActionConstants.tsx
(1 hunks)app/client/src/sagas/ActionExecution/PluginActionSaga.ts
(3 hunks)
✅ Files skipped from review due to trivial changes (1)
- app/client/src/ce/constants/ReduxActionConstants.tsx
takeEvery( | ||
ReduxActionTypes.START_EVALUATION, | ||
captureActionsWithinPeriodTriggers, | ||
), |
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.
Ensure a single instance of 'captureActionsWithinPeriodTriggers'
Using takeEvery
with ReduxActionTypes.START_EVALUATION
may start multiple instances of captureActionsWithinPeriodTriggers
if START_EVALUATION
is dispatched multiple times. To prevent concurrent executions, consider using takeLatest
to ensure only one instance runs at a time.
Apply this diff to modify the saga effect:
- takeEvery(
+ takeLatest(
ReduxActionTypes.START_EVALUATION,
captureActionsWithinPeriodTriggers,
),
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
takeEvery( | |
ReduxActionTypes.START_EVALUATION, | |
captureActionsWithinPeriodTriggers, | |
), | |
takeLatest( | |
ReduxActionTypes.START_EVALUATION, | |
captureActionsWithinPeriodTriggers, | |
), |
This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected. |
This PR has been closed because of inactivity. |
Description
Tip
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.
Fixes #
Issue Number
or
Fixes
Issue URL
Warning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Caution
🔴 🔴 🔴 Some tests have failed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/12138074816
Commit: 1e0a363
Cypress dashboard.
Tags: @tag.All
Spec:
The following are new failures, please fix them before merging the PR:
Tue, 03 Dec 2024 12:11:47 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation