Component slugs are not presented in generated compass.yml, but are also not available to be edited once a component is "Managed in compass.yml"
Are slugs that are set before switching to config-as-code, and not added in compass.yml, lost?
Hi Keith, thanks for your question. I checked this out, and it does look like a component slug set in the UI will be overwritten if it is later synced with a config that does not have a slug present.
I will be working on a bug fix to add the component slug to the generated compass.yml. In the meantime, you can set the same slug in the compass.yml to prevent any data loss:
slug: my-component-slug
As an update, I pushed a fix that will populate the generated compass.yml with the component slug, if the component has one. That will prevent any data loss when onboarding to config-as-code. Thanks for surfacing this!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.