Skip to content

Commit

Permalink
Source Freshsales: tune get_view_id function (#14705)
Browse files Browse the repository at this point in the history
* #12111 source freshsales: tune get_view_id function

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
davydov-d and octavia-squidington-iii authored Jul 14, 2022
1 parent 4738160 commit c7dc5e1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
- name: Freshsales
sourceDefinitionId: eca08d79-7b92-4065-b7f3-79c14836ebe7
dockerRepository: airbyte/source-freshsales
dockerImageTag: 0.1.1
dockerImageTag: 0.1.2
documentationUrl: https://docs.airbyte.io/integrations/sources/freshsales
icon: freshsales.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2536,7 +2536,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-freshsales:0.1.1"
- dockerImage: "airbyte/source-freshsales:0.1.2"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/freshsales"
connectionSpecification:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_freshsales ./source_freshsales
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/source-freshsales
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ def _get_filters(self) -> List:

def get_view_id(self):
"""
This function iterate over all available filters and get the relevant filter_id.
This function finds a relevant filter_id among all available filters by its name.
"""
if hasattr(self, "filter_name"):
filters = self._get_filters()
return next(filter["id"] for filter in filters if filter["name"] == self.filter_name)
else:
return
filters = self._get_filters()
return next(_filter["id"] for _filter in filters if _filter["name"] == self.filter_name)

def path(
self, stream_state: Mapping[str, Any] = None, stream_slice: Mapping[str, Any] = None, next_page_token: Mapping[str, Any] = None
Expand Down
21 changes: 11 additions & 10 deletions docs/integrations/sources/freshsales.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ If there are more endpoints you'd like Airbyte to support, please [create an iss

### Features

| Feature | Supported? |
| :--- | :--- |
| Full Refresh Sync | Yes |
| Incremental Sync | No |
| SSL connection | No |
| Namespaces | No |
| Feature | Supported? |
|:------------------|:-----------|
| Full Refresh Sync | Yes |
| Incremental Sync | No |
| SSL connection | No |
| Namespaces | No |

### Performance considerations

Expand All @@ -47,7 +47,8 @@ Please read [How to find your API key](https://crmsupport.freshworks.com/support

## Changelog

| Version | Date | Pull Request | Subject |
| :--- | :--- | :--- | :--- |
| 0.1.1 | 2021-12-24 | [9101](https://github.com/airbytehq/airbyte/pull/9101) | Update fields and descriptions |
| 0.1.0 | 2021-11-03 | [6963](https://github.com/airbytehq/airbyte/pull/6963) | 🎉 New Source: Freshsales |
| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:--------------------------------|
| 0.1.2 | 2022-07-14 | [00000](https://github.com/airbytehq/airbyte/pull/00000) | Tune the `get_view_id` function |
| 0.1.1 | 2021-12-24 | [9101](https://github.com/airbytehq/airbyte/pull/9101) | Update fields and descriptions |
| 0.1.0 | 2021-11-03 | [6963](https://github.com/airbytehq/airbyte/pull/6963) | 🎉 New Source: Freshsales |

0 comments on commit c7dc5e1

Please sign in to comment.