-
Notifications
You must be signed in to change notification settings - Fork 429
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
feat: Add org id to hubspot company #3680
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3680 +/- ##
=======================================
Coverage 95.84% 95.84%
=======================================
Files 1099 1099
Lines 34428 34428
=======================================
Hits 32999 32999
Misses 1429 1429 ☔ View full report in Codecov by Sentry. |
def create_company(self, name: str) -> dict: | ||
properties = {"name": name} | ||
def create_company(self, name: str, organisation_id: int) -> dict: | ||
properties = {"name": name, "orgid": str(organisation_id)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: I'd love to see the hubspot parameters pulled out as constants in e.g. hubspot.constants
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed offline and decided against it for now.
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
On the creation of a Hubspot company resource include the
organsation_id
in a new field which is titledOrgID
in Hubspot, but is only accessible viaorgid
through the API due to restrictions on Hubspot's end.How did you test this code?
Manually checked the API response once I was able to set the param in all lowercase then updated an existing test that already checked for the right mocked call to a client resource.