directus-labs / directus-template-cli

Apply "templates" to a new, empty Directus project.
MIT License
87 stars 15 forks source link

fix: add project color for the website template project settings #37

Closed joggienl closed 1 year ago

joggienl commented 1 year ago

I noticed an error while applying the website template:

Error loading settings [
  {
    message: `Validation failed for field "project_color". Value can't be null.`,
    extensions: {
      code: 'FAILED_VALIDATION',
      field: 'project_color',
      type: 'nnull'
    }
  }

Looking at the Agency OS template I made the assumption that it would be better to define a value here, so I have set it to the default Directus color. Tested locally, the import error is gone (works on my machine).

bryantgillespie commented 1 year ago

@joggienl Were you trying to apply AgencyOS against 10.7.0?

I believe that project_color validation was added in the most recent version which wasn't out when we extracted the template for the AgencyOS instance.

bryantgillespie commented 1 year ago

Nevermind. Saw it was the website template. 👍

joggienl commented 1 year ago

Thanks @bryantgillespie!