Skip to content

Commit

Permalink
fix: add job-number to jobology and meteojob flux
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdellahitech committed Mar 19, 2024
1 parent cb0e194 commit 84b5803
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ We invite developers to join us in our mission to bring AI and data integration
| **Comeet** | ATS | 🎯 | | | | | | |
| **Cornerstone OnDemand** | ATS | 🎯 | | | | | | |
| **Crosstalent** | ATS | :hourglass: | *19/01/2022* | | | | | |
| [**DigitalRecruiters**](./src/hrflow_connectors/connectors/digitalrecruiters/README.md) | ATS | :white_check_mark: | *17/08/2023* | *23/11/2023* | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| [**DigitalRecruiters**](./src/hrflow_connectors/connectors/digitalrecruiters/README.md) | ATS | :white_check_mark: | *17/08/2023* | *23/11/2023* | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
|**EngageATS** | ATS | 🎯 | | | | | | |
| **EOLIA Software** | ATS | 🎯 | | | | | | |
| **Eploy** | ATS | 🎯 | | | | | | |
Expand Down Expand Up @@ -135,7 +135,7 @@ We invite developers to join us in our mission to bring AI and data integration
| **Indeed** | Job Board | 🎯 | | |
| **Inzojob** | Job Board | 🎯 | | |
| **Jobijoba** | Job Board | 🎯 | | |
| [**Jobology**](./src/hrflow_connectors/connectors/jobology/README.md) | Job Board | :white_check_mark: | *21/12/2022* | *19/02/2024* | :x: | :x: | :x: | :x: |
| [**Jobology**](./src/hrflow_connectors/connectors/jobology/README.md) | Job Board | :white_check_mark: | *21/12/2022* | *19/02/2024* | :x: | :x: | :x: | :x: | :white_check_mark: |
| **Jobrapido** | Job Board | 🎯 | | |
| **JobTeaser** | Job Board | 🎯 | | |
| **Jobtransport** | Job Board | 🎯 | | |
Expand Down
6 changes: 5 additions & 1 deletion src/hrflow_connectors/connectors/jobology/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@

def rename_profile_fields(jobology_profile: t.Dict) -> t.Dict:
return {
"job-key": jobology_profile["jobkey"],
"job-number": (
jobology_profile["jobkey"][:10]
if len(jobology_profile.get("jobkey", "")) >= 10
else None
),
"first_name": jobology_profile.get("firstName"),
"last_name": jobology_profile.get("lastName"),
"phone": jobology_profile.get("phone"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Imports candidates, in synchronization with jobology
| Field | Type | Default | Description |
| ----- | ---- | ------- | ----------- |
| `logics` | `typing.List[typing.Callable[[typing.Dict], typing.Optional[typing.Dict]]]` | [] | List of logic functions |
| `format` | `typing.Callable[[typing.Dict], typing.Dict]` | [`format_jobology_profile`](../connector.py#L39) | Formatting function |
| `format` | `typing.Callable[[typing.Dict], typing.Dict]` | [`format_jobology_profile`](../connector.py#L43) | Formatting function |
| `read_mode` | `str` | ReadMode.sync | If 'incremental' then `read_from` of the last run is given to Origin Warehouse during read. **The actual behavior depends on implementation of read**. In 'sync' mode `read_from` is neither fetched nor given to Origin Warehouse during read. |

## Source Parameters
Expand Down
6 changes: 5 additions & 1 deletion src/hrflow_connectors/connectors/meteojob/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@

def rename_profile_fields(meteojob_profile: t.Dict) -> t.Dict:
return {
"job-key": meteojob_profile["jobkey"],
"job-number": (
meteojob_profile["jobkey"][:10]
if len(meteojob_profile.get("jobkey", "")) >= 10
else None
),
"first_name": meteojob_profile.get("firstName"),
"last_name": meteojob_profile.get("lastName"),
"phone": meteojob_profile.get("phone"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Imports candidates, in synchronization with Meteojob
| Field | Type | Default | Description |
| ----- | ---- | ------- | ----------- |
| `logics` | `typing.List[typing.Callable[[typing.Dict], typing.Optional[typing.Dict]]]` | [] | List of logic functions |
| `format` | `typing.Callable[[typing.Dict], typing.Dict]` | [`format_meteojob_profile`](../connector.py#L39) | Formatting function |
| `format` | `typing.Callable[[typing.Dict], typing.Dict]` | [`format_meteojob_profile`](../connector.py#L43) | Formatting function |
| `read_mode` | `str` | ReadMode.sync | If 'incremental' then `read_from` of the last run is given to Origin Warehouse during read. **The actual behavior depends on implementation of read**. In 'sync' mode `read_from` is neither fetched nor given to Origin Warehouse during read. |

## Source Parameters
Expand Down

0 comments on commit 84b5803

Please sign in to comment.