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

Report empty model properties supplied via YAML maps

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1
    • None
    • None

    Description

      If the properties of a model are supplied via the YAML map syntax, and have no sub properties (such as "type" or "i18n"), then the Detail subapp of a created app will not show a field for the property.

      And, if none of the properties has a subfield - then the entire Detail subapp will not be created in the app.

      Since this can be unexpected, we should log an error when such a definition is detected, and ideally report in the problems view of the definition to.

       

      Use the following YAML to reproduce:

      contentTypes/bike.yaml

      datasource:
        workspace: bikes
        autoCreate: true
      model:
        properties:
          title:
          color:
      

      (title and color are supplied via YAML map syntax.)

       

      apps/bikes.yaml

      !with-type:bike
      label: Bikes
      

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                dai.ha Dai Ha
                czimmermann Christopher Zimmermann
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Time Spent - 2d 3h Remaining Estimate - 1h
                      1h
                      Logged:
                      Time Spent - 2d 3h Remaining Estimate - 1h
                      2d 3h