Skip to content

Conversation

@rodriquelca
Copy link
Contributor

@rodriquelca rodriquelca commented Jan 19, 2026

Issue & Reproduction Steps

Available self service tasks not displayed for non-admin users due to inefficient query for filtering

Solution

  • create availableSelfServiceTasksQuery
image

How to Test

described in the related ticket

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

ci:deploy


Note

Improves performance and correctness of self-service task visibility while reducing payloads from the tasks API.

  • Introduces User::availableSelfServiceTasksQuery() (subquery) and refactors call sites to use it instead of plucked ID arrays (in PMQL Status = Self Service, applyForCurrentUser, and related filters)
  • Adds optional fields param to TaskController@index; ensures id is always selected; RequestDetail.vue now requests only required columns
  • Updates PMQL/self-service SQL expectations and adds comprehensive tests: equivalence and stress tests for the subquery vs array approach, plus adjusted FilterTest assertions

Written by Cursor Bugbot for commit 0a556ce. This will update automatically on new commits. Configure here.

…users due to inefficient query for filtering
@caleeli caleeli requested a review from nolanpro January 19, 2026 20:29
@vladyrichter
Copy link

QA server K8S was successfully deployed https://ci-b9abdd8c8b.engk8s.processmaker.net

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@vladyrichter
Copy link

QA server K8S was successfully deployed https://ci-b9abdd8c8b.engk8s.processmaker.net

@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Copy link
Contributor

@julceslauhub julceslauhub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants