Split the All tag into two company overrides: All countries and All roles (WP L)
Fetching has two filters, and a company now overrides each on its own.
All countries (companies.all_countries) is the old All roles tag: its big
boards are read with the agents' wide reach. All roles (companies.all_roles,
new meaning) drops the agents' fetch terms and any later role filter.
- Migration 24 copies the old tag to all_countries and keeps all_roles for
those companies, and moves a board's {"terms": false} to its company.
- The runner no longer reads {"terms": false}; the plan leaves the terms out
for a company set to All roles.
- POST /api/companies/{key}/all-countries and /all-roles, each queueing a
pull when turned on; CompanyOut carries both.
- Two toggles replace All on the Companies row, the reader and the Roles
strip; the reach line states countries and role types in plain words;
the filter select gets both options.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
795ca3628c
commit
e52857dea5
23 files changed
+602
-215
No files matched your search
@@ -340,10 +340,11 @@ def ask_for(module: ModuleType, subscription_params: Mapping[str, Any] | None =
|
||||
A module without `READS` gets `Ask()`.
|
||||
|
||||
Fetch terms (`reach["terms"]`) go only to a board reader that declares
|
||||
`query="one"`, and only on a wide read: `reach["wide"]` (a company
|
||||
tagged All roles), or a reach this rule just dropped as too many
|
||||
countries. A board whose params say `"terms": false` or name a query of
|
||||
their own takes none. Terms times the reach's series (`_cost`) may cost
|
||||
`query="one"`, and only on a wide read: `reach["wide"]` (a company set
|
||||
to All countries), or a reach this rule just dropped as too many
|
||||
countries. A company set to All roles gets no terms in its reach (see
|
||||
`app/jobs/reach.py`), and a board whose params name a query of their
|
||||
own takes none. Terms times the reach's series (`_cost`) may cost
|
||||
at most `MAX_SERIES`: over it, the place part of the reach goes first,
|
||||
whole, since remote without its countries would read only the remote
|
||||
roles; over it with terms alone, the terms go too and the board is read
|
||||
@@ -365,7 +366,7 @@ def ask_for(module: ModuleType, subscription_params: Mapping[str, Any] | None =
|
||||
wanted = {name: value for name, value in wanted.items() if name in declared_now}
|
||||
terms = _terms(given.get("terms"))
|
||||
if (not wide or reads.scope != "board" or reads.filters.query != "one"
|
||||
or params.get("terms") is False or "query" in wanted):
|
||||
or "query" in wanted):
|
||||
terms = ()
|
||||
if terms and len(terms) * _cost(reads, wanted) > MAX_SERIES:
|
||||
wanted = {name: value for name, value in wanted.items()
|
||||
|
||||
Reference in new issue
Block a user