Skip to content

fix(api): widen slugify suffix from 4 to 8 chars or add retry loop #2006

@cdcore09

Description

@cdcore09

Summary

Event slug generation uses Math.random().toString(36).slice(2, 6) — a 4-character base36 suffix. Birthday-paradox math gives a collision rate around 1-in-1.6M per name, surfacing as a generic 500 from the unique-constraint insert. Low but non-zero.

Requirements

Context

Flagged in the Plan 2 review. Forms (Plan 4) will also need slug generation — fix once and reuse.

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