Skip to content

feat(FOUR-32024): review and fix the calculation of DB timing when loaded by octane#8885

Open
rodriquelca wants to merge 1 commit into
feature/FOUR-30918from
feature/FOUR-32024
Open

feat(FOUR-32024): review and fix the calculation of DB timing when loaded by octane#8885
rodriquelca wants to merge 1 commit into
feature/FOUR-30918from
feature/FOUR-32024

Conversation

@rodriquelca

@rodriquelca rodriquelca commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

bd:dur accumulates requests because $queryTime is static and never reset. Under Octane bd:dur grows on everey call to the same end point.

Solution

Reset $queryTime at the start of each request via beginRequestTiming() in ServerTimingMiddleware.
image

How to Test

./vendor/bin/phpunit tests/Feature/ServerTimingMiddlewareTest.php --testdox

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.

@processmaker-sonarqube

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

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.

1 participant