Skip to content

Move workshop domain rules out of Admin::WorkshopsController #2938

Open
1 of 3 issues completed
Open

Description

@mroderick

Problem

Admin::WorkshopsController is the largest controller in the app (~295 lines) and holds domain logic below the presentation layer:

  1. Domain validation in the controller (workshop_type_valid? adds a model error from the controller)
  2. Deletion policy in the controller (4-hour window + no-invitees rule)
  3. Organiser grant/revoke role diffing in private controller methods

Plan

This decomposes into three independent, individually shippable changes, tracked as sub-issues:

Each can land separately; no ordering required.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions