airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] stale[bot] closed pull request #3575: [AIRFLOW-2711] zendesk hook doesn't handle search endpoint properly
Date Thu, 08 Nov 2018 22:08:16 GMT
stale[bot] closed pull request #3575: [AIRFLOW-2711] zendesk hook doesn't handle search endpoint
properly
URL: https://github.com/apache/incubator-airflow/pull/3575
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/airflow/hooks/zendesk_hook.py b/airflow/hooks/zendesk_hook.py
index 3cf8353344..102556a5cd 100644
--- a/airflow/hooks/zendesk_hook.py
+++ b/airflow/hooks/zendesk_hook.py
@@ -74,7 +74,11 @@ def call(self, path, query=None, get_all_pages=True, side_loading=False):
                 self.__handle_rate_limit_exception(rle)
 
         # Find the key with the results
-        keys = [path.split("/")[-1].split(".json")[0]]
+        key = path.split("/")[-1].split(".json")[0]
+        if key == 'search':
+            keys = ['results']
+        else:
+            keys = [key]
         next_page = results['next_page']
         if side_loading:
             keys += query['include'].split(',')


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message