Skip to content

Commit e83a745

Browse files
committed
#1339 source freshdesk: upd changelog
1 parent ed91e32 commit e83a745

File tree

2 files changed

+7
-2
lines changed
  • airbyte-integrations/connectors/source-freshdesk/source_freshdesk
  • docs/integrations/sources

2 files changed

+7
-2
lines changed

airbyte-integrations/connectors/source-freshdesk/source_freshdesk/streams.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def read_records(
9999
sync_mode=sync_mode, cursor_field=cursor_field, stream_slice=stream_slice, stream_state=stream_state
100100
)
101101

102-
def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]:
102+
def parse_response(self, response: requests.Response, **kwargs) -> Iterable[MutableMapping]:
103103
if self.forbidden_stream:
104104
return []
105105
return response.json() or []
@@ -156,6 +156,11 @@ class BusinessHours(FreshdeskStream):
156156
def path(self, **kwargs) -> str:
157157
return "business_hours"
158158

159+
def parse_response(self, response: requests.Response, **kwargs) -> Iterable[MutableMapping]:
160+
for record in super().parse_response(response, **kwargs):
161+
record["working_hours"] = record.pop("business_hours", None)
162+
yield record
163+
159164

160165
class CannedResponseFolders(FreshdeskStream):
161166
def path(self, **kwargs) -> str:

docs/integrations/sources/freshdesk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The Freshdesk connector should not run into Freshdesk API limitations under norm
6767

6868
| Version | Date | Pull Request | Subject |
6969
|:--------|:-----------|:---------------------------------------------------------|:--------------------------------------------------------------------------------------|
70-
| 3.0.0 | 2023-01-31 | [00000](https://github.com/airbytehq/airbyte/pull/00000) | Rename nested `business_hours` table to `working_hours` |
70+
| 3.0.0 | 2023-01-31 | [22164](https://github.com/airbytehq/airbyte/pull/22164) | Rename nested `business_hours` table to `working_hours` |
7171
| 2.0.1 | 2023-01-27 | [21888](https://github.com/airbytehq/airbyte/pull/21888) | Set `AvailabilityStrategy` for streams explicitly to `None` |
7272
| 2.0.0 | 2022-12-20 | [20416](https://github.com/airbytehq/airbyte/pull/20416) | Fix `SlaPolicies` stream schema |
7373
| 1.0.0 | 2022-11-16 | [19496](https://github.com/airbytehq/airbyte/pull/19496) | Fix `Contacts` stream schema |

0 commit comments

Comments
 (0)