optionally allow image resolution by name #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this enables a use case where one would continuously update the image and re-create it as a new snapshot, causing the id to constantly change but the name to be persistent. since ordinarily name is a really poor way to resolve images, in particular also because we always need to talk to the api to get the actual image, this entire feature is limited to user images rather than all images. specifically this also lessens the API work we need to do.
the template config has a new checkbox to enable this feature, which then prompts a reload of the image combobox to only include user images (and at the same time the values in the model are changed from slugOrIds to names)
at provisioning time we then need to pass a bit more context along so as to resolve accordingly in newImage()
Testing done
Submitter checklist