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

🐛 Source Bing Ads: campaigns, accounts, search query report streams: update schemas + date-time convert rfc3339 #31995

Merged
merged 55 commits into from
Nov 15, 2023

Conversation

darynaishchenko
Copy link
Collaborator

@darynaishchenko darynaishchenko commented Oct 31, 2023

What

Based on datadog dashboard:

  • validation_error:_.linkedagencies:_object_found_but_null_string_is_required
  • validation_error:_.biddingscheme.maxcpc.amount:_number_found_but_null_string_is_required
  • validation_error:_.costperconversion:_string_found_but_null_integer_is_required

Convert date and date-time fields to standard RFC3339.
save stream_state in "native" field format

How

Recommended reading order

  1. schemas/*.json
  2. streams.py
  3. report_streams.py
  4. utils.py

🚨 User Impact 🚨

This version update affects next streams:

  • Accounts,
  • Campaigns
  • Search Query Performance Report
  • AppInstallAds
  • AppInstallAdLabels
  • Labels
  • Campaign Labels
  • Keyword Labels
  • Ad Group Labels
  • Keywords
  • Budget Summary Report
  • All Hourly Reports ( end with report_hourly)

Version 2.0.0 updates schemas for Accounts, Campaigns and Search Query Performance Report streams. LinkedAgencies was changed from string to object in Accounts stream.
BiddingScheme.MaxCpc.Amount was changed from string to number in Campaigns stream. And CostPerConversion was changed from integer to number.
All date and date-time fields will be converted to standard RFC3339.

For the changes to take effect, please refresh the source schema and reset affected streams after you have applied the upgrade.

Stream field Current Airbyte Type New Airbyte Type
LinkedAgencies string object
BiddingScheme.MaxCpc.Amount string number
CostPerConversion integer number
Affected streams Field_name Old type New type (RFC3339)
AppInstallAds, AppInstallAdLabels, Labels, Campaign Labels, Keyword Labels, Ad Group Labels, Keywords Modified Time 04/27/2023 18:00:14.970 2023-04-27T16:00:14.970+00:00
Budget Summary Report Date 6/10/2021 2021-06-10
* Report Hourly TimePeriod 2023-11-04|11 2023-11-04T11:00:00+00:00

@vercel
Copy link

vercel bot commented Oct 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 10:11pm

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Oct 31, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2023

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@pedroslopez pedroslopez requested review from alafanechere and removed request for pedroslopez November 1, 2023 16:00
Copy link
Contributor

@alafanechere alafanechere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good to me but I believe the CAT failure is related to an expected_records failure. Shall we udpate these expected records following the schema change?
@davydov-d told me that the file size 260506229 exceeds limit 134217728 we see in the CAT report is often related to expected records test failure.

Copy link
Collaborator

@lazebnyi lazebnyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

…ads/validation-errors

# Conflicts:
#	airbyte-integrations/connectors/source-bing-ads/integration_tests/expected_records.jsonl
#	airbyte-integrations/connectors/source-bing-ads/metadata.yaml
#	airbyte-integrations/connectors/source-bing-ads/source_bing_ads/reports.py
#	airbyte-integrations/connectors/source-bing-ads/source_bing_ads/source.py
#	airbyte-integrations/connectors/source-bing-ads/source_bing_ads/streams.py
#	airbyte-integrations/connectors/source-bing-ads/unit_tests/test_source.py
#	docs/integrations/sources/bing-ads.md
@artem1205 artem1205 marked this pull request as ready for review November 15, 2023 13:13
@artem1205 artem1205 enabled auto-merge (squash) November 15, 2023 22:09
@artem1205 artem1205 merged commit 472c807 into master Nov 15, 2023
24 checks passed
@artem1205 artem1205 deleted the daryna/source-bing-ads/validation-errors branch November 15, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/bing-ads team/connectors-python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants