Made the edit deployment partial optional

* The edit_deployment partial is now optional
* Added empty role constraints to avoid any error
* Made the role constraint available for instances too
* Fixed deployment DSL