Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1541

bootstrap: ordering files by filename length isnt always very nice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.0.2, 3.1 M1
    • core
    • None

    Description

      Consider the following bootstrap files:

      config.modules.test.templates.babababababababababba.xml
      config.modules.test.templates.mail-form.xml
      config.modules.test.templates.redir.xml
      config.modules.test.templates.std.xml
      config.modules.test.templates.tralalalala.xml
      config.modules.test.templates.utility.xml

      With the current BootstrapFilesComparator, they will be ordered, bootstrapped and appear in the tree in the following order: std, redir, utility, mail-form, tralalalala and babababababababababba, which admitedly doesn't make much sense.

      The reason why the files are ordered by length is an easy hack to bootstrap parent files first (ie config.modules.test.templates.xml would be bootstrapped before any of the above)

      I added BootstrapFilesComparatorTest.testFilesAreOrderedByFileNameLength() to illustrate some of these issues.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              scharles Sameer Charles
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD