Skip to content

Commit

Permalink
Update fields in source-connectors specifications: notion (#9207)
Browse files Browse the repository at this point in the history
  • Loading branch information
igrankova authored Jan 5, 2022
1 parent 74cb28e commit d418f9c
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "6e00b415-b02e-4160-bf02-58176a0ae687",
"name": "Notion",
"dockerRepository": "airbyte/source-notion",
"dockerImageTag": "0.1.0",
"dockerImageTag": "0.1.1",
"documentationUrl": "https://hub.docker.com/r/airbyte/source-notion",
"icon": "notion.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
- name: Notion
sourceDefinitionId: 6e00b415-b02e-4160-bf02-58176a0ae687
dockerRepository: airbyte/source-notion
dockerImageTag: 0.1.0
dockerImageTag: 0.1.1
documentationUrl: https://docs.airbyte.io/integrations/sources/notion
icon: notion.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4716,7 +4716,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-notion:0.1.0"
- dockerImage: "airbyte/source-notion:0.1.1"
spec:
documentationUrl: "https://docsurl.com"
connectionSpecification:
Expand All @@ -4730,11 +4730,13 @@
properties:
access_token:
type: "string"
title: "Access Token"
description: "Notion API access token, see the <a href=\"https://developers.notion.com/docs/authorization\"\
>docs</a> for more information on how to obtain this token."
airbyte_secret: true
start_date:
type: "string"
title: "Start Date"
description: "The date from which you'd like to replicate data for Notion\
\ API, in the format YYYY-MM-DDT00:00:00.000Z. All data generated after\
\ this date will be replicated."
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-notion/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_notion ./source_notion
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/source-notion
3 changes: 2 additions & 1 deletion airbyte-integrations/connectors/source-notion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ Customize `acceptance-test-config.yml` file to configure tests. See [Source Acce
If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
To run your integration tests with acceptance tests, from the connector root, run
```
python -m pytest integration_tests -p integration_tests.acceptance
docker build . --no-cache -t airbyte/source-notion:dev \
&& python -m pytest -p source_acceptance_test.plugin
```
To run your integration tests with docker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
},
"properties": {
"type": "object",
"additionalProperties": false,
"additionalProperties": true,
"patternProperties": {
".*": {
"anyOf": [
{
"type": "object",
"additionalProperties": false,
"additionalProperties": true,
"patternProperties": {
"^id$": { "type": "string" },
"^type$": { "enum": ["title", "rich_text"] },
Expand Down Expand Up @@ -80,6 +80,14 @@
"date": { "$ref": "date.json" }
}
},
{
"type": "object",
"properties": {
"id": { "type": "string" },
"type": { "enum": ["date"] },
"date": { "$ref": "date.json" }
}
},
{
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": ["null", "object"],
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"start": { "type": "string" },
"end": { "type": ["null", "string"] }
"start": { "type": ["null", "string"] },
"end": { "type": ["null", "string"] },
"time_zone": { "type": ["null", "string"] }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
"properties": {
"access_token": {
"type": "string",
"title": "Access Token",
"description": "Notion API access token, see the <a href=\"https://developers.notion.com/docs/authorization\">docs</a> for more information on how to obtain this token.",
"airbyte_secret": true
},
"start_date": {
"type": "string",
"title": "Start Date",
"description": "The date from which you'd like to replicate data for Notion API, in the format YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated.",
"examples": ["2020-11-16T00:00:00.000Z"],
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}Z$"
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/notion.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Please register on Notion and follow this [docs](https://developers.notion.com/d

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.1.1 | 2021-12-30 | [9207](https://github.com/airbytehq/airbyte/pull/9207) | Update connector fields title/description |
| 0.1.0 | 2021-10-17 | [7092](https://github.com/airbytehq/airbyte/pull/7092) | Initial Release |


0 comments on commit d418f9c

Please sign in to comment.