Skip to content

Remove DefaultGroupService#2694

Merged
stephencdaly merged 1 commit into
mainfrom
remove-code-to-add-forms-to-default-group
Apr 14, 2026
Merged

Remove DefaultGroupService#2694
stephencdaly merged 1 commit into
mainfrom
remove-code-to-add-forms-to-default-group

Conversation

@stephencdaly
Copy link
Copy Markdown
Contributor

@stephencdaly stephencdaly commented Apr 13, 2026

This service existed because Forms orginially were not created in groups. When groups were added, we moved all live forms for users who were a member of an organisation into a group for their organisation, and draft forms into a trial group for the user.

There were some users that had not selected an organisation, so their forms were not moved into groups. The DefaultGroupService was used to move those forms into a default trial group for the user after they selected their organisation.

There are no longer any forms that don't have a group, so this code can be removed.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

@stephencdaly stephencdaly force-pushed the remove-code-to-add-forms-to-default-group branch from 61708c2 to 87059ee Compare April 13, 2026 16:40
This service existed because Forms orginially were not created in
groups. When groups were added, we moved all live forms for users who
were a member of an organisation into a group for their organisation,
and draft forms into a trial group for the user.

There were some users that had not selected an organisation, so their
forms were not moved into groups. The DefaultGroupService was used to
move those forms into a default trial group for the user after they
selected their organisation.

There are no longer any forms that don't have a group, so this code
can be removed.
@stephencdaly stephencdaly force-pushed the remove-code-to-add-forms-to-default-group branch from 87059ee to 9058e46 Compare April 13, 2026 16:48
@github-actions
Copy link
Copy Markdown

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2694.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

Copy link
Copy Markdown
Contributor

@thomasiles thomasiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stephencdaly stephencdaly added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit a9f24be Apr 14, 2026
3 of 4 checks passed
@stephencdaly stephencdaly deleted the remove-code-to-add-forms-to-default-group branch April 14, 2026 08:55
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