Uploaded image for project: 'Content Types'
  1. Content Types
  2. MGNLCT-171

CT-based apps' names way too related to content type names

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None

    Description

      Steps to reproduce

      1.  In this version of a light module - in the withAuthorCatalog branch, all works perfectly, despite both CT name is in plural: "authors.yaml"

      (https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/bookshelf/raw/contentTypes/authors.yaml?at=7150e9633569d59218af19b053e3b6eda6754906)

      and the app's name is in plural as well: "authors.yaml"

      https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/bookshelf/raw/apps/authors.yaml?at=fa77ec65b42fe085ee9b66992d1f346ca794919f

      After following the best practice to have content type names in singular (MGNLCT-169 DOCS: Document that contenttype names should be singular),
      the content type name was changed to singular, tha app name was left in plural:

      https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/bookshelf/commits/bfe90421ec6c5792daddf083eab3a18e15cfd261

      and after installing the module, curiously, one can open the "author" app:


      despite the plural in the yaml file: 

      The app works:

      but one cannot edit any item in it:

      because the edit actions are bound with the singular form of the app:

      Expected results

      Renaming content type name should not affect app name and its actions.

      Actual results

      Workaround

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          1. image-2021-01-22-15-45-30-164.png
            image-2021-01-22-15-45-30-164.png
            11 kB
          2. image-2021-01-22-15-46-27-231.png
            image-2021-01-22-15-46-27-231.png
            9 kB
          3. image-2021-01-22-15-47-35-648.png
            image-2021-01-22-15-47-35-648.png
            20 kB
          4. image-2021-01-22-15-48-46-841.png
            image-2021-01-22-15-48-46-841.png
            60 kB
          5. image-2021-01-22-15-50-20-625.png
            image-2021-01-22-15-50-20-625.png
            11 kB
          6. image-2021-01-26-11-17-11-839.png
            image-2021-01-26-11-17-11-839.png
            32 kB
          7. image-2021-01-26-13-31-16-369.png
            image-2021-01-26-13-31-16-369.png
            10 kB
          8. pluralCT-pluralApp.png
            pluralCT-pluralApp.png
            63 kB
          9. singularCT-pluralApp.png
            singularCT-pluralApp.png
            71 kB
          10. singularCT-pluralAppWithAppName.png
            singularCT-pluralAppWithAppName.png
            66 kB
          11. sinplu.zip
            0.9 kB

          Issue Links

            Activity

              People

                Unassigned Unassigned
                mdrapela Martin Drápela
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Bug DoR
                    Task DoD