Size a board once with board_size, before a pull reads it with no size, and name what a site's ids leave out
set_board sizes a board from page 1's total, or reads to the end on a host that states none, instead of reading it whole up to page 100. A pull no longer rewrites ats:size; a board with none is handed the agents' reach marked unsized and is sized in its batch first, or by its whole read on a host that cannot narrow the reach. reach.sizes drops the open-role fallback. The Companies line names countries a Workday or Oracle site does not list and a missing remote option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a19c528e3f
commit
a0882e9659
8 files changed
+579
-67
No files matched your search
@@ -127,8 +127,8 @@ def test_the_narrow_reach_takes_no_terms(store: Store) -> None:
|
||||
|
||||
|
||||
@pytest.mark.parametrize("size, params", [
|
||||
(299, {}), (None, {}), (5000, {"countries": ["DE"]}),
|
||||
], ids=["small", "never read whole", "own reach"])
|
||||
(299, {}), (5000, {"countries": ["DE"]}),
|
||||
], ids=["small", "own reach"])
|
||||
def test_small_unknown_overridden_and_switched_off_boards_take_no_terms(
|
||||
store: Store, size: int | None, params: dict[str, object]) -> None:
|
||||
_wolf(store, TERMS)
|
||||
@@ -394,10 +394,10 @@ def test_a_term_read_writes_no_size_and_closes_nothing(
|
||||
Tally(results=tuple(results)))
|
||||
|
||||
# No terms: Europe is too many countries for SmartRecruiters, so whole.
|
||||
# A whole read writes no size either: the board keeps the one it has.
|
||||
run()
|
||||
assert [_query(u).get("q") for u in asked] == [None]
|
||||
assert store.state["ats:size:smartrecruiters:bfl"] == "3"
|
||||
store.state["ats:size:smartrecruiters:bfl"] = "1000"
|
||||
assert store.state["ats:size:smartrecruiters:bfl"] == "1000"
|
||||
open_before = {r.source_id for r in store.roles(limit=50)}
|
||||
assert open_before == {f"smartrecruiters:bfl:{n}" for n in ("1", "2", "9")}
|
||||
|
||||
@@ -413,9 +413,6 @@ def test_a_term_read_writes_no_size_and_closes_nothing(
|
||||
assert {r.source_id for r in store.roles(limit=50)} == open_before
|
||||
assert settled["closed"] == 0
|
||||
assert store.state["ats:size:smartrecruiters:bfl"] == "1000"
|
||||
# A board sized by its open roles is never sized by a term read.
|
||||
del store.state["ats:size:smartrecruiters:bfl"]
|
||||
assert reach.sizes(store, store.subscriptions(source="ats")) == {}
|
||||
|
||||
|
||||
# ------------------------------------------------------- storage and the API
|
||||
|
||||
Reference in new issue
Block a user