Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove homepage_controller #1327

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Remove homepage_controller #1327

merged 1 commit into from
Jul 19, 2024

Conversation

stephencdaly
Copy link
Contributor

@stephencdaly stephencdaly commented Jul 18, 2024

What problem does this pull request solve?

Trello card: https://trello.com/c/tRzLMO7a/1612-remove-homepagecontroller-from-forms-admin

Now that the groups feature has been enabled, and the code that checks the feature flag has been removed, we can remove the HomepageController and set the app root to the groups index page.

This means that visiting / directly renders the groups index page. /groups also renders the groups index page, and this is where the back links point to. We don't see any issues with this behaviour and it just makes testing slightly easier.

Keeping the back links pointing to /groups also means that if we update the homepage in future, there will be fewer changes to make.

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?
  • Has all relevant documentation been updated?

Copy link
Contributor

@jamie-o-wilkinson jamie-o-wilkinson left a comment

Choose a reason for hiding this comment

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

LGTM and works locally 🥇

Now that the groups feature has been enabled, and the code that checks
the feature flag has been removed, we can remove the
HomepageController and set the app root to the groups index page.

This means that visiting `/` directly renders the groups index page.
`/groups` also renders the groups index page, and this is where the
back links point to. We don't see any issues with this behaviour and
it just makes testing slightly easier.

Keeping the back links pointing to `/groups` also means that if we
update the homepage in future, there will be fewer changes to make.
Copy link

sonarcloud bot commented Jul 19, 2024

@stephencdaly stephencdaly merged commit e4368fe into main Jul 19, 2024
3 checks passed
@stephencdaly stephencdaly deleted the remove-homepage-controller branch July 19, 2024 10:15
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.

None yet

2 participants