Brooke opened issue #3: [Incident] TypeError in user-service: crash on empty database query at GitLab AI Hackathon / Participants / brookejlacey

Brooke
2026-03-25T16:28:31Z

Incident Report

Severity: High Service: user-service Environment: staging

What happened

The CI pipeline failed after merging MR !247 — an optimization to the user listing endpoint. The test stage reports a TypeError when the database returns an empty result set.

Error Output

FAILED tests/test_app.py::TestUsers::test_list_users_empty_db
TypeError: 'NoneType' object is not subscriptable
File "app.py", line 91, in list_users
response["newest_user"] = first_user["name"]

Recent Changes

MR !247: "Optimize user listing to reduce memory allocation"

Changed result.get("data", []) to result["data"] for performance

Approved by @chen.wei

Impact

All CI pipelines blocked

User listing endpoint crashes on empty/new databases

23 errors in Cloud Logging in the last 6 hours