-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feature/reset pi go button #978
Conversation
WalkthroughWalkthroughThe updates introduce a new function to remove duplicate rows in the Changes
Related issues
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 as PR comments)
Additionally, you can add CodeRabbit Configration 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.
Review Status
Actionable comments generated: 7
Configuration used: .coderabbit.yaml
Files selected for processing (4)
- spiffworkflow-backend/bin/data_migrations/run_all.py (3 hunks)
- spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py (1 hunks)
- spiffworkflow-backend/src/spiffworkflow_backend/services/task_service.py (1 hunks)
- spiffworkflow-backend/tests/spiffworkflow_backend/unit/test_process_instance_processor.py (1 hunks)
Additional comments: 2
spiffworkflow-backend/bin/data_migrations/run_all.py (1)
- 90-90: Ensure that calling
remove_duplicate_human_task_rows
does not impact the performance of the data migration script, especially when dealing with large datasets.spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py (1)
- 1232-1232: The addition of
to_task_guid
parameter toupdate_all_tasks_from_spiff_tasks
method call inreset_process
method correctly implements the intended functionality to address the issue of duplicate human tasks by ensuring the reset process uses the correct task ID. This change aligns with the PR objectives and enhances the system's task management capabilities.
Fixes #767
This ensures human tasks that were created for a given task are removed if the process instance is reset to that task. This is apparently how we were getting duplicate human tasks in the table for the same task guid.
This also includes a data migration to remove duplicate human task rows. It finds all rows that have the same task guid and deletes the oldest ones. This should allow for a much cleaner migration with #811.