Skip to content
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 RD Station Marketing: Fix stream analytics conversions #18826

Merged
merged 8 commits into from
Dec 5, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_rd_station_marketing ./source_rd_station_marketing
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-rd-station-marketing
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ class AnalyticsConversions(IncrementalRDStationMarketingStream):
cursor_field = "asset_updated_at"
primary_key = "asset_id"

def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]:
records = response.json().get(self.data_field)[0].get(self.data_field)
yield from records


class AnalyticsEmails(IncrementalRDStationMarketingStream):
"""
Expand Down
3 changes: 2 additions & 1 deletion docs/integrations/sources/rd-station-marketing.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ Each endpoint has its own performance limitations, which also consider the accou

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :-------------------------------------------------------------- |
| 0.1.0 | 2022-10-23 | [18348](https://github.com/airbytehq/airbyte/pull/18348) | Initial Release |
| 0.1.1 | 2022-11-01 | [18826](https://github.com/airbytehq/airbyte/pull/18826) | Fix stream analytics_conversions |
| 0.1.0 | 2022-10-23 | [18348](https://github.com/airbytehq/airbyte/pull/18348) | Initial Release |