craftcms/guest-entries

project.yaml sections are wacky (__assoc__)

timkelty opened this issue · 2 comments

Never seen this, assuming it isn't right…

    enabled: '1'
    licenseKey: null
    schemaVersion: 2.1.0
    settings:
      enableCsrfProtection: '1'
      entryVariable: guestEntry
      sections:
        __assoc__:
          -
            - 11b69b4a-1092-43ff-bcdd-eb21216363cb
            -
              allowGuestSubmissions: '1'
              authorUid: a2f92020-7412-4bbb-b86f-6635555ae888
              enabledByDefault: '1'
              runValidation: '1'
              sectionUid: 11b69b4a-1092-43ff-bcdd-eb21216363cb
          -
            - 231b3d4f-4f58-47d8-9dec-a490e49917c1
            -
              allowGuestSubmissions: '1'
              authorUid: a2f92020-7412-4bbb-b86f-6635555ae888
              enabledByDefault: '1'
              runValidation: '1'
              sectionUid: 231b3d4f-4f58-47d8-9dec-a490e49917c1
          -
            - 9fef0e0f-6b9d-401e-95c7-0e7487a590db
            -
              allowGuestSubmissions: '1'
              authorUid: a2f92020-7412-4bbb-b86f-6635555ae888
              enabledByDefault: ''
              runValidation: '1'
              sectionUid: 9fef0e0f-6b9d-401e-95c7-0e7487a590db
          -
            - abd44075-dff1-4f3f-8b87-63a6857f3d0d
            -
              allowGuestSubmissions: '1'
              authorUid: a2f92020-7412-4bbb-b86f-6635555ae888
              enabledByDefault: ''
              runValidation: '1'
              sectionUid: abd44075-dff1-4f3f-8b87-63a6857f3d0d

It’s right. As of Craft 3.4, all associative arrays in the project config are sorted by keys to reduce likelihood of Git conflicts. But that could have unexpected consequences for plugin settings and other component settings, so Craft will “pack” their associative arrays up into that non-associative syntax you are seeing, and “unpack” them on retrieval.

I've noticed it to be normal since…this was just the first I saw it so it freaked me out. Thanks!