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 Notion: JSON Schema Updates #30587

Merged
merged 32 commits into from
Oct 9, 2023

Conversation

ChristoGrab
Copy link
Contributor

@ChristoGrab ChristoGrab commented Sep 19, 2023

What

Updates to JSON schemas for all existing streams

How

  • Added unexpected columns for all streams
  • Added date-time format to last_edited_time and created_time fields for all streams
  • BREAKING CHANGE: Renamed text property to rich_text in objects that contain rich text. Notion changelog for this update.
  • BREAKING CHANGE: Updated type of rich_text property in Pages stream from object to array of rich_text objects, which should also resolve this PR.
  • BREAKING CHANGE: Updated schema of Rich Text object to reflect API object. Notion docs
  • Updated schema for callout, code and to-do objects in Blocks stream
  • BREAKING CHANGE: Changed type of phone_number property in Database stream from string to object

User Impact

Many of the changes are simply additions of missing fields, but every stream other than Users is affected in some way by removal/renaming of properties. Pages properties rich_text and phone_number also have a type change.

Customers will have to refresh the schemas and reset data.

@octavia-squidington-iii octavia-squidington-iii added the area/connectors Connector related issues label Sep 19, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 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.

@ChristoGrab ChristoGrab changed the title Source Notion: JSON Schema Updates 🚨🚨🐛 Source Notion: JSON Schema Updates Sep 19, 2023
@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Sep 19, 2023
@ChristoGrab ChristoGrab marked this pull request as ready for review September 19, 2023 18:29
@vercel
Copy link

vercel bot commented Sep 20, 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 Oct 9, 2023 5:13pm

@octavia-approvington octavia-approvington requested a review from a team as a code owner September 22, 2023 20:45
@airbyte-oss-build-runner
Copy link
Collaborator

source-notion test report (commit 6b2b5815e5) - ❌

⏲️ Total pipeline duration: 03mn25s

Step Result
Connector package install
Build source-notion docker image for platform linux/x86_64
Unit tests
Acceptance tests
Code format checks
Validate airbyte-integrations/connectors/source-notion/metadata.yaml
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-notion test

@ChristoGrab ChristoGrab added the breaking-change Don't merge me unless you are ready. label Sep 25, 2023
Copy link
Contributor

@maxi297 maxi297 left a comment

Choose a reason for hiding this comment

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

Just one small question but given this is address, we're good to go!

@@ -107,7 +107,8 @@ The connector is restricted by Notion [request limits](https://developers.notion

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :--------------------------------------------------------------------------- |
| 1.1.2 | 2023-08-30 | [29999](https://github.com/airbytehq/airbyte/pull/29999) | Update error handling during connection check
| 1.2.0 | 2023-09-19 | [30587](https://github.com/airbytehq/airbyte/pull/30587) | Source-wide schema update |
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be 2.0.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh whoops, thanks for catching that! Fixed 👍

@airbyte-oss-build-runner
Copy link
Collaborator

source-notion test report (commit 974c2f2604) - ✅

⏲️ Total pipeline duration: 04mn15s

Step Result
Connector package install
Build source-notion docker image for platform linux/x86_64
Unit tests
Acceptance tests
Code format checks
Validate airbyte-integrations/connectors/source-notion/metadata.yaml
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-notion test

@airbyte-oss-build-runner
Copy link
Collaborator

source-notion test report (commit dae994798e) - ✅

⏲️ Total pipeline duration: 03mn34s

Step Result
Connector package install
Build source-notion docker image for platform(s) linux/x86_64
Unit tests
Acceptance tests
Code format checks
Validate metadata for source-notion
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-notion test

@airbyte-oss-build-runner
Copy link
Collaborator

source-notion test report (commit db33a1ac47) - ✅

⏲️ Total pipeline duration: 01mn20s

Step Result
Connector package install
Build source-notion docker image for platform(s) linux/x86_64
Unit tests
Acceptance tests
Code format checks
Validate metadata for source-notion
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-notion test

@airbyte-oss-build-runner
Copy link
Collaborator

source-notion test report (commit 4c71f01e1b) - ❌

⏲️ Total pipeline duration: 04mn30s

Step Result
Connector package install
Build source-notion docker image for platform(s) linux/x86_64
Unit tests
Acceptance tests
Code format checks
Validate metadata for source-notion
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-notion test

@airbyte-oss-build-runner
Copy link
Collaborator

source-notion test report (commit 54d566e864) - ❌

⏲️ Total pipeline duration: 03mn45s

Step Result
Connector package install
Build source-notion docker image for platform(s) linux/x86_64
Unit tests
Acceptance tests
Code format checks
Validate metadata for source-notion
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-notion test

@airbyte-oss-build-runner
Copy link
Collaborator

source-notion test report (commit d41e6423e2) - ✅

⏲️ Total pipeline duration: 03mn40s

Step Result
Connector package install
Build source-notion docker image for platform(s) linux/x86_64
Unit tests
Acceptance tests
Code format checks
Validate metadata for source-notion
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-notion test

@ChristoGrab ChristoGrab merged commit b5c3149 into master Oct 9, 2023
24 checks passed
@ChristoGrab ChristoGrab deleted the christo/fix-notion-schemas branch October 9, 2023 18:55
ariesgun pushed a commit to ariesgun/airbyte that referenced this pull request Oct 23, 2023
Co-authored-by: ChristoGrab <ChristoGrab@users.noreply.github.com>
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 breaking-change Don't merge me unless you are ready. connectors/source/notion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source Notion: Add undeclared columns to spec
4 participants