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
+6
-6
@@ -185,14 +185,14 @@ def test_small_unknown_and_overridden_boards_get_no_reach(
|
||||
assert (found.params() is None) == (why != "agents")
|
||||
|
||||
|
||||
def test_a_board_read_before_sizes_were_kept_is_sized_by_its_open_roles(store: Store) -> None:
|
||||
def test_a_board_has_only_the_size_it_was_given(store: Store) -> None:
|
||||
_board(store, "workday:acme.wd3/Jobs", "Acme", size=None)
|
||||
[sub] = store.subscriptions(source="ats")
|
||||
# A board read whole before sizes were kept is not sized by its open roles.
|
||||
store.state["ats:ok:workday:acme.wd3/Jobs"] = "run-0"
|
||||
assert reach.sizes(store, [sub]) == {"workday:acme.wd3/Jobs": 0}
|
||||
# A filtered board's open roles are not its size.
|
||||
store.state["ats:filtered:workday:acme.wd3/Jobs"] = "1"
|
||||
assert reach.sizes(store, [sub]) == {}
|
||||
store.state["ats:size:workday:acme.wd3/Jobs"] = "12"
|
||||
assert reach.sizes(store, [sub]) == {"workday:acme.wd3/Jobs": 12}
|
||||
|
||||
|
||||
def test_describe_is_short() -> None:
|
||||
@@ -237,8 +237,8 @@ def test_the_pull_hands_each_board_its_reach_and_the_runner_narrows_it(
|
||||
assert asked["BoschGroup"] == Ask(countries=("DK", "SE"))
|
||||
assert asked["tiny"] == Ask()
|
||||
assert store.state["ats:filtered:smartrecruiters:BoschGroup"] == "1"
|
||||
# The small board, read whole, keeps its size; the filtered one keeps its last.
|
||||
assert store.state["ats:size:smartrecruiters:tiny"] == "1"
|
||||
# A pull rewrites no size: the small board read whole keeps its 12.
|
||||
assert store.state["ats:size:smartrecruiters:tiny"] == "12"
|
||||
assert store.state["ats:size:smartrecruiters:BoschGroup"] == "1000"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user