We are currently using methods ContentFragments.UpdateScriptedContentFragments(...) method for automated deployment of factory default widgets
What have we done:
1. Deploy a DLL with a factory default widget provider plugin
2. Plugin from DLL installs widgets via ContentFragments.UpdateScriptedContentFragments(...)
3. Corresponding widgets become available in Widget Studio as a "default" widgets
4. After some time, we change these widget in a source repository
5. We compile and deploy new version of DLL that contains changed widget
6. Plugin from DLL updates widgets via ContentFragments.UpdateScriptedContentFragments(...)
Wanted result:
- New widget version should be available in widget studio just after DLL deployment
Actual result:
- Widgets in widget studio become labeled as a "customized default" and they contain code of previous version of widget until you do Revert on them, only after that they will become "default" and will contain latest code