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

🔧 Pinterest Schema updated #9537

Closed
wants to merge 176 commits into from
Closed

🔧 Pinterest Schema updated #9537

wants to merge 176 commits into from

Conversation

rfortmann-ewolff
Copy link
Contributor

@rfortmann-ewolff rfortmann-ewolff commented Jan 16, 2022

What

ad_id and account_id are non-existent in the destination (BigQuery). The schema has a typo for ad_id and account_id.

How

The schemas have been updated.

@CLAassistant
Copy link

CLAassistant commented Jan 16, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the area/connectors Connector related issues label Jan 16, 2022
alafanechere and others added 6 commits January 17, 2022 09:27
* add mailchimp oauth support

* add PR

* fix creds

* upd spec

* format

* upd creds

* upd auth for different creds

* rename creds

* rename creds

* change ref in campaigns.json

* upd timeout_seconds

* merge

* add oauth java part

* add java test

* bump version

* update spec

* add anotation

* upd spec

* upd spec

* upd

* upd tests

* format

* upd

* upd

* add state

* add invalid_config

* bump version

* format
…reams to fix error with `502` HTTP status code (#9492)

* Source Github: Remove optional parameter Accept for reaction's streams to fix error with 502 HTTP status code
* change list of scopes

* upd changelog

* bump version
@marcosmarxm
Copy link
Member

@harshithmullapudi please review this PR.

* fixed test which check incorrect cred config

* Added oauth2 authentication

* Added oauth creds

* fixed formatting

* added oauth2 spec section, added missing type hints

* Added java part of Square OAuth

* fixed checkstyle

* removed commented code

* added support for old format of spec.json files, updated change logs docs

* renamed spec property 'authentication' to default 'credentials'. fixed changes in java part

* recovered empty files

* updated OAuthImplementationFactory.java

* fixed issue with autheticator for sub streams, added config catalog with all streams, updated docs

* use advanced_auth

* added advanced_auth

* moved scopes to private property

* updated source version

* Revert "updated source version"

This reverts commit ce3d061.

* updated source version

* added new version for airbyte index

Co-authored-by: ievgeniit <[email protected]>
@harshithmullapudi
Copy link
Contributor

subodh1810 and others added 2 commits January 18, 2022 17:38
…8383)

* add Dataset ID parse method

* add BigQuery Destination unit test

* update change log

* fit to the latest code base

* update change log

* change var name to const name

* change public method to private

* add test cases for testGetDatasetIdFail

* add integration test for dataset-id prefixed with project-id

* fix getDatasetId

* add comment to parameterized test provider

* update docker image versions

* update docker image versions again
@rfortmann-ewolff
Copy link
Contributor Author

Hey @rfortmann-ewolff https://docs.airbyte.com/connector-development#updating-an-existing-connector can you check this

all tests pass:

  • no new tests required
  • no documentation update required

augan-rymkhan and others added 10 commits January 18, 2022 20:42
* fix next_page_token

* fix BULK API

* fix BUlk incremental stream

* added unit test and comments

* format code

* bump version

* updated spec and def yaml

Co-authored-by: auganbay <[email protected]>
* New source: Chartmogul

* update changelog

* bootstrap.md

* reorder schema

* make acceptance test pass

* add chartmogul to builds.md

* Update airbyte-integrations/connectors/source-chartmogul/source_chartmogul/source.py

Co-authored-by: Augustin <[email protected]>

* Update airbyte-integrations/connectors/source-chartmogul/source_chartmogul/source.py

Co-authored-by: Augustin <[email protected]>

* address comments

* fix unused imports

* update source_specs

Co-authored-by: alafanechere <[email protected]>
Co-authored-by: Augustin <[email protected]>
* update desrcription for bq destination setup

* bump version
* use BULK for the first sync, REST for incremental sync

* if stream contains compound data or/and base64 use always REST

* fix get stream state from connector state

* fix integration test

* refactor catalog name

* format code

* refactor unit tests

* refactor unit tests 2

* format code 2

* Set additionalProperties to true not to break test temporarily

* fix unit test and remove unnecessary filtering fields

* bump version

* updated spec and def yaml

Co-authored-by: auganbay <[email protected]>
* Test sentry release step

* Fix bug

* Fix typo

* Cut off prefix

* Fix env variables

* Add back steps

* Fix syntax error

* Use startsWith to replace IMAGE_TYPE

* Update title

* Bump version in seed
* Update doc

* Use empty dsn when sentry is not enabled

* Bump version in seed
* cleanup airbyte_configs table

* fix test

* fix test
@rfortmann-ewolff
Copy link
Contributor Author

You can rebase it with latest master first then

Even after the rebase, I still get the same error.

@rfortmann-ewolff
Copy link
Contributor Author

I only rebased on my fork and not on the origin master - my bad.

…m:rfortmann-ewolff/airbyte into pinterest-schema
@github-actions github-actions bot added area/api Related to the api area/documentation Improvements or additions to documentation area/frontend area/platform issues related to the platform area/protocol area/scheduler area/server area/worker Related to worker kubernetes normalization labels Feb 1, 2022
@rfortmann-ewolff
Copy link
Contributor Author

rfortmann-ewolff commented Feb 1, 2022

You can rebase it with latest master first then

configured_catalog = ConfiguredAirbyteCatalog(streams=[ConfiguredAirbyteStream(stream=AirbyteStream(name='boards', json_schema={'$schema': ...l: 'incremental'>, cursor_field=None, destination_sync_mode=<DestinationSyncMode.append: 'append'>, primary_key=None)])
allowed_empty_streams = set()

    def _validate_empty_streams(self, records, configured_catalog, allowed_empty_streams):
        """
        Only certain streams allowed to be empty
        """
        counter = Counter(record.stream for record in records)

        all_streams = set(stream.stream.name for stream in configured_catalog.streams)
        streams_with_records = set(counter.keys())
        streams_without_records = all_streams - streams_with_records

        streams_without_records = streams_without_records - allowed_empty_streams
>       assert not streams_without_records, f"All streams should return some records, streams without records: {streams_without_records}"
E       AssertionError: All streams should return some records, streams without records: {'ad_group_analytics', 'board_section_pins', 'boards', 'board_pins', 'ad_account_analytics', 'campaign_analytics', 'board_sections'}
E       assert not {'ad_account_analytics', 'ad_group_analytics', 'board_pins', 'board_section_pins', 'board_sections', 'boards', ...}

/usr/local/lib/python3.7/site-packages/source_acceptance_test/tests/test_core.py:289: AssertionError

I don't understand the error that is meant here.

@harshithmullapudi
Copy link
Contributor

Hey looks like the rebase didn't happen the right way there are 176 commits I see can you look into that.

You can also try merging master into your branch

@rfortmann-ewolff rfortmann-ewolff deleted the pinterest-schema branch February 1, 2022 16:54
@rfortmann-ewolff
Copy link
Contributor Author

Even though the schema change seemed easy and should not have produced much errors, I had to close my PR as tests were impossible to reproduce.

@rfortmann-ewolff
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Related to the api area/connectors Connector related issues area/documentation Improvements or additions to documentation area/platform issues related to the platform area/protocol area/scheduler area/server area/worker Related to worker community kubernetes normalization
Projects
None yet
Development

Successfully merging this pull request may close these issues.