Skip to content

Commit

Permalink
Source Hubspot: remove FeedbackSubmissions stream (#16632)
Browse files Browse the repository at this point in the history
* #586 source hubspot: rm FeedbackSubmissions stream

* #586 source hubspot: upd changelog

* #586 source hubspot: fix unit tests

* #586 source hubspot: fix SATs

* #586 source hubspot: review fixes

* auto-bump connector version [ci skip]

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
davydov-d and octavia-squidington-iii authored Sep 13, 2022
1 parent ff29da4 commit 7934eed
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
- name: HubSpot
sourceDefinitionId: 36c891d9-4bd9-43ac-bad2-10e12756272c
dockerRepository: airbyte/source-hubspot
dockerImageTag: 0.1.83
dockerImageTag: 0.2.0
documentationUrl: https://docs.airbyte.io/integrations/sources/hubspot
icon: hubspot.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4315,7 +4315,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-hubspot:0.1.83"
- dockerImage: "airbyte/source-hubspot:0.2.0"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/hubspot"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-hubspot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_hubspot ./source_hubspot
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.83
LABEL io.airbyte.version=0.2.0
LABEL io.airbyte.name=airbyte/source-hubspot
1 change: 0 additions & 1 deletion airbyte-integrations/connectors/source-hubspot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ The primary key for the following streams is `id`:
- engagements_meetings
- engagements_notes
- engagements_tasks
- feedback_submissions
- forms
- line_items
- marketing_emails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@ tests:
status: "exception"
discovery:
- config_path: "secrets/config.json"
backward_compatibility_tests_config:
disable_for_version: "0.1.83"
basic_read:
- config_path: "secrets/config.json"
timeout_seconds: 600
configured_catalog_path: "sample_files/basic_read_catalog.json"
empty_streams: ["form_submissions", "ticket_pipelines", "engagements_meetings", "engagements_emails", "engagements", "feedback_submissions", "engagements_calls", "quotes"]
empty_streams: ["form_submissions", "ticket_pipelines", "engagements_meetings", "engagements_emails", "engagements", "engagements_calls", "quotes"]
# This test commented out, since it produces errors during active testing
# expect_records:
# path: "integration_tests/expected_records.txt"
- config_path: "secrets/config_oauth.json"
timeout_seconds: 600
configured_catalog_path: "sample_files/basic_read_oauth_catalog.json"
empty_streams: ["form_submissions", "ticket_pipelines", "engagements_meetings", "engagements_emails", "engagements", "feedback_submissions", "engagements_calls", "quotes"]
empty_streams: ["form_submissions", "ticket_pipelines", "engagements_meetings", "engagements_emails", "engagements", "engagements_calls", "quotes"]
# This test commented out, since it produces errors during active testing
# expect_records:
# path: "integration_tests/expected_records.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
"engagements_tasks": {
"updatedAt": "2221-10-12T13:37:56.412000+00:00"
},
"feedback_submissions": {
"updatedAt": "2221-10-12T13:37:56.412000+00:00"
},
"engagements": {
"lastUpdated": 7945393076412
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,6 @@
"cursor_field": ["updatedAt"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "feedback_submissions",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updatedAt"]
},
"sync_mode": "full_refresh",
"cursor_field": ["updatedAt"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "forms",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,6 @@
"cursor_field": ["updatedAt"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "feedback_submissions",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updatedAt"]
},
"sync_mode": "incremental",
"cursor_field": ["updatedAt"],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "forms",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
EngagementsMeetings,
EngagementsNotes,
EngagementsTasks,
FeedbackSubmissions,
Forms,
FormSubmissions,
LineItems,
Expand Down Expand Up @@ -105,7 +104,6 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]:
EngagementsMeetings(**common_params),
EngagementsNotes(**common_params),
EngagementsTasks(**common_params),
FeedbackSubmissions(**common_params),
Forms(**common_params),
FormSubmissions(**common_params),
LineItems(**common_params),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,7 @@ class EngagementsTasks(CRMSearchStream):
scopes = {"crm.objects.contacts.read"}


# this stream uses a beta endpoint thus is unstable and disabled
class FeedbackSubmissions(CRMObjectIncrementalStream):
entity = "feedback_submissions"
associations = ["contacts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_check_connection_exception(config):
def test_streams(config):
streams = SourceHubspot().streams(config)

assert len(streams) == 27
assert len(streams) == 26


def test_check_credential_title_exception(config):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
EngagementsMeetings,
EngagementsNotes,
EngagementsTasks,
FeedbackSubmissions,
Forms,
FormSubmissions,
LineItems,
Expand Down Expand Up @@ -91,7 +90,6 @@ def test_updated_at_field_non_exist_handler(requests_mock, common_params, fake_p
(EngagementsMeetings, "meetings"),
(EngagementsNotes, "notes"),
(EngagementsTasks, "tasks"),
(FeedbackSubmissions, "feedback_submissions"),
(Forms, "form"),
(FormSubmissions, "form"),
(LineItems, "line_item"),
Expand Down
3 changes: 1 addition & 2 deletions docs/integrations/sources/hubspot.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ You can use OAuth, API key, or Private App to authenticate your HubSpot account.
| `email_events` | `content` |
| `engagements` | `contacts` |
| `engagements_emails` | `sales-email-read` |
| `feedback_submissions` | `crm.objects.feedback_submissions.read` |
| `forms` | `forms` |
| `form_submissions` | `forms` |
| `line_items` | `e-commerce` |
Expand Down Expand Up @@ -71,7 +70,6 @@ The HubSpot source connector supports the following streams:
* [Engagements Meetings](https://developers.hubspot.com/docs/api/crm/meetings) \(Incremental\)
* [Engagements Notes](https://developers.hubspot.com/docs/api/crm/notes) \(Incremental\)
* [Engagements Tasks](https://developers.hubspot.com/docs/api/crm/tasks) \(Incremental\)
* [Feedback Submissions](https://developers.hubspot.com/docs/api/crm/feedback-submissions) \(Incremental\)
* [Forms](https://developers.hubspot.com/docs/api/marketing/forms)
* [Form Submissions](https://legacydocs.hubspot.com/docs/methods/forms/get-submissions-for-a-form)
* [Line Items](https://developers.hubspot.com/docs/api/crm/line-items) \(Incremental\)
Expand Down Expand Up @@ -134,6 +132,7 @@ Now that you have set up the Hubspot source connector, check out the following H

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------|
| 0.2.0 | 2022-09-13 | [16632](https://github.com/airbytehq/airbyte/pull/16632) | Remove Feedback Submissions stream as the one using unstable (beta) API. |
| 0.1.83 | 2022-09-01 | [16214](https://github.com/airbytehq/airbyte/pull/16214) | Update Tickets, fix missing properties and change how state is updated. |
| 0.1.82 | 2022-08-18 | [15110](https://github.com/airbytehq/airbyte/pull/15110) | Check if it has a state on search streams before first sync |
| 0.1.81 | 2022-08-05 | [15354](https://github.com/airbytehq/airbyte/pull/15354) | Fix `Deals` stream schema |
Expand Down

0 comments on commit 7934eed

Please sign in to comment.