Skip to content

Commit

Permalink
update: configure Bullhorn Warehouse for incremental reading
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnedhir committed Dec 2, 2024
1 parent 722e8c7 commit e592edc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
12 changes: 6 additions & 6 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"required": [],
"$defs": {}
},
"supports_incremental": false,
"supports_incremental": true,
"pull_parameters": {
"title": "ReadCreatedJobsCriterias",
"type": "object",
Expand Down Expand Up @@ -818,7 +818,7 @@
"required": [],
"$defs": {}
},
"supports_incremental": false,
"supports_incremental": true,
"pull_parameters": {
"title": "ReadUpdatedJobsCriterias",
"type": "object",
Expand Down Expand Up @@ -1550,7 +1550,7 @@
"required": [],
"$defs": {}
},
"supports_incremental": false,
"supports_incremental": true,
"pull_parameters": {
"title": "ReadArchivedJobsCriterias",
"type": "object",
Expand Down Expand Up @@ -2374,7 +2374,7 @@
}
}
},
"supports_incremental": false,
"supports_incremental": true,
"pull_parameters": {
"title": "ReadCreatedProfilesCriterias",
"type": "object",
Expand Down Expand Up @@ -3669,7 +3669,7 @@
}
}
},
"supports_incremental": false,
"supports_incremental": true,
"pull_parameters": {
"title": "ReadUpdatedProfilesCriterias",
"type": "object",
Expand Down Expand Up @@ -4979,7 +4979,7 @@
}
}
},
"supports_incremental": false,
"supports_incremental": true,
"pull_parameters": {
"title": "ReadArchivedProfilesCriterias",
"type": "object",
Expand Down
11 changes: 11 additions & 0 deletions src/hrflow_connectors/v2/connectors/bullhorn/aisles.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from hrflow_connectors.v2.core.warehouse import (
Aisle,
Criterias,
IncrementalTokenHandler,
ReadOperation,
WriteOperation,
merge,
Expand Down Expand Up @@ -965,6 +966,11 @@ def item_to_read_from_update_or_archive(item: dict) -> str:
update=ReadUpdatedProfilesCriterias,
archive=ReadArchivedProfilesCriterias,
),
incremental_token_handler=IncrementalTokenHandler(
create=item_to_read_from_create,
update=item_to_read_from_update_or_archive,
archive=item_to_read_from_update_or_archive,
),
),
schema=BullhornProfile,
)
Expand All @@ -982,6 +988,11 @@ def item_to_read_from_update_or_archive(item: dict) -> str:
update=ReadUpdatedJobsCriterias,
archive=ReadArchivedJobsCriterias,
),
incremental_token_handler=IncrementalTokenHandler(
create=item_to_read_from_create,
update=item_to_read_from_update_or_archive,
archive=item_to_read_from_update_or_archive,
),
),
schema=BullhornJob,
)
Expand Down

0 comments on commit e592edc

Please sign in to comment.