Skip to content

refactor: remove manual group creation UI - #2826

Merged
olleolleolle merged 1 commit into
feature/auto-create-groups-on-chapter-creationfrom
feature/remove-manual-group-creation
Aug 30, 2026
Merged

refactor: remove manual group creation UI#2826
olleolleolle merged 1 commit into
feature/auto-create-groups-on-chapter-creationfrom
feature/remove-manual-group-creation

Conversation

@mroderick

Copy link
Copy Markdown
Collaborator

Context

Follow-up to #2823 / PR #2824. With chapters now auto-creating their Students and Coaches groups on creation, the manual group creation flow is dead code.

Changes

  • Removed Admin::GroupsController#new/#create and app/views/admin/groups/new.html.haml (also drops the last Chosen-enhanced admin <select>)
  • Removed the "New group" link from the admin menu
  • Removed the group new/create routes, plus the already-stale index route (the controller has no index action)
  • Removed GroupPolicy#create? and its spec coverage
  • Removed the admin group creation feature spec

What stays

  • The group show page (members list, eligible count, subscriptions) — still useful
  • The Group model and all its scopes — still the core entity for subscriptions and invitations

Deferred

  • Folding the chapter_with_groups fabricator into the base chapter fabricator — it touches ~63 Fabricate(:chapter) call sites across the spec suite and belongs in its own cleanup PR.

Testing

  • spec/features/admin/ — 114 examples, 0 failures
  • group model/policy/feature specs — 8 examples, 0 failures
  • RuboCop clean on changed files; haml-lint clean on the admin menu

Stacked PR

Stacked on feature/auto-create-groups-on-chapter-creation (PR #2824). Once #2824 merges, this PR will retarget to master automatically.

Closes #2823

Now that every chapter gets its Students and Coaches groups
automatically on creation, the manual group creation flow is dead
code (follow-up to #2823).

- Remove Admin::GroupsController#new/#create and the new.html.haml
  view (also drops the last Chosen-enhanced admin <select>)
- Remove the "New group" link from the admin menu
- Remove the new/create group routes, plus the already-stale index
  route (the controller has no index action)
- Remove GroupPolicy#create? and its spec coverage
- Remove the admin group creation feature spec

Kept: the group show page (members, eligible count, subscriptions).
Deferring the chapter_with_groups fabricator fold into the base
chapter fabricator - it touches ~63 Fabricate(:chapter) call sites
and belongs in its own cleanup.

Stacked on feature/auto-create-groups-on-chapter-creation (PR #2824).
@mroderick
mroderick marked this pull request as ready for review August 30, 2026 18:49
@mroderick
mroderick requested a review from olleolleolle August 30, 2026 18:49
@olleolleolle
olleolleolle merged commit a76cd5f into feature/auto-create-groups-on-chapter-creation Aug 30, 2026
@olleolleolle
olleolleolle deleted the feature/remove-manual-group-creation branch August 30, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants