Rename the module and all settings and namespaces to "front"

Created on 5 April 2024, 8 months ago
Updated 9 September 2024, 3 months ago

Problem/Motivation

Rename the module and all settings and namespaces to "front" like the module name and directory name. That's best practice.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Postponed

Version

10.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    aaron.ferris β†’ made their first commit to this issue’s fork.

  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    I was going to start this, but do we think it'd be worth waiting for some of the bulkier changes to be in before doing this, to avoid conflicts etc?

  • Assigned to aaron.ferris
  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris
  • Issue was unassigned.
  • Status changed to Postponed 8 months ago
  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Thanks @aaron.ferris yes let's wait for that! It's also optional with no "real" benefit.

  • πŸ‡¬πŸ‡§United Kingdom aaron.ferris

    Sounds good thanks

  • πŸ‡«πŸ‡·France erwangel

    Although that's confusing for people wanting to install the module. You require it with composer as "front" but you have it to enable it with drush as "front_page". confusing and not very intuitive when drush tells you "Unable to install modules front due to missing modules front." I had to look in the modules's directory to realize that its "real" name was "front_page" and not "front". I think a quick fix will be useful so more people could install it and you could gain more feedback.

  • πŸ‡¦πŸ‡ΊAustralia elc

    Had a thought about this as it will be a rather large breaking change.

    1. Copy the entire module into a sub-dir called "modules"
    2. Rename all of the base dir module to the correct file and function names (and classes so as not to dup anything)
    3. Add an update to the sub-module to install "front"
    4. Add an enable to base dir module to uninstall "front_page" if it's installed
    5. Add a hook_requirements() to sub-dir module to ensure it can't be installed to start with

    Haven't figured out the intricate details, or if this would work at all but it seems like it would. Use the lifecycle on the sub-dir module.

    Agree with holding off until majority of changes are in so as not to increase the amount of work needed to do this.

Production build 0.71.5 2024