-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Salesforce Bulk API Connection + Bulk and REST Query Implementations #1404
Conversation
Looks great but great if you can fix this:
|
I have updated to account for #1. Support for normal queries via the Salesforce REST Api is nearing completion. @erikbern Could you explain #2? The output of QuerySalesforce needs to go somewhere. How can I output something within the run() without knowing whether it's going to be a LocalTarget or S3 or whatever? Finally (regarding #3), I intend to mock test this PR. However, my testing experience is very (VERY) minimal and thus will take me awhile (and likely be poor). |
For #2 – subclasses should implement class MyDailySalesforceTask(QuerySalesforce):
x = IntParameter()
def soql(self):
return blablabla...
def output(self):
return LocalTarget('salesforce-results-%d.txt' % self.x) |
And then the base class should probably do |
Got it (I think). Thanks @erikbern ! I have updated QuerySalesforce accordingly. REST queries still pending completion. Tests are to-be started. |
There's an issue building docs because |
@erikbern I have added your comments (minus the tests) to my branch, but I am waiting to push it until REST queries are complete. Currently, awaiting forum response to keep as dynamic as possible. Sorry for such delay. |
573d5e3
to
d576937
Compare
…port for SF bulk query. Added support for REST API queries.
d576937
to
ce80736
Compare
@erikbern It's going to be awhile before I can get around to writing tests for this; how do you suggest proceeding? |
sorry, forgot about this. let's merge it! |
Salesforce Bulk API Connection + Bulk and REST Query Implementations
Originally (and paritially implemented) by PR #981.
Most of the Salesforce Bulk API methods are implemented. Additionally, specific support for Bulk Query and REST Query have been added.
Tests are forthcoming. This PR was prematurely submitted in order to get the ball rolling with comments.
Thanks,