Skip to content

Commit

Permalink
Include requester and stats fields in tickets stream (#7486)
Browse files Browse the repository at this point in the history
* Include requester and stats in tickets stream

* Update documentation, rebase to lastest master state and bump version

* run format

* format files

* correct other file

* correct files

Co-authored-by: Marcos Marx <marcosmarxm@gmail.com>
  • Loading branch information
Hai To and marcosmarxm authored Nov 15, 2021
1 parent 51c03da commit c99335f
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sourceDefinitionId": "ec4b9503-13cb-48ab-a4ab-6ade4be46567",
"name": "Freshdesk",
"dockerRepository": "airbyte/source-freshdesk",
"dockerImageTag": "0.2.7",
"dockerImageTag": "0.2.8",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/freshdesk",
"icon": "freshdesk.svg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
- name: Freshdesk
sourceDefinitionId: ec4b9503-13cb-48ab-a4ab-6ade4be46567
dockerRepository: airbyte/source-freshdesk
dockerImageTag: 0.2.7
dockerImageTag: 0.2.8
documentationUrl: https://docs.airbyte.io/integrations/sources/freshdesk
icon: freshdesk.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-freshdesk:0.2.7"
- dockerImage: "airbyte/source-freshdesk:0.2.8"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/freshdesk"
connectionSpecification:
Expand Down
3 changes: 3 additions & 0 deletions airbyte-integrations/connectors/source-freshdesk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.2.8
Include `requester` and `stats` fields in `tickets` stream

## 0.2.7
Add start_date parameter to specification from which to start pulling data.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ RUN pip install .

ENV AIRBYTE_ENTRYPOINT "/airbyte/base.sh"

LABEL io.airbyte.version=0.2.7
LABEL io.airbyte.version=0.2.8
LABEL io.airbyte.name=airbyte/source-freshdesk
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@
},
"description_text": {
"type": "string"
},
"requester": {
"type": "object"
},
"stats": {
"type": "object"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ class TicketsAPI(IncrementalStreamAPI):

def list(self, fields: Sequence[str] = None) -> Iterator[dict]:
"""Iterate over entities"""
params = {"include": "description"}
includes = ["description", "requester", "stats"]
params = {"include": ",".join(includes)}
yield from self.read(partial(self._api_get, url="tickets"), params=params)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@
},
"description_text": {
"type": "string"
},
"requester": {
"type": "object"
},
"stats": {
"type": "object"
}
}
}
1 change: 1 addition & 0 deletions docs/integrations/sources/freshdesk.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ Please read [How to find your API key](https://support.freshdesk.com/support/sol

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.2.8 | 2021-10-28 | [7486](https://github.com/airbytehq/airbyte/pull/7486) | Include "requester" and "stats" fields in "tickets" stream |
| 0.2.7 | 2021-10-13 | [6442](https://github.com/airbytehq/airbyte/pull/6442) | Add start_date parameter to specification from which to start pulling data. |

0 comments on commit c99335f

Please sign in to comment.