1
0
mirror of synced 2025-12-25 02:09:19 -05:00

Include requester and stats fields in tickets stream (#7486)

* 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>
This commit is contained in:
Hai To
2021-11-16 00:18:12 +01:00
committed by GitHub
parent 51c03da235
commit c99335ff8b
9 changed files with 22 additions and 5 deletions

View File

@@ -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"
}

View File

@@ -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

View File

@@ -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:

View File

@@ -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.

View File

@@ -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

View File

@@ -647,6 +647,12 @@
},
"description_text": {
"type": "string"
},
"requester": {
"type": "object"
},
"stats": {
"type": "object"
}
}
},

View File

@@ -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

View File

@@ -100,6 +100,12 @@
},
"description_text": {
"type": "string"
},
"requester": {
"type": "object"
},
"stats": {
"type": "object"
}
}
}

View File

@@ -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. |