From 3197a7fb89c9cb14a97c82ecbf307f253ff6cb76 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Mon, 20 May 2013 10:16:10 -0400 Subject: [PATCH] Use rest_dispatch for beanstalk API (imported from commit 9c261f648b39bb472718bbc763fd15883cbda4e9) --- humbug/urls.py | 3 ++- zephyr/views.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/humbug/urls.py b/humbug/urls.py index e33dcd5093..fec3ee783f 100644 --- a/humbug/urls.py +++ b/humbug/urls.py @@ -159,9 +159,10 @@ urlpatterns += patterns('zephyr.views', {'POST': 'api_events_register'}), # These are integration-specific web hook callbacks + url(r'^api/v1/external/beanstalk$', 'rest_dispatch', + {'POST': 'api_beanstalk_webhook'}), url(r'^api/v1/external/github$', 'api_github_landing'), url(r'^api/v1/external/jira$', 'api_jira_webhook'), - url(r'^api/v1/external/beanstalk$', 'api_beanstalk_webhook'), url(r'^api/v1/external/pivotal$', 'api_pivotal_webhook'), ) diff --git a/zephyr/views.py b/zephyr/views.py index 3178c8d8d7..4e94d524b8 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -1767,7 +1767,6 @@ def beanstalk_decoder(view_func): return _wrapped_view_func @beanstalk_decoder -@authenticated_rest_api_view @has_request_variables def api_beanstalk_webhook(request, user_profile, payload=REQ(converter=json_to_dict)):