Skip to content

Commit 12cfd95

Browse files
grubberrschlattk
authored andcommitted
bugfix 'Hubspot' -> 'HubSpot' (airbytehq#7683)
* bugfix 'Hubspot' -> 'HubSpot' Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
1 parent 2492f31 commit 12cfd95

File tree

16 files changed

+46
-45
lines changed

16 files changed

+46
-45
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"sourceDefinitionId": "36c891d9-4bd9-43ac-bad2-10e12756272c",
3-
"name": "Hubspot",
3+
"name": "HubSpot",
44
"dockerRepository": "airbyte/source-hubspot",
5-
"dockerImageTag": "0.1.23",
5+
"dockerImageTag": "0.1.24",
66
"documentationUrl": "https://docs.airbyte.io/integrations/sources/hubspot",
77
"icon": "hubspot.svg"
88
}

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@
239239
dockerImageTag: 0.1.5
240240
documentationUrl: https://docs.airbyte.io/integrations/sources/harvest
241241
sourceType: api
242-
- name: Hubspot
242+
- name: HubSpot
243243
sourceDefinitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
244244
dockerRepository: airbyte/source-hubspot
245-
dockerImageTag: 0.1.23
245+
dockerImageTag: 0.1.24
246246
documentationUrl: https://docs.airbyte.io/integrations/sources/hubspot
247247
icon: hubspot.svg
248248
sourceType: api

airbyte-integrations/builds.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
| Google Directory API | [![source-google-directory](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-google-directory%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-google-directory) |
3535
| Google Workspace Admin | [![source-google-workspace-admin-reports](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-google-workspace-admin-reports%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-google-workspace-admin-reports) |
3636
| Greenhouse | [![source-greenhouse](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-greenhouse%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-greenhouse) |
37-
| Hubspot | [![source-hubspot](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-hubspot%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-hubspot) |
37+
| HubSpot | [![source-hubspot](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-hubspot%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-hubspot) |
3838
| IBM Db2 | [![source-db2](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-db2%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-db2) |
3939
| Instagram | [![source-instagram](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-instagram%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-instagram) |
4040
| Intercom | [![source-intercom](https://img.shields.io/endpoint?url=https%3A%2F%2Fdnsgjos7lj2fu.cloudfront.net%2Ftests%2Fsummary%2Fsource-intercom-singer%2Fbadge.json)](https://dnsgjos7lj2fu.cloudfront.net/tests/summary/source-intercom) |

airbyte-integrations/connectors/source-hubspot/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ COPY source_hubspot ./source_hubspot
3434
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
3535
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
3636

37-
LABEL io.airbyte.version=0.1.23
37+
LABEL io.airbyte.version=0.1.24
3838
LABEL io.airbyte.name=airbyte/source-hubspot

airbyte-integrations/connectors/source-hubspot/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Hubspot Source
1+
# HubSpot Source
22

3-
This is the repository for the Hubspot source connector, written in Python.
3+
This is the repository for the HubSpot source connector, written in Python.
44
For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/hubspot).
55

66
## Local development

airbyte-integrations/connectors/source-hubspot/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
setup(
2222
name="source_hubspot",
23-
description="Source implementation for Hubspot.",
23+
description="Source implementation for HubSpot.",
2424
author="Airbyte",
2525
author_email="contact@airbyte.io",
2626
packages=find_packages(),

airbyte-integrations/connectors/source-hubspot/source_hubspot/api.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from airbyte_cdk.sources.streams.http.requests_native_auth import Oauth2Authenticator
1919
from source_hubspot.errors import HubspotAccessDenied, HubspotInvalidAuth, HubspotRateLimited, HubspotTimeout
2020

21-
# The value is obtained experimentally, Hubspot allows the URL length up to ~16300 symbols,
21+
# The value is obtained experimentally, HubSpot allows the URL length up to ~16300 symbols,
2222
# so it was decided to limit the length of the `properties` parameter to 15000 characters.
2323
PROPERTIES_PARAM_MAX_LENGTH = 15000
2424

@@ -99,7 +99,7 @@ def retry_after_handler(**kwargs):
9999
def sleep_on_ratelimit(_details):
100100
_, exc, _ = sys.exc_info()
101101
if isinstance(exc, HubspotRateLimited):
102-
# Hubspot API does not always return Retry-After value for 429 HTTP error
102+
# HubSpot API does not always return Retry-After value for 429 HTTP error
103103
retry_after = int(exc.response.headers.get("Retry-After", 3))
104104
logger.info(f"Rate limit reached. Sleeping for {retry_after} seconds")
105105
time.sleep(retry_after + 1) # extra second to cover any fractions of second
@@ -119,7 +119,7 @@ def log_giveup(_details):
119119

120120

121121
class API:
122-
"""Hubspot API interface, authorize, retrieve and post, supports backoff logic"""
122+
"""HubSpot API interface, authorize, retrieve and post, supports backoff logic"""
123123

124124
BASE_URL = "https://api.hubapi.com"
125125
USER_AGENT = "Airbyte"
@@ -332,8 +332,8 @@ def _read(self, getter: Callable, params: MutableMapping[str, Any] = None) -> It
332332
properties_list = list(self.properties.keys())
333333
if properties_list:
334334
# TODO: Additional processing was added due to the fact that users receive 414 errors while syncing their streams (issues #3977 and #5835).
335-
# We will need to fix this code when the Hubspot developers add the ability to use a special parameter to get all properties for an entity.
336-
# According to Hubspot Community (https://community.hubspot.com/t5/APIs-Integrations/Get-all-contact-properties-without-explicitly-listing-them/m-p/447950)
335+
# We will need to fix this code when the HubSpot developers add the ability to use a special parameter to get all properties for an entity.
336+
# According to HubSpot Community (https://community.hubspot.com/t5/APIs-Integrations/Get-all-contact-properties-without-explicitly-listing-them/m-p/447950)
337337
# and the official documentation, this does not exist at the moment.
338338
stream_records = {}
339339

airbyte-integrations/connectors/source-hubspot/source_hubspot/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class Client(BaseClient):
29-
"""Hubspot client, provides methods to discover and read streams"""
29+
"""HubSpot client, provides methods to discover and read streams"""
3030

3131
def __init__(self, start_date, credentials, **kwargs):
3232
self._start_date = start_date

airbyte-integrations/connectors/source-hubspot/source_hubspot/spec.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"documentationUrl": "https://docs.airbyte.io/integrations/sources/hubspot",
33
"connectionSpecification": {
44
"$schema": "http://json-schema.org/draft-07/schema#",
5-
"title": "Hubspot Source Spec",
5+
"title": "HubSpot Source Spec",
66
"type": "object",
77
"required": ["start_date", "credentials"],
88
"additionalProperties": false,
@@ -21,7 +21,7 @@
2121
"oneOf": [
2222
{
2323
"type": "object",
24-
"title": "Authenticate via Hubspot (Oauth)",
24+
"title": "Authenticate via HubSpot (Oauth)",
2525
"required": [
2626
"client_id",
2727
"client_secret",
@@ -40,20 +40,20 @@
4040
},
4141
"client_id": {
4242
"title": "Client ID",
43-
"description": "Hubspot client_id. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help finding this id.",
43+
"description": "HubSpot client_id. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help finding this id.",
4444
"type": "string",
4545
"examples": ["123456789000"]
4646
},
4747
"client_secret": {
4848
"title": "Client Secret",
49-
"description": "Hubspot client_secret. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help finding this secret.",
49+
"description": "HubSpot client_secret. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help finding this secret.",
5050
"type": "string",
5151
"examples": ["secret"],
5252
"airbyte_secret": true
5353
},
5454
"refresh_token": {
5555
"title": "Refresh token",
56-
"description": "Hubspot refresh_token. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help generating the token.",
56+
"description": "HubSpot refresh_token. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help generating the token.",
5757
"type": "string",
5858
"examples": ["refresh_token"],
5959
"airbyte_secret": true
@@ -76,7 +76,7 @@
7676
},
7777
"api_key": {
7878
"title": "API key",
79-
"description": "Hubspot API Key. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help finding this key.",
79+
"description": "HubSpot API Key. See our <a href=\"https://docs.airbyte.io/integrations/sources/hubspot\">docs</a> if you need help finding this key.",
8080
"type": "string",
8181
"airbyte_secret": true
8282
}

airbyte-webapp/src/views/Connector/ServiceForm/components/Controls/ConnectorServiceTypeControl.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const ConnectorServiceTypeControl: React.FC<{
9090
? [
9191
"200330b2-ea62-4d11-ac6d-cfe3e3f8ab2b", // Snapchat
9292
"2470e835-feaf-4db6-96f3-70fd645acc77", // Salesforce Singer
93-
"36c891d9-4bd9-43ac-bad2-10e12756272c", // Hubspot
93+
"36c891d9-4bd9-43ac-bad2-10e12756272c", // HubSpot
9494
"71607ba1-c0ac-4799-8049-7f4b90dd50f7", // Google Sheets
9595
"9da77001-af33-4bcd-be46-6252bf9342b9", // Shopify
9696
"d8313939-3782-41b0-be29-b3ca20d8dd3a", // Intercom

docs/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* [Google Workspace Admin Reports](integrations/sources/google-workspace-admin-reports.md)
6767
* [Greenhouse](integrations/sources/greenhouse.md)
6868
* [Harvest](integrations/sources/harvest.md)
69-
* [Hubspot](integrations/sources/hubspot.md)
69+
* [HubSpot](integrations/sources/hubspot.md)
7070
* [Instagram](integrations/sources/instagram.md)
7171
* [Intercom](integrations/sources/intercom.md)
7272
* [Iterable](integrations/sources/iterable.md)

docs/integrations/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Airbyte uses a grading system for connectors to help users understand what to ex
5050
| [Google Sheets](sources/google-sheets.md) | Certified |
5151
| [Google Workspace Admin Reports](sources/google-workspace-admin-reports.md) | Certified |
5252
| [Greenhouse](sources/greenhouse.md) | Beta |
53-
| [Hubspot](sources/hubspot.md) | Certified |
53+
| [HubSpot](sources/hubspot.md) | Certified |
5454
| [Instagram](sources/instagram.md) | Certified |
5555
| [Intercom](sources/intercom.md) | Beta |
5656
| [Iterable](sources/iterable.md) | Beta |

docs/integrations/sources/hubspot.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Hubspot
1+
# HubSpot
22

33
## Features
44

@@ -11,7 +11,7 @@
1111

1212
## Troubleshooting
1313

14-
Check out common troubleshooting issues for the Hubspot connector on our Discourse [here](https://discuss.airbyte.io/tags/c/connector/11/source-hubspot).
14+
Check out common troubleshooting issues for the HubSpot connector on our Discourse [here](https://discuss.airbyte.io/tags/c/connector/11/source-hubspot).
1515

1616
## Supported Tables
1717

@@ -35,25 +35,25 @@ This source is capable of syncing the following tables and their data:
3535
* [Tickets](https://developers.hubspot.com/docs/api/crm/tickets)
3636
* [Workflows](https://legacydocs.hubspot.com/docs/methods/workflows/v3/get_workflows)
3737

38-
**Note**: Hubspot API currently only supports `quotes` endpoint using API Key, using Oauth it is impossible to access this stream (as reported by [community.hubspot.com](https://community.hubspot.com/t5/APIs-Integrations/Help-with-using-Feedback-CRM-API-and-Quotes-CRM-API/m-p/449104/highlight/true#M44411)).
38+
**Note**: HubSpot API currently only supports `quotes` endpoint using API Key, using Oauth it is impossible to access this stream (as reported by [community.hubspot.com](https://community.hubspot.com/t5/APIs-Integrations/Help-with-using-Feedback-CRM-API-and-Quotes-CRM-API/m-p/449104/highlight/true#M44411)).
3939

4040
## Getting Started \(Airbyte Open-Source / Airbyte Cloud\)
4141

4242
#### Requirements
4343

44-
* Hubspot Account
44+
* HubSpot Account
4545
* Api credentials
4646
* If using Oauth, [scopes](https://legacydocs.hubspot.com/docs/methods/oauth2/initiate-oauth-integration#scopes) enabled for the streams you want to sync
4747

4848
{% hint style="info" %}
49-
Hubspot's API will [rate limit](https://developers.hubspot.com/docs/api/usage-details) the amount of records you can sync daily, so make sure that you are on the appropriate plan if you are planning on syncing more than 250,000 records per day.
49+
HubSpot's API will [rate limit](https://developers.hubspot.com/docs/api/usage-details) the amount of records you can sync daily, so make sure that you are on the appropriate plan if you are planning on syncing more than 250,000 records per day.
5050
{% endhint %}
5151

5252
This connector supports only authentication with API Key. To obtain API key for the account go to settings -&gt; integrations \(under the account banner\) -&gt; api key. If you already have an api key you can use that. Otherwise generated a new one. See [docs](https://knowledge.hubspot.com/integrations/how-do-i-get-my-hubspot-api-key) for more details.
5353

5454
## Rate Limiting & Performance
5555

56-
The connector is restricted by normal Hubspot [rate limitations](https://legacydocs.hubspot.com/apps/api_guidelines).
56+
The connector is restricted by normal HubSpot [rate limitations](https://legacydocs.hubspot.com/apps/api_guidelines).
5757

5858
When connector reads the stream using `API Key` that doesn't have neccessary permissions to read particular stream, like `workflows`, which requires to be enabled in order to be processed, the log message returned to the output and sync operation goes on with other streams available.
5959

@@ -96,6 +96,7 @@ If you are using Oauth, most of the streams require the appropriate [scopes](htt
9696

9797
| Version | Date | Pull Request | Subject |
9898
| :--- | :--- | :--- | :--- |
99+
| 0.1.24 | 2021-11-09 | [7683](https://github.com/airbytehq/airbyte/pull/7683) | bugfix 'Hubspot' -> 'HubSpot' |
99100
| 0.1.23 | 2021-11-08 | [7730](https://github.com/airbytehq/airbyte/pull/7730) | Fix oAuth flow schema|
100101
| 0.1.22 | 2021-11-03 | [7562](https://github.com/airbytehq/airbyte/pull/7562) | Migrate Hubspot source to CDK structure |
101102
| 0.1.21 | 2021-10-27 | [7405](https://github.com/airbytehq/airbyte/pull/7405) | Change of package `import` from `urllib` to `urllib.parse` |

docs/project-overview/changelog/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ We're going over the changes from 0.29.17 and before... and there's a lot of big
2929
* 🐛 Slack source: Sync operations no longer hang indefinitely.
3030
* 🐛 Jira source: Now uses updated time as the cursor field for incremental sync instead of the created time.
3131
* 🐛 Intercom source: Fixed inconsistency between schema and output data.
32-
* 🐛 Hubspot source: Streams with the items property now have their schemas fixed.
33-
* 🐛 Hubspot source: Empty strings are no longer handled as dates, fixing the deals, companies, and contacts streams.
32+
* 🐛 HubSpot source: Streams with the items property now have their schemas fixed.
33+
* 🐛 HubSpot source: Empty strings are no longer handled as dates, fixing the deals, companies, and contacts streams.
3434
* 🐛 Typeform source: Allows for multiple choices in responses now.
3535
* 🐛 Shopify source: The type for the amount field is now fixed in the schema.
3636
* 🐛 Postgres destination: \u0000\(NULL\) value processing is now fixed.
@@ -83,7 +83,7 @@ New Destination: Keen
8383
* ✨ Shopify source: The `status` property is now in the `Products` stream.
8484
* ✨ Amazon Seller Partner source: Added support for `GET_MERCHANT_LISTINGS_ALL_DATA` and `GET_FBA_INVENTORY_AGED_DATA` stream endpoints.
8585
* ✨ GitHub source: Existing streams now don't minify the user property.
86-
*Hubspot source: Updated user-defined custom field schema generation.
86+
*HubSpot source: Updated user-defined custom field schema generation.
8787
* ✨ Zendesk source: Migrated from Singer to the Airbyte CDK.
8888
* ✨ Amazon Seller Partner source: Migrated to the Airbyte CDK.
8989
* 🐛 Shopify source: Fixed the `products` schema to be in accordance with the API.

0 commit comments

Comments
 (0)