Repository navigation
Conversation
…detailed documentation
Introduce PUT /api/1.1/tasks/{id} for COMPLETED status, gated by
TASK_UPDATE_V1_1_ENABLED, with optional raw token persistence behind
TOKEN_PERSISTENCE_RAW_ENABLED.
https://processmaker.atlassian.net/browse/FOUR-32800
Batch-load listing relations after pagination to avoid per-row queries for process version alternative, active tasks, process categories, and project assets while preserving the existing API response shape. - Add ProcessRequestListingRawRepository to hydrate activeTasks (raw SQL) and process data (Eloquent + batched projects/categories) - Use withAggregate for process_version_alternative and read it without lazy-loading ProcessVersion - Add activeTasks relation and use preloaded data in ProcessRequests - Preload projects JSON and reuse loaded categories in Process accessors - Apply hydration in index and getRequestsByCase - Add bounded query-count feature test https://processmaker.atlassian.net/browse/FOUR-32947
feat(FOUR-32801): improve Jobs execution when the PUT tasks endpoint is executed
feat(FOUR-32800): add v1.1 task completion endpoint with raw SQL path
FOUR-32800: test compares legacy and optimized
…ng and optimizing pagination
…nd response structure validation
…mps are null Prevent task completion failures when recording the Prometheus activity_execution_time_seconds histogram in BpmnSubscriber. Fall back to created_at and completed_at when created_at_ms or completed_at_ms are unavailable, and skip the metric observation when either timestamp is still missing. https://processmaker.atlassian.net/browse/FOUR-33645
FOUR-32144: Improve the api PUT /api/1.0/tasks/{task-id}
FOUR-32946 Improve the API /api/1.0/processes
perf(FOUR-32947): reduce N+1 queries on requests listing (FOUR-32947)
fix(FOUR-33645): guard activity execution time metric when ms timesta…
FOUR-32126: Inbox >> First loading is to slow
PR SummaryMedium Risk Overview Listings and hydration: Process index now paginates, qualifies Optional raw SQL execution (env flags): Tasks page caching: Frontend: Axios gets a short-TTL GET cache and in-flight deduplication ( Smaller fixes: recommendation job deduplication ( Reviewed by Cursor Bugbot for commit 2bcece4. Bugbot is set up for automated code reviews on this repo. Configure here. |
Use npm branch builds for modeler, screen-builder, and vue-form-elements, and Packagist dev-epic/FOUR-32144 for package-savedsearch. Co-authored-by: Cursor <[email protected]>
fix(FOUR-34193): resolve V1.1 TaskController from the container on optimized index
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2bcece4. Configure here.
| } | ||
|
|
||
| $handledIncludes = ['data', 'processRequest', 'process', 'user', 'draft', 'processRequest.process']; | ||
| $additionalIncludes = array_values(array_diff($includes, $handledIncludes)); |
There was a problem hiding this comment.
Dropped processRequest.process include
Medium Severity
processRequest.process is treated as already handled in the optimized task query, but no constrained with() is registered for it. Clients that send that include no longer eager-load the nested process and either miss the relation or lazy-load the full process per row.
Reviewed by Cursor Bugbot for commit 2bcece4. Configure here.
| 'closed' => $repository->saveClosedToken($token), | ||
| default => $repository->saveActivatedToken($token), | ||
| }; | ||
| } |
There was a problem hiding this comment.
Raw token saves skip Scout
Medium Severity
When TOKEN_PERSISTENCE_RAW_ENABLED is on, token and request updates run as raw UPDATEs and never call Eloquent save(). Scout indexing and other model observers do not run, so searchable task/request documents go stale after complete/activate even though this PR added wasSearchable* hooks.
Additional Locations (2)
Triggered by learned rule: Scout wasSearchable must match shouldBeSearchable
Reviewed by Cursor Bugbot for commit 2bcece4. Configure here.







Issue & Reproduction Steps
In this branch already merge all the changes related to the perfomance staff
Related Tickets & Packages
Code Review Checklist
PR Packages
ProcessMaker/screen-builder#1917
ProcessMaker/vue-form-elements#475
https://github.com/ProcessMaker/package-savedsearch/pull/706