-
- Downloads
Merge branch 'extra-system-hooks' into 'master'
Added system hooks messages for renaming and transferring a project This is work in progress but I wanted to get some feedback on it in case there is something I've missed or a better way to do it. As the title says when a project is renamed or transferred to another group a system hook message is generated. Currently adds a couple of extra properties to the standard project system hooks messages. old_path_with_namespace - The old path of the project so we can see what has been renamed / transferred changed_at - The time that change took place My main concern is if there is a better way of doing this than passing the extra_data variable into the system hook. Would it be better to extend the project model with these 2 items as transient properties as I doubt they would need to be saved to the database? The other I've also seen, but can't find, someone talking about the emails sent when a project is renamed or transferred doesn't reference the original project path so if you have similarly named projects then you might not know what has been moved. I think the extra_data (or however it is best to implement this) would allow the extra information to be sent in emails. Closes [System hooks for project transfer and repository rename](http://feedback.gitlab.com/forums/176466-general/suggestions/6006233-system-hooks-for-project-transfer-and-repository-r) See merge request !611
No related branches found
No related tags found
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/models/project.rb 6 additions, 0 deletionsapp/models/project.rb
- app/services/projects/transfer_service.rb 3 additions, 0 deletionsapp/services/projects/transfer_service.rb
- app/services/system_hooks_service.rb 10 additions, 1 deletionapp/services/system_hooks_service.rb
- doc/system_hooks/system_hooks.md 49 additions, 1 deletiondoc/system_hooks/system_hooks.md
- spec/services/system_hooks_service_spec.rb 33 additions, 14 deletionsspec/services/system_hooks_service_spec.rb
Please register or sign in to comment