-
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 Amplitude: fix datetime update and session length change #28942
base: master
Are you sure you want to change the base?
🐛 Source Amplitude: fix datetime update and session length change #28942
Conversation
Before Merging a Connector Pull RequestWow! 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:
If the checklist is complete, but the CI check is failing,
|
/legacy-test connector=connectors/source-amplitude local_cdk=1
Build FailedTest summary info:
|
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ✅ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
@@ -618,7 +618,7 @@ def test_cursor_granularity_but_no_step(): | |||
) | |||
|
|||
|
|||
def test_given_multiple_cursor_datetime_format_then_slice_using_first_format(): | |||
def test_given_multiple_cursor_datetime_format_then_slice_using_datetime_format(): |
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.
Just cleaning up naming but doesn't affect this PR
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ✅ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
@@ -34,7 +34,7 @@ def extract_records(self, response: requests.Response) -> List[Record]: | |||
series = response_data.get("series", []) | |||
if len(series) > 0: | |||
series = series[0] # get the nested list | |||
return [{"date": date, "length": length} for date, length in zip(response_data["xValues"], series)] | |||
return [{"date": date, "length": length["value"]} for date, length in zip(response_data["xValues"], series)] |
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.
Why doesn't the change from using length
to the length's value
key result in a change to expected records? I'm a little confused where this value key comes from based on the API docs: https://www.docs.developers.amplitude.com/analytics/apis/dashboard-rest-api/#response_3
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.
Synced with Maxime, Amplitude response has also changed (but not documented) that has changed what was original an array of numbers:
[12.0, 15.0]
to an array of objects:
[{ "setId": "", "value": 12.0 }, { "setId": "", "value": 15.0 }]
We need this to retain compatibility with our existing connector behavior so this is all good.
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.
ship it! (after we vet the breaking changes with TCS)
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ✅ |
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-amplitude test
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.
lgtm 🚢
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ✅ |
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-amplitude test
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
source-amplitude test report (commit
|
Step | Result |
---|---|
Validate airbyte-integrations/connectors/source-amplitude/metadata.yaml | ✅ |
Connector version semver check | ✅ |
QA checks | ❌ |
Code format checks | ✅ |
Connector package install | ✅ |
Build source-amplitude docker image for platform linux/x86_64 | ✅ |
Unit tests | ✅ |
Acceptance tests | ❌ |
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-amplitude test
What
Fixing
p1-amplitude-state-format-issue
(maybe escalate to p0)How
Support many datetime format for cursor
Update extraction on session length
Breaking change document: https://docs.google.com/document/d/1thRH0nvccNgtesxV8ia3QolwH1t1Lz2yanRWbfr3VAI/edit