stable

Clone or download

Read-only

Refactoring: move all webhook management in git plugin

This is part of story #9083: trigger webhooks on git push No functional change here, move most of mustache stuff in git plugin so that now it is plugin git that displays list of webhooks and let hudson_git plugin add its own stuff. A button [add generic webhook] is added, but does nothing; its presence is to validate that plugins can add stuff in the middle of git hooks management. Change-Id: I3618e5a1b8ab6db9c94846aa6411d00a7989ed58

Modified Files

Name
A plugins/git/include/Git/Webhook/CreateWebhookButtonPresenter.php +37 −0 Go to diff View file
A plugins/git/include/Git/Webhook/SectionOfWebhooksPresenter.php +33 −0 Go to diff View file
A plugins/git/include/Git/Webhook/WebhookLogPresenter.php +33 −0 Go to diff View file
A plugins/git/include/Git/Webhook/WebhookPresenter.php +62 −0 Go to diff View file
A plugins/git/include/Git/Webhook/WebhookSettingsPresenter.php +57 −0 Go to diff View file
M plugins/git/include/GitViews/RepoManagement/Pane/Hooks.class.php +50 −19 Go to diff View file
M plugins/git/include/autoload.php +8 −3 Go to diff View file
M plugins/git/include/constants.php +0 −10 Go to diff View file
M plugins/git/include/gitPlugin.class.php +1 −0 Go to diff View file
M plugins/git/site-content/en_US/git.tab +15 −2 Go to diff View file
M plugins/git/site-content/en_US/script_locale.txt +2 −1 Go to diff View file
M plugins/git/site-content/fr_FR/git.tab +14 −1 Go to diff View file
M plugins/git/site-content/fr_FR/script_locale.txt +2 −1 Go to diff View file
M plugins/git/templates/settings/hooks.mustache +85 −2 Go to diff View file
A plugins/git/templates/settings/modal-logs.mustache +44 −0 Go to diff View file
A plugins/git/templates/settings/popover-remove-hook.mustache +15 −0 Go to diff View file
A plugins/git/www/scripts/webhooks.js +55 −0 Go to diff View file
M plugins/git/www/themes/FlamingParrot/css/style.scss +9 −1 Go to diff View file
M plugins/git/www/themes/default/css/style.scss +147 −1 Go to diff View file
A plugins/hudson_git/include/HudsonGit/GitWebhooksSettingsCreateJenkinsButtonPresenter.php +35 −0 Go to diff View file
A plugins/hudson_git/include/HudsonGit/GitWebhooksSettingsEnhancer.php +96 −0 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/HookController.php +0 −22 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/HookDao.php +1 −1 Go to diff View file
D plugins/hudson_git/include/HudsonGit/Hook/HookPresenter.php +0 −126 Go to diff View file
M plugins/hudson_git/include/HudsonGit/Hook/HookTriggerController.php +1 −1 Go to diff View file
A plugins/hudson_git/include/HudsonGit/Hook/ModalsPresenter.php +59 −0 Go to diff View file
A plugins/hudson_git/include/HudsonGit/JenkinsWebhooksPresenter.php +73 −0 Go to diff View file
M plugins/hudson_git/include/autoload.php +6 −3 Go to diff View file
M plugins/hudson_git/include/hudson_gitPlugin.class.php +18 −24 Go to diff View file
M plugins/hudson_git/site-content/en_US/hudson_git.tab +3 −9 Go to diff View file
D plugins/hudson_git/site-content/en_US/script_locale.js +0 −3 Go to diff View file
M plugins/hudson_git/site-content/fr_FR/hudson_git.tab +2 −8 Go to diff View file
D plugins/hudson_git/site-content/fr_FR/script_locale.js +0 −3 Go to diff View file
D plugins/hudson_git/templates/hook.mustache +0 −109 Go to diff View file
M plugins/hudson_git/templates/modal-jenkins.mustache +1 −1 Go to diff View file
D plugins/hudson_git/templates/modal-logs.mustache +0 −48 Go to diff View file
A plugins/hudson_git/templates/modals.mustache +23 −0 Go to diff View file
D plugins/hudson_git/www/scripts/hudson_git.js +0 −50 Go to diff View file
D plugins/hudson_git/www/themes/FlamingParrot/css/style.scss +0 −76 Go to diff View file
M plugins/hudson_git/www/themes/default/css/style.scss +1 −119 Go to diff View file