Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

sed added for check only two user

https://gitlab.e.foundation/e/infra/backlog/-/work_items/5428

Test Case 1: Without sed applied (performance issue observed)

  • Ensure no sed modification is applied to the code
    • Keep the function as:

      private function isOnlyUser(): bool {
      return $this->userManager->countUsers() < 2;
      }

    • Deploy or run the application in this state

    • Trigger the functionality that calls isOnlyUser()

    • Monitor logs

    • Observe execution time (expected: ~11 to 30 seconds)

    • Verify logs show slowness or delay

      Screenshot 2026-04-07 at 2.05.44 PM.png

Test Case 2: With sed applied (performance improved)

  • Apply the sed command to modify the code
    • Deploy the sed
    • Trigger the same functionality that calls isOnlyUser()
    • Monitor logs time
    • Observe execution time (expected: fast response)
    • Verify no slowness logs are generated
Edited by AVINASH GUSAIN

Merge request reports

Loading