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
sedmodification 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
-
Test Case 2: With sed applied (performance improved)
- Apply the
sedcommand 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
