QuizzifyTech

Bug library › Database testing

Database testing · Users table

Deleted user still appears in the active users report

P2 · MajorIntermediateUsers table

Want to find it yourself first? This page gives away the answer. Play this bug on a fake app screen and see if you can spot it in three tries.

Spot this bug

The clue

One of these users should not be in an “active” list.

Steps to reproduce

  1. Delete an account
  2. Run the active users report

Expected result

Only users with deleted_at = NULL

Actual result

Kabir, deleted on 2 Oct, is listed

Why it matters

This is a major (P2) bug. The feature still works in part, but users get wrong information or a broken step, and many will notice. It should be fixed before or soon after release.

Testing tip

With soft deletes, every query must filter deleted rows. Delete a record, then check every list and count.

How to find bugs like this

Database bugs show up when you look at the tables: duplicate rows, joins that double totals, deleted users still active, values cut short or saved in the wrong type. When you test, try these checks:

  • Run the query yourself and count the rows.
  • Look for duplicates that differ only in case or spaces.
  • Check deleted and archived records.
  • Compare stored values with what the user typed.

More Database testing bugs

See all 158 bugs