Skip to content
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

Updates to ActionKit, Braintree, and S3 connectors #754

Merged
merged 23 commits into from
Oct 14, 2022

Conversation

crayolakat
Copy link
Collaborator

Congregate improvements to the ActionKit, Braintree, and S3 connectors

crayolakat and others added 22 commits March 22, 2022 14:34
Update setup_google_application_credentials to support dict parameter
…egation

The oauth2client library is deprecated, and gspread will drop most information from the oauth2client authorization.  Switch to the actively maintained google-auth library and add an argument for a delegated account name.
Update authorization library for Google Sheets to support account del…
Update authorization library for Google Sheets to support account delegation
Don't auto-grab session token if it's not passed in
The new method paginated_get expands get_events to work for any type of object, and get_events has been updated to refer to paginated_get.
In addition, a new method, paginated_get_custom_limit, allows for truncating the data based on the value of a field, rather than a fixed set of results.  For example, this would allow you to return all users created within the last day. (Some fields which permit ordering may not permit filtering, which is why this can't be accomplished with a simple filter.)

Tests have also been written for the new methods.

Names of methods and arguments are not final and could use some work; suggestions welcome.
Modeled on transaction search.  Test data obtained by editing the subscription gateway to print the search response (https://github.com/braintree/braintree_python/blob/fc98c738f9e74736a7d1e82cfb4e37f6e493c3c4/braintree/subscription_gateway.py#L59).
Add subscription search to Braintree
Add new general object search methods to ActionKit
@shaunagm
Copy link
Collaborator

This looks good to me. I'm okay with approving/merging now, but I'd be a bit more comfortable if someone familiar with these connectors also reviewed. @schuyler1d, if you have the time can you take a look?

Copy link
Contributor

@schuyler1d schuyler1d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, I'd call @crayolakat the expert (e.g.I believe she did the early braintree implementation)

I had one comment/question, but I believe it's just fixing a bug in the documentation (might be worth checking the api -- there are some weird edges)

@@ -186,28 +185,12 @@ def get_events(self, limit=None, **kwargs):

.. code-block:: python

ak.get_events(fields__name__contains="FirstName")
ak.get_events(name__contains="FirstName")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this backwards-incompatible or was the doc just incorrect?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fixing the documentation but not sure. Tagging @sjwmoveon since she's the author of this change.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the documentation was incorrect.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, great. I'm going to go ahead and approve + merge this. thanks for the contribution @sjwmoveon and @crayolakat and thanks for the review @schuyler1d

@shaunagm shaunagm merged commit 36efb19 into move-coop:main Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants