Filter the feed by company keys, place tokens and seniority, and suggest companies and places
Migration 17 adds roles.place_fold and fills seniority from the title where extract has not read the role. Every connection registers place_match, so the Place filter and the place gate match whole folded words: Lund no longer finds Billund. GET /api/roles takes company_keys, places, seniority, seniority_unknown and pay_unknown; new routes suggest companies and places, label place tokens and count the seniority and pay facets. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
4b9403a0b9
commit
a91b4e99e0
6 files changed
+724
-60
No files matched your search
+8
-2
@@ -632,6 +632,8 @@ def remote_of(place: str) -> str:
|
||||
Seniority = Literal["", "intern", "junior", "mid", "senior", "staff", "lead", "manager",
|
||||
"director", "exec"]
|
||||
SENIORITIES: tuple[str, ...] = get_args(Seniority)
|
||||
#: The levels a seniority filter may name: `SENIORITIES` without the unknown.
|
||||
LEVELS: tuple[str, ...] = tuple(level for level in SENIORITIES if level)
|
||||
|
||||
#: Whether a posting says it sponsors a work permit. '' is "it does not say".
|
||||
Permit = Literal["", "sponsors", "no_sponsorship"]
|
||||
@@ -891,7 +893,9 @@ class RoleRow(Model):
|
||||
characters. The pay fields are what the row's badge reads: the three
|
||||
normalised columns, the line the board stated, and `salary_state`,
|
||||
derived as on `Role`. `original_url` is one short string, kept so the
|
||||
`o` key opens a selected row's posting without opening the reader."""
|
||||
`o` key opens a selected row's posting without opening the reader.
|
||||
`seniority` is the title's level until extract reads the posting, ''
|
||||
when neither says."""
|
||||
|
||||
uid: str
|
||||
company_key: str = ""
|
||||
@@ -901,6 +905,7 @@ class RoleRow(Model):
|
||||
country: str = ""
|
||||
remote: Remote = ""
|
||||
function: str = ""
|
||||
seniority: str = ""
|
||||
salary_min: int | None = None
|
||||
salary_max: int | None = None
|
||||
currency: str = ""
|
||||
@@ -998,7 +1003,8 @@ class Application(Model):
|
||||
# ------------------------------------------------------------------ agents
|
||||
|
||||
#: The role columns a gate can name. `company` matches on the company key;
|
||||
#: `place` is a case-insensitive substring, like the place filter; the rest are
|
||||
#: `place` takes the Place filter's tokens (`app.places`: `country:DK`,
|
||||
#: `region:skane`, `place:malmo`, bare text a `place:`) on whole words; the rest are
|
||||
#: case-insensitive equality, except `salary_min` (at least the value) and
|
||||
#: `languages` (every language the role requires is one of the values).
|
||||
GateField = Literal["place", "country", "remote", "seniority", "function", "salary_min",
|
||||
|
||||
Reference in new issue
Block a user