-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 Stripe: fix taxes-related tables in CheckoutSessionsLineItems + delete redundant secret key validation #8182
Conversation
This reverts commit 5086442.
@@ -377,7 +377,7 @@ def read_records(self, stream_slice: Optional[Mapping[str, Any]] = None, **kwarg | |||
|
|||
def request_params(self, stream_slice: Mapping[str, Any] = None, **kwargs): | |||
params = super().request_params(stream_slice=stream_slice, **kwargs) | |||
params["expand[]"] = "data.discounts" | |||
params["expand[]"] = ["data.discounts", "data.taxes"] |
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.
doesn't this change the output schema? if so, we should update the .json
schema file for this stream in order for normalization to process it 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.
Schema was already in .json
, you can check here, for some reason developer forgot to add this param. That's all.
@@ -9,7 +9,6 @@ | |||
"properties": { | |||
"client_secret": { | |||
"type": "string", | |||
"pattern": "^(s|r)k_(live|test)_[a-zA-Z0-9]+$", |
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.
what's the reason to remove this? it's better to give feedback instantly if we know it's correct
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.
I've found that I'm unable to delete Stripe source in Airbyte UI (and I'm not alone). Also, I found this redundant because there is a clear example in the settings page of the connector for this key and Stripe can change key-generating logic at any moment.
Seems that the real reason for that bug is somewhere in backend logic which isn't related to stripe connector, so it's easier to delete excessive validation. Btw you can reproduce it — just add the latest stripe source, configure It, try to delete and open web inspector in your browser to see errors.
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.
thanks for the context. this seems like a fair workaround then. Ive created an issue to address the root cause: #8244
Do I need to bump the version and changelog? I did it here but reverted because of confusion of a review process |
nope, you're good to go. Thanks @grkhr ! |
…s + delete redundant secret key validation (airbytehq#8182)
Co-authored-by: grkhr <[email protected]>
What
How
Added taxes param to stripe stream request. There were schema for this table but not in the request to Stripe.
Also, I've deleted regexp validation, causing bugs mentioned in Slack (e.g. it was unable to delete this source, there is some bug with validation itself). I've found this redundant because there is a clear example in doc and Stripe can change key-generating logic at any moment.
Pre-merge Checklist
Updating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.❗️Also I've build docker image and tested it by adding custom connector in UI. It can be found here and easily added to existing Airbyte instance.
Here is screenshot from database after testing
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 here