At the moment there is no way to export a scald context and its configuration.

For example after adding a new context through the UI, it would be nice to be able to export that context in a feature. Also it is possible that we change the transcoder of a context. So should be able to export not just newly created contexts but even the default contexts' configuration.

CommentFileSizeAuthor
#3 scald-exportable-1890104-3.patch8.16 KBjcisio

Comments

jcisio’s picture

Category: feature » task

This would be a task!

jcisio’s picture

Assigned: Unassigned » jcisio
jcisio’s picture

Assigned: jcisio » Unassigned
Status: Active » Needs review
StatusFileSize
new8.16 KB

This is a patch to make Context transcoder setting Ctools exportable. Only the settings is exportable, as contexts are defined in code and UI created contexts are already in a variable. I just make a mininal patch without any unnecessary refactoring.

update.php is required, as there is database schema change.

jcisio’s picture

Status: Needs review » Needs work

It needs to clear cache automatically when reverting.

jcisio’s picture

Status: Needs work » Fixed

Well, I don't think that bug prevent this patch from getting in. Thus I went ahead and committed it. We need to clear cache after features-revert and it could be fixed in a follow-up, low-priority issue.

Another follow-up is to replace the deprecated structure $contexts[$name]['type_format'][$type] with $contexts[$name]['transcoder' and so on].

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.