Skip to content

Commit 0e945f1

Browse files
Bazjbfbell
authored andcommitted
🐛 Source Github, Instagram, Zendesk Support / Talk - revert spec changes and improve (#29031)
1 parent 31b176f commit 0e945f1

File tree

18 files changed

+148
-9
lines changed

18 files changed

+148
-9
lines changed

airbyte-integrations/connectors/source-github/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=1.0.3
15+
LABEL io.airbyte.version=1.0.4
1616
LABEL io.airbyte.name=airbyte/source-github

airbyte-integrations/connectors/source-github/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ data:
55
connectorSubtype: api
66
connectorType: source
77
definitionId: ef69ef6e-aa7f-4af1-a01d-ef775033524e
8-
dockerImageTag: 1.0.3
8+
dockerImageTag: 1.0.4
99
maxSecondsBetweenMessages: 5400
1010
dockerRepository: airbyte/source-github
1111
githubIssueLabel: source-github

airbyte-integrations/connectors/source-github/source_github/spec.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@
2929
"title": "Access Token",
3030
"description": "OAuth access token",
3131
"airbyte_secret": true
32+
},
33+
"client_id": {
34+
"type": "string",
35+
"title": "Client Id",
36+
"description": "OAuth Client Id",
37+
"airbyte_secret": true
38+
},
39+
"client_secret": {
40+
"type": "string",
41+
"title": "Client ssecret",
42+
"description": "OAuth Client secret",
43+
"airbyte_secret": true
3244
}
3345
}
3446
},
@@ -117,6 +129,20 @@
117129
"type": "string"
118130
}
119131
}
132+
},
133+
"complete_oauth_server_output_specification": {
134+
"type": "object",
135+
"additionalProperties": false,
136+
"properties": {
137+
"client_id": {
138+
"type": "string",
139+
"path_in_connector_config": ["credentials", "client_id"]
140+
},
141+
"client_secret": {
142+
"type": "string",
143+
"path_in_connector_config": ["credentials", "client_secret"]
144+
}
145+
}
120146
}
121147
}
122148
}

airbyte-integrations/connectors/source-instagram/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=1.0.10
15+
LABEL io.airbyte.version=1.0.11
1616
LABEL io.airbyte.name=airbyte/source-instagram

airbyte-integrations/connectors/source-instagram/acceptance-test-config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ acceptance_tests:
5959
tests:
6060
- config_path: "secrets/config.json"
6161
configured_catalog_path: "integration_tests/configured_catalog.json"
62+
ignored_fields:
63+
user_lifetime_insights:
64+
- name: value
65+
bypass_reason: Floating values from sync-to-sync, due to live updating info.
66+
user_insights:
67+
- name: profile_views
68+
bypass_reason: Floating values from sync-to-sync, due to live updating info.
6269
incremental:
6370
tests:
6471
- config_path: "secrets/config.json"

airbyte-integrations/connectors/source-instagram/integration_tests/spec.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@
1818
"description": "The value of the access token generated with <b>instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access</b> permissions. See the <a href=\"https://docs.airbyte.com/integrations/sources/instagram/#step-1-set-up-instagram\">docs</a> for more information",
1919
"airbyte_secret": true,
2020
"type": "string"
21+
},
22+
"client_id": {
23+
"title": "Client Id",
24+
"description": "The Client ID for your Oauth application",
25+
"airbyte_secret": true,
26+
"airbyte_hidden": true,
27+
"type": "string"
28+
},
29+
"client_secret": {
30+
"title": "Client Secret",
31+
"description": "The Client Secret for your Oauth application",
32+
"airbyte_secret": true,
33+
"airbyte_hidden": true,
34+
"type": "string"
2135
}
2236
},
2337
"required": ["start_date", "access_token"]
@@ -48,6 +62,23 @@
4862
"type": "string"
4963
}
5064
}
65+
},
66+
"complete_oauth_server_output_specification": {
67+
"type": "object",
68+
"properties": {
69+
"client_id": {
70+
"type": "string",
71+
"path_in_connector_config": [
72+
"client_id"
73+
]
74+
},
75+
"client_secret": {
76+
"type": "string",
77+
"path_in_connector_config": [
78+
"client_secret"
79+
]
80+
}
81+
}
5182
}
5283
}
5384
}

airbyte-integrations/connectors/source-instagram/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ data:
55
connectorSubtype: api
66
connectorType: source
77
definitionId: 6acf6b55-4f1e-4fca-944e-1a3caef8aba8
8-
dockerImageTag: 1.0.10
8+
dockerImageTag: 1.0.11
99
dockerRepository: airbyte/source-instagram
1010
githubIssueLabel: source-instagram
1111
icon: instagram.svg

airbyte-integrations/connectors/source-instagram/source_instagram/source.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
from datetime import datetime
6-
from typing import Any, List, Mapping, Tuple
6+
from typing import Any, List, Mapping, Optional, Tuple
77

88
from airbyte_cdk.models import AdvancedAuth, ConnectorSpecification, DestinationSyncMode, OAuthConfigSpecification
99
from airbyte_cdk.sources import AbstractSource
@@ -34,6 +34,18 @@ class Config:
3434
airbyte_secret=True,
3535
)
3636

37+
client_id: Optional[str] = Field(
38+
description=("The Client ID for your Oauth application"),
39+
airbyte_secret=True,
40+
airbyte_hidden=True,
41+
)
42+
43+
client_secret: Optional[str] = Field(
44+
description=("The Client Secret for your Oauth application"),
45+
airbyte_secret=True,
46+
airbyte_hidden=True,
47+
)
48+
3749

3850
class SourceInstagram(AbstractSource):
3951
def check_connection(self, logger, config: Mapping[str, Any]) -> Tuple[bool, Any]:
@@ -96,6 +108,13 @@ def spec(self, *args, **kwargs) -> ConnectorSpecification:
96108
"type": "object",
97109
"properties": {"client_id": {"type": "string"}, "client_secret": {"type": "string"}},
98110
},
111+
complete_oauth_server_output_specification={
112+
"type": "object",
113+
"properties": {
114+
"client_id": {"type": "string", "path_in_connector_config": ["client_id"]},
115+
"client_secret": {"type": "string", "path_in_connector_config": ["client_secret"]},
116+
},
117+
},
99118
),
100119
),
101120
)

airbyte-integrations/connectors/source-zendesk-support/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ COPY source_zendesk_support ./source_zendesk_support
2525
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
2626
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
2727

28-
LABEL io.airbyte.version=0.10.5
28+
LABEL io.airbyte.version=0.10.6
2929
LABEL io.airbyte.name=airbyte/source-zendesk-support

airbyte-integrations/connectors/source-zendesk-support/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ data:
77
connectorType: source
88
maxSecondsBetweenMessages: 10800
99
definitionId: 79c1aa37-dae3-42ae-b333-d1c105477715
10-
dockerImageTag: 0.10.5
10+
dockerImageTag: 0.10.6
1111
dockerRepository: airbyte/source-zendesk-support
1212
githubIssueLabel: source-zendesk-support
1313
icon: zendesk-support.svg

0 commit comments

Comments
 (0)