Merge the seniority ladder's levels: title rules, host tables, extract, migration 25 (wp-sen-a-levels)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # app/prep/hosts/jobylon.py # app/prep/hosts/recruitee.py
This commit is contained in:
commit
dd9e359609
16 files changed
+328
-138
No files matched your search
@@ -611,6 +611,18 @@ ALTER TABLE companies ADD COLUMN hand_reason TEXT NOT NULL DEFAULT '';
|
||||
(24, "companies.all_countries takes over the All roles tag, and companies.all_roles "
|
||||
"means no role narrowing; a board's {\"terms\": false} becomes its company's "
|
||||
"all_roles", lambda conn: _split_all_roles(conn)),
|
||||
# Seniority became a ladder of two tracks (models.LADDER): staff, lead,
|
||||
# manager and director each split, so a model level in one of them is
|
||||
# emptied for extract to read the role again. The level shown is then
|
||||
# the first filled of the three, as Store.write_prep writes it; the
|
||||
# title's is mapped again by the next prep (app.prep.stage.VERSION 2).
|
||||
(25, "roles.seniority_model cleared where it is staff, lead, manager or director, "
|
||||
"which the ladder splits; roles.seniority from the model, stated and title levels", """
|
||||
UPDATE roles SET seniority_model = ''
|
||||
WHERE seniority_model IN ('staff', 'lead', 'manager', 'director');
|
||||
UPDATE roles SET seniority = COALESCE(NULLIF(seniority_model, ''),
|
||||
NULLIF(seniority_stated, ''), seniority_title);
|
||||
"""),
|
||||
)
|
||||
|
||||
#: What a file created from `SCHEMA` today is already at.
|
||||
|
||||
Reference in new issue
Block a user