Skip to content

feat: expose organisation merge in staff console - #721

Open
Joe-Heffer-Shef wants to merge 1 commit into
mainfrom
feat/console-merge-organisation-view
Open

Joe-Heffer-Shef wants to merge 1 commit into
mainfrom
feat/console-merge-organisation-view

Conversation

@Joe-Heffer-Shef

@Joe-Heffer-Shef Joe-Heffer-Shef commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds ConsoleMergeOrganisationView so staff can merge one organisation into another from the admin console, wrapping the existing organisation_service.merge_organisations() (previously only reachable via the merge_organisations management command, Org merge tool: management command to merge duplicate organisations #676).
  • GET renders a confirmation page showing a merge preview (plan_organisation_merge) once a target org is chosen; POST performs the merge and redirects to the merged-into organisation's detail page.
  • Adds a "Merge" link from the organisation detail page.

Screenshots

The org console page has a new button:

image

Select the target org
image

Merge preview

image

Test plan

  • python manage.py test home.tests.test_console_merge_organisation_view — 8 new tests pass
  • python manage.py test home/tests --parallel=auto --failfast — full home suite passes
  • flake8 clean on changed files

🤖 Generated with Claude Code

Wraps organisation_service.merge_organisations() (previously only
reachable via the merge_organisations management command) behind a
staff-only console view with a confirmation/preview page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Joe-Heffer-Shef Joe-Heffer-Shef self-assigned this Sep 8, 2026
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.

1 participant