You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/07/30 15:42:00 UTC
[jira] [Commented] (AIRFLOW-5052) Add the include_deleted parameter
to Salesforce Hook
[ https://issues.apache.org/jira/browse/AIRFLOW-5052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896244#comment-16896244 ]
ASF GitHub Bot commented on AIRFLOW-5052:
-----------------------------------------
wmorris75 commented on pull request #5683: [AIRFLOW-5052] sf query include param fix
URL: https://github.com/apache/airflow/pull/5683
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
> Add the include_deleted parameter to Salesforce Hook
> ----------------------------------------------------
>
> Key: AIRFLOW-5052
> URL: https://issues.apache.org/jira/browse/AIRFLOW-5052
> Project: Apache Airflow
> Issue Type: Improvement
> Components: hooks
> Affects Versions: 1.10.4, 2.0.0, 1.10.5
> Reporter: Wayne Morris
> Assignee: Wayne Morris
> Priority: Major
>
> At present, the salesforce hook uses the make_query() method to perform query via Salesforce api. The make_query() accepts a query and and uses a wrapper function which calls the query_all() method from simple salesforce to perform the query.
> The deficiency with the use of the query_all() method is that it does not factor the inclusion of deleted records which is an optional parameter in the query_all() method of simple salesforce as shown below:
> ```
> #query_all method in the salesforce hook
> query_all(query)
> #This should be changed to reflect what the simple salesforce query_all() does in the. background as follows
> {color:#ffc66d}query_all{color}({color:#94558d}self{color}{color:#cc7832}, {color}query{color:#cc7832}, {color}include_deleted={color:#cc7832}False, {color}**kwargs):
> ```
> The objective of this ticket is add these parameters to the salesforce hook so that the hook also has the option of including the deleted records from Salesforce in the query.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)