Lead a role in several cities with the one nearest the viewing agent, in the row, the reader and the posting link
Places are ordered in tiers off the agent's gates (the any group, then the require scope, then the rest), and within a tier by the home the any group gives, since the gazetteer holds no coordinates. GET /api/roles and /api/roles/{uid} carry place_texts, lead_place and lead_url for the roles served; the gates and the dupes rule are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ac4cdb8a48
commit
fb24c8e4c9
8 files changed
+277
-29
No files matched your search
+16
-2
@@ -1194,9 +1194,17 @@ class Role(Model):
|
||||
#: The open copies of this role, oldest first, when it is the kept one;
|
||||
#: empty otherwise. Not a column: filled by `Store.role`.
|
||||
copies: list[RoleCopy] = []
|
||||
#: Every place of the role, in the host's order. Not a column: filled by
|
||||
#: `Store.role` from `role_places`.
|
||||
#: Every place of the role, the nearest to the viewing agent first
|
||||
#: (`places.Nearness`), else in the host's order. Not a column: filled
|
||||
#: by `Store.role` from `role_places`.
|
||||
places: list[RolePlace] = []
|
||||
#: The text of the first of `places`, what the row and the reader lead
|
||||
#: with; '' for a role with no place.
|
||||
lead_place: str = ""
|
||||
#: The link of the folded copy whose place leads, which the posting
|
||||
#: opens at; '' when the role's own place leads, and the role's own
|
||||
#: link stands.
|
||||
lead_url: str = ""
|
||||
#: Where a remote hire may live, as a label: "anywhere", "Europe",
|
||||
#: "United States, Canada". '' when the role is not remote or its area is
|
||||
#: not stated. Not a column: filled by `Store` from `role_remote`.
|
||||
@@ -1321,6 +1329,12 @@ class RoleRow(Model):
|
||||
excerpt: str = ""
|
||||
#: How many open roles are copies of this one (`Role.copies`), 0 when none.
|
||||
copies: int = 0
|
||||
#: The distinct place texts, the nearest to the agent first; `place` is
|
||||
#: the first of them and "+N" for the others. `lead_place` and
|
||||
#: `lead_url` as on `Role`.
|
||||
place_texts: list[str] = []
|
||||
lead_place: str = ""
|
||||
lead_url: str = ""
|
||||
#: As `Role.remote_where`: the area a remote hire may live in, '' when
|
||||
#: the role is not remote or does not say.
|
||||
remote_where: str = ""
|
||||
|
||||
Reference in new issue
Block a user