Task #505
closed
Notification template redeploy + backup
Added by Ondřej Kopr over 7 years ago.
Updated over 7 years ago.
Description
- add function that allow redeploy template from resource + immediate export current version of template to tmp directory,
- add function that allow backup template to tmp directory,
- bout this function will be able call from FE - from bulk operation.
Try to abstract export and redoploy methods for script, same behavior.
- Related to Task #483: Reload template from FE added
- Subject changed from Notification template redeploy + export template to Notification template redeploy + backup
- Description updated (diff)
- % Done changed from 0 to 70
- % Done changed from 70 to 40
Note from feedback:
fix name in selectbox to "Refresh from disk"
fix warning message with failed redeploy to info with better message,
change name of folder see example (year-mont-day),
add configuration property for backups base,
add configuration property for backups templates,
check if backups directory exists and then check permission (700 must be), if directory exists with another permission fail.
example:
/tmp/idm_backup/templates/<year-mont-day>/.xml
- % Done changed from 40 to 90
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Radek Tomiška
Please Radek, could you make a review? Commits and changes are listed above. Thank you
- Status changed from Needs feedback to In Progress
- Assignee changed from Radek Tomiška to Ondřej Kopr
- Target version set to Citrine (7.3.0)
I did test and review. It works, i found some issues:
- jaxb context has to be initialized the same way as velocity context.
- rename methods - without *Dto and *Entity
- create NotificationTemplateConfiguration for configuration properties - see IdentityConfiguration
- redeploy method in controller should have WRITE authority
- add template configuration properties to the documentation
- change backup folder name to the format 20170101
Redeploy could work without configuration by default - now backup folder has to be configured at first and redeploy operation fails, i will discuss this requirement with Zdeněk.
- jaxb context is now initialized in constructor,
- method with dto and entities renamed,
- add configuration into application,
- change permission for redeploy method to update,
- change format of folder.
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Radek Tomiška
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Ondřej Kopr
- % Done changed from 90 to 100
Also available in: Atom
PDF