Skip to content

Commit 3bd059e

Browse files
fix(source-hubspot): fix custom streams path (#58138)
1 parent 71d6ac8 commit 3bd059e

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

airbyte-integrations/connectors/source-hubspot/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
13-
dockerImageTag: 4.6.3
13+
dockerImageTag: 4.6.4
1414
dockerRepository: airbyte/source-hubspot
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/hubspot
1616
erdUrl: https://dbdocs.io/airbyteio/source-hubspot?view=relationships

airbyte-integrations/connectors/source-hubspot/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "4.6.3"
6+
version = "4.6.4"
77
name = "source-hubspot"
88
description = "Source implementation for HubSpot."
99
authors = [ "Airbyte <[email protected]>",]

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,7 @@ class CRMSearchStream(IncrementalStream, ABC):
11711171

11721172
@property
11731173
def url(self):
1174-
object_type_id = self.fully_qualified_name or self.entity
1175-
return f"/crm/v3/objects/{object_type_id}/search" if self.state else f"/crm/v3/objects/{object_type_id}"
1174+
return f"/crm/v3/objects/{self.entity}/search" if self.state else f"/crm/v3/objects/{self.entity}"
11761175

11771176
def __init__(
11781177
self,
@@ -2370,6 +2369,11 @@ def __init__(self, entity: str, schema: Mapping[str, Any], fully_qualified_name:
23702369
self.fully_qualified_name = fully_qualified_name
23712370
self.custom_properties = custom_properties
23722371

2372+
@property
2373+
def url(self):
2374+
object_type_id = self.fully_qualified_name or f"p_{self.entity}"
2375+
return f"/crm/v3/objects/{object_type_id}/search" if self.state else f"/crm/v3/objects/{object_type_id}"
2376+
23732377
@property
23742378
def name(self) -> str:
23752379
return self.entity

docs/integrations/sources/hubspot.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,9 @@ The connector is restricted by normal HubSpot [rate limitations](https://legacyd
338338

339339
| Version | Date | Pull Request | Subject |
340340
|:-----------|:-----------|:---------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
341-
| 4.6.3 | 2025-04-19 | [58226](https://github.com/airbytehq/airbyte/pull/58226) | Update dependencies |
342-
| 4.6.2 | 2025-04-18 | [58137](https://github.com/airbytehq/airbyte/pull/58137) | Promoting release candidate 4.6.2-rc.1 to a main version. |
341+
| 4.6.4 | 2025-04-22 | [58138](https://github.com/airbytehq/airbyte/pull/58138) | Use short-hand custom object type name path for custom object streams. |
342+
| 4.6.3 | 2025-04-19 | [58226](https://github.com/airbytehq/airbyte/pull/58226) | Update dependencies |
343+
| 4.6.2 | 2025-04-18 | [58137](https://github.com/airbytehq/airbyte/pull/58137) | Promoting release candidate 4.6.2-rc.1 to a main version. |
343344
| 4.6.2-rc.1 | 2025-04-13 | [57534](https://github.com/airbytehq/airbyte/pull/57534) | Migrate marketing_emails and email_subscriptions to low code |
344345
| 4.6.1 | 2025-04-12 | [57694](https://github.com/airbytehq/airbyte/pull/57694) | Update dependencies |
345346
| 4.6.0 | 2025-04-11 | [57572](https://github.com/airbytehq/airbyte/pull/57572) | Promoting release candidate 4.6.0-rc.1 to a main version. |

0 commit comments

Comments
 (0)