Skip to content

🐛 Reordering product categories fails when hidden categories exist #1126

@LogFlames

Description

@LogFlames

Describe the bug

Reordering product categories via POST /events/{event_id}/products/sort fails with "The ordered category IDs must exactly match all categories for the event without missing or extra IDs." even when all category IDs from GET /events/{event_id}/product-categories are included.

The root cause is a mismatch between the two endpoints:

Since the client never receives hidden category IDs, it's impossible to include them in the sort request.

To Reproduce

  1. Create an event with at least one product category where is_hidden = true
  2. Open the event's product management page
  3. Try to reorder product categories via drag & drop
  4. The sort request fails with the error above

Expected behavior

Reordering should succeed. Hidden categories should either be excluded from the sort handler's validation check, or the listing endpoint should expose them to organizer-facing callers.

Suggested fix

Show hidden categories in admin panel to allow reordering them (and make "hidden" mean hidden for the consumer).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions