feat: expose organisation merge in staff console - #721
Open
Joe-Heffer-Shef wants to merge 1 commit into
Open
Joe-Heffer-Shef wants to merge 1 commit into
Joe-Heffer-Shef wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ConsoleMergeOrganisationViewso staff can merge one organisation into another from the admin console, wrapping the existingorganisation_service.merge_organisations()(previously only reachable via themerge_organisationsmanagement command, Org merge tool: management command to merge duplicate organisations #676).plan_organisation_merge) once a target org is chosen; POST performs the merge and redirects to the merged-into organisation's detail page.Screenshots
The org console page has a new button:
Select the target org

Merge preview
Test plan
python manage.py test home.tests.test_console_merge_organisation_view— 8 new tests passpython manage.py test home/tests --parallel=auto --failfast— full home suite passesflake8clean on changed files🤖 Generated with Claude Code