Wayne Morris created AIRFLOW-5052:
-------------------------------------

             Summary: 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


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)

Reply via email to