locomotivecms / wagon

Wagon is a command line tool that let's you develop for Locomotive right on your local machine.
https://www.locomotivecms.com
MIT License
188 stars 117 forks source link

Locally updated content_type select field options don't update in engine on subsequent wagon deploy #420

Open greyskin opened 1 year ago

greyskin commented 1 year ago

Steps to reproduce:

  1. Create a content_type with a select field with some options
  2. Run wagon deploy [env] -r content_types
  3. Create some content entries in the Back Office
  4. Add a new option to the select field locally
  5. Run wagon deploy [env] -r content_types again
  6. Inspect the model in the Back Office and observe that the new select option does not appear

Workaround:

  1. Delete the select field and all options locally
  2. Run wagon deploy [env] -r content_types again (deletes the select field and all options from the Back Office)
  3. Re-add the select field locally, including the original options as well as the new option
  4. Run wagon deploy [env] -r content_types again
  5. Inspect the model in the Back Office and observe that the new select field option is now available

This workaround has the major drawback of wiping any select options that have been applied to content entries up until this point.