Skip to content

Backfill display name for anonymous accounts created during #589 window #593

@mircealungu

Description

@mircealungu

Context

PR #589 (merged 2026-04-29) removed the uuid from anonymous account display names but inadvertently left name = NULL. PR #591 fixes the going-forward path by deriving name from the generated username (adjective + animal → "Quirky Owl").

Anonymous accounts created between the merge of #589 and the merge of #591 still have name = NULL in the database. They will continue to:

  • crash the teacher-classroom management page,
  • show a broken Congratulations screen at the end of an exercise session.

See zeeguu/web#1095 for the user-visible symptoms.

Scope

Suggested approach

One-shot script (or SQL) that, for each affected user, derives a display name from the existing username:

"quirky_owl42" -> "Quirky Owl"

i.e. split on _, strip trailing digits from the second segment, capitalize each part, join with a space. The username column is already populated for these users (the bug was only in name), so no need to regenerate.

Acceptance

  • All previously NULL anonymous-account name values are populated.
  • Teacher classroom page renders without crashing for affected users.
  • Congratulations page renders a sensible name for affected users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions