Skip to content

Add environment variable to hide Requests page search bar - #8939

Open
sanjacornelius wants to merge 1 commit into
developfrom
task/FOUR-30287
Open

Add environment variable to hide Requests page search bar#8939
sanjacornelius wants to merge 1 commit into
developfrom
task/FOUR-30287

Conversation

@sanjacornelius

@sanjacornelius sanjacornelius commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

This PR adds a new HIDE_REQUESTS_SEARCH_BAR environment variable that allows the search bar on the Requests page to be hidden when needed.

The Requests page search performs a full-text LIKE "%value%" PMQL query, which can become slow on large datasets. This change gives CloudOps the ability to disable that search UI for specific instances while still allowing users to filter data using the table column filters.

Note: This only affects the Requests page.

Solution

  • Added a new HIDE_REQUESTS_SEARCH_BAR environment variable (defaults to false)
  • Hide the Requests page search bar when the environment variable is enabled
  • Hide the filter chips displayed below the search bar
  • Keep the table column filters available as an alternative
  • Scoped the change to the Requests page only

How to Test

  1. With HIDE_REQUESTS_SEARCH_BAR=false (or not set), open the Requests page.
  2. Verify the search bar and filter chips are displayed
  3. Set HIDE_REQUESTS_SEARCH_BAR=true
  4. Run php artisan config:clear if needed
  5. Refresh the Requests page
  6. Verify the search bar and filter chips are no longer displayed
  7. Verify the table column filters still work.
Screenshot 2026-07-27 at 1 03 24 PM

Related Tickets & Packages

ci:deploy

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.

Add HIDE_REQUESTS_SEARCH_BAR env variable (default false) to .env.example and expose it via app.hide_requests_search_bar (boolean) in config/app.php. Update the requests index view to conditionally hide the Requests page search bar and associated filter chips while keeping table column filters available.
@sanjacornelius
sanjacornelius requested a review from nolanpro July 27, 2026 20:13
@processmaker-sonarqube

Copy link
Copy Markdown

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

@vladyrichter

Copy link
Copy Markdown

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants