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

hubspot Source #20

Closed
wants to merge 35 commits into from
Closed

hubspot Source #20

wants to merge 35 commits into from

Conversation

oykmnk
Copy link
Contributor

@oykmnk oykmnk commented Nov 4, 2022

Description

This PR seeks to implement Source with Snapshot and CDC iterators.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

oykmnk and others added 30 commits September 26, 2022 22:52
Implement a common config and validator
* implement cdc iterator

* limit items in cdc iterator

* refactor multiline function arguments

* add comment to the cdc createdAt condition

* update comment
* deletion handling in cdc

* linter fix

* pr fixes #1

* pr fixes #2

* comment added

* dot fix
* remove resources that don't support cdc

* update snapshot iterator

- fix the incorrect behavior with the bufferSize and limit

* simplify Snapshot's HasNext method

* fix typo

* move Snapshot's Stop method above the private methods

* add sorting for timestamp-based resources

* update sorting logic and switching to cdc mode

* store initial snapshot timestamp in the position

* reformat arguments

* set the snapshot's initial timestamp to the cdc timestamp when switching

* remove redundant ConvertToCDCPosition function

* rename `do request` to `execute request`
* source documentation, first run

* add empty resources.md

* fmt README

* fix typo

* update configuration options documentation

* `resource` -> `resources`

* format source config table

* add resource and source operations they support
* provide a new source config field `extraProperties`

This field allows to specify a list of HubSpot resource properties to include in addition to the default.

If any of the specified properties are not present on the requested HubSpot resource, they will be ignored.

Only CRM resources support this.

* add `extraProperties` format to the docs
@oykmnk oykmnk requested review from hariso and maha-hajja November 4, 2022 10:25
@oykmnk oykmnk changed the title Implement Source with Snapshot and CDC iterators Implement Source Nov 4, 2022
@maha-hajja maha-hajja changed the title Implement Source hubspot Source Apr 12, 2023
@lovromazgon lovromazgon self-assigned this Aug 4, 2023
@lovromazgon
Copy link
Contributor

Included in #21

@lovromazgon lovromazgon deleted the develop branch August 10, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants