-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Google analytics v4: Oauth2.0 config #6306
Conversation
fbf77be
to
5628ef8
Compare
airbyte-integrations/connectors/source-google-analytics-v4/source_google_analytics_v4/spec.json
Outdated
Show resolved
Hide resolved
5628ef8
to
fe20a1d
Compare
98f2706
to
c1d3af5
Compare
/test connector=connectors/source-google-analytics-v4
|
c1d3af5
to
70a6791
Compare
70a6791
to
32a3067
Compare
"title": "Credentials JSON", | ||
"description": "The contents of the JSON service account key. Check out the <a href=\"https://docs.airbyte.io/integrations/sources/googleanalytics\">docs</a> if you need help generating this key.", | ||
"airbyte_secret": true | ||
"auth_mechanism": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you name this credentials
so we can have consistency across connectors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -4,14 +4,48 @@ | |||
"$schema": "http://json-schema.org/draft-07/schema#", | |||
"title": "Google Analytics V4 Spec", | |||
"type": "object", | |||
"required": ["credentials_json", "view_id", "start_date"], | |||
"required": ["view_id", "start_date"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
credentials is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
"title": "Authentication mechanism", | ||
"type": "object", | ||
"description": "Choose either OAuth2.0 flow or provide your own JWT credentials for service account", | ||
"oneOf": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to make this backwards compatible so it's not a break change? Maybe additionalProps=true and if credentials_json
is available in the config then continue functioning correctly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
}, | ||
{ | ||
"type": "object", | ||
"title": "JWT authorization", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just call this Service Account Key
everywhere instead of JWT. I think that terminology is more common.l
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
/test connector=connectors/source-google-analytics-v4
|
/publish connector=connectors/source-google-analytics-v4
|
What
Describe what the change is solving
It helps to add screenshots if it affects the frontend.
How
Resolves #6173
Recommended reading order
x.java
y.python
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing./publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changes