Default to path instead of ID for asset links
Opened this issue · 3 comments
dkarlovi commented
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | yes |
Branch? | master |
For example, xml
provider has setting "Example file" which stores the reference to an asset to use.
This works, but since the reference is committed and pushed into the project, it becomes hard to keep these in sync across environments (dev, staging, prod) where you're not able to control which ID an asset get assigned:
- on dev, the file might be 13
- on staging, 99
- on prod, 75
It's much easier to keep the same asset in the same path across environments.
dpfaffenbauer commented
Agree, can you make a PR?
dkarlovi commented
Sure, WDYT about BC? Do we auto-upgrade to path in the UI if it's numeric?
dpfaffenbauer commented
dev-master is a new major version, so we could ignore BC... I don't think we should upgrade the config, just rename the field and make a fallback to check for the old ID value in the Provider.