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

Client cleanup #557

Merged
merged 7 commits into from
Jun 7, 2018
Merged

Client cleanup #557

merged 7 commits into from
Jun 7, 2018

Conversation

0bsearch
Copy link
Contributor

Checklist

  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the [Contribution Guide] and my PR follows them.
  • I updated my branch with the master branch.
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation about the functionality in the appropriate .md file
  • I have added in line documentation to the code I modified

Short description of what this PR does:

Refactored sendgrid.sendgrid.SendGridAPIClient:

  • explicit params for __init__ for proper code inspection (i.e. in IDE)
  • public apikey and impersonate_subuser attrs w/o descriptors
  • dropped unused path
  • more pythonic param dispatching
  • documentation for __ini__

@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Feb 23, 2018
@thinkingserious
Copy link
Contributor

Thank you @3lnc! This is now on our backlog for a code review.

With Best Regards,

Elmer

@0bsearch
Copy link
Contributor Author

Currently, this is backward-incompatible change because of dropping **opts. And tests currently uses path arg (which is ignored, and I'm not sure why it was included originally).

If this ever was public interface - either this change needs to be merged in major version, or we can add

def __init__(..., **opts)
    if opts: warnings.warn('unsupported args provided')

or simply __init__(..., **_) to ensure backward compatibility, and drop this later – during major release

@thinkingserious thinkingserious added type: community enhancement feature request not on Twilio's roadmap difficulty: medium fix is medium in difficulty labels Feb 27, 2018
@0bsearch
Copy link
Contributor Author

Added **opts for backward compatibility, TODO note to remove it during major release, DeprecationWarning

@0bsearch
Copy link
Contributor Author

Guys, is there any progress with code review queue? There's a lot of PRs (even from hacktoberfest) and no visual progress for at least a month.

  • Is there a chance for all that to be reviewed in near future?
  • Is it reasonable to propose more code changes now?

ping @thinkingserious

@thinkingserious
Copy link
Contributor

Hi @3lnc,

Thanks for checking in!

This repo is actually next in line after PHP. We are almost done updating that repo and will then be focusing our efforts on this one, so your timing is perfect.

With Best Regards,

Elmer

@thinkingserious thinkingserious merged commit e270db2 into sendgrid:master Jun 7, 2018
@thinkingserious
Copy link
Contributor

Hello @3lnc,

Thanks again for the PR!

We want to show our appreciation by sending you some swag. Could you please fill out this form so we can send it to you? Thanks!

Team SendGrid DX

@0bsearch 0bsearch deleted the client_cleanup branch June 7, 2018 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: medium fix is medium in difficulty status: code review request requesting a community code review or review from Twilio type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants