Merge branch 'main' into wp1-byhand-api
# Conflicts: # app/models.py # app/storage/schema.py # app/storage/store.py # app/web/api.py # tests/test_storage.py # tests/test_web.py
This commit is contained in:
commit
1a2689e08d
17 files changed
+565
-109
No files matched your search
+19
-6
@@ -107,8 +107,11 @@ CREATE TABLE IF NOT EXISTS role_tags (
|
||||
-- yet. country is an ISO code and city the head office's. ats_slug is the
|
||||
-- name that host knows the company by (the acme of acme.teamtailor.com),
|
||||
-- '' where its URL carries none, kept for the parser written later.
|
||||
-- watch is the Watchlist's rating, global and not an agent's: NULL unrated, 1
|
||||
-- worth checking by hand, 0 not; careers_opened_at when its careers page was
|
||||
-- last opened from there, which is also when a person last looked at it.
|
||||
-- hand_reason is why a person reads the careers page (models.HAND_REASONS),
|
||||
-- '' when nobody has to, and checked_at when one last did, '' for never.
|
||||
-- '' when nobody has to.
|
||||
CREATE TABLE IF NOT EXISTS companies (
|
||||
key TEXT PRIMARY KEY,
|
||||
name TEXT NOT NULL,
|
||||
@@ -122,8 +125,9 @@ CREATE TABLE IF NOT EXISTS companies (
|
||||
country TEXT NOT NULL DEFAULT '',
|
||||
city TEXT NOT NULL DEFAULT '',
|
||||
ats_slug TEXT NOT NULL DEFAULT '',
|
||||
hand_reason TEXT NOT NULL DEFAULT '',
|
||||
checked_at TEXT NOT NULL DEFAULT ''
|
||||
watch INTEGER CHECK (watch IN (0, 1)),
|
||||
careers_opened_at TEXT NOT NULL DEFAULT '',
|
||||
hand_reason TEXT NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
-- The targets desk's runner hands to plugins. newsdesk's shape, with its two
|
||||
@@ -428,10 +432,19 @@ ALTER TABLE agents DROP COLUMN intent_key;
|
||||
ALTER TABLE agents DROP COLUMN intent_vec;
|
||||
ALTER TABLE scores ADD COLUMN prompt TEXT NOT NULL DEFAULT '';
|
||||
"""),
|
||||
(15, "companies.hand_reason and checked_at: the companies read by hand are a list "
|
||||
"with a reason and a date last looked at", """
|
||||
# The Watchlist's own rating, global and apart from an agent's affinity:
|
||||
# NULL not yet rated, 1 worth checking by hand, 0 not. Every company
|
||||
# starts unrated.
|
||||
(15, "companies.watch and careers_opened_at: the Watchlist's rating and "
|
||||
"when its careers page was last opened", """
|
||||
ALTER TABLE companies ADD COLUMN watch INTEGER CHECK (watch IN (0, 1));
|
||||
ALTER TABLE companies ADD COLUMN careers_opened_at TEXT NOT NULL DEFAULT '';
|
||||
"""),
|
||||
# Why a person reads the company's careers page by hand, one of
|
||||
# models.HAND_REASONS; '' when nobody has to. When it was last looked at
|
||||
# is careers_opened_at.
|
||||
(16, "companies.hand_reason: why a company is read by hand", """
|
||||
ALTER TABLE companies ADD COLUMN hand_reason TEXT NOT NULL DEFAULT '';
|
||||
ALTER TABLE companies ADD COLUMN checked_at TEXT NOT NULL DEFAULT '';
|
||||
"""),
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user