Files
jobboard/tests/fixtures/ats/greenhouse.json
T
WolfandClaude Sonnet fa4e1a657f Keep a board's stated pay as salary_text, even when it does not normalise
Every ats parser now writes one human-readable pay line whether or not it
converts to yearly salary_min/salary_max/currency: hourly and daily rates,
Greenhouse's several pay zones, and a range with no currency all survive as
text instead of being dropped outright. Stored in roles.salary_text
(migration 12), replaced whole on every pull like title, so a board that
stops stating pay clears it rather than leaving a stale line. salary_state
is derived, not stored ('normalised', 'stated', or ''), and is what the
feed's new Pay filter and badge read; gates and scoring are unchanged, still
reading only the normalised columns.

Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
2026-09-29 15:08:45 +02:00

74 lines
2.3 KiB
JSON

{
"jobs": [
{
"id": 1001,
"title": "\t Senior Backend Engineer ",
"location": {"name": " Berlin, Germany"},
"absolute_url": "https://gh.example/1",
"updated_at": "2026-09-10T12:00:00-04:00",
"first_published": "2026-09-09T08:00:00-04:00",
"departments": [{"id": 1, "name": "Engineering"}],
"content": "&lt;p&gt;Build our &lt;strong&gt;core platform&lt;/strong&gt;.&lt;/p&gt;",
"pay_input_ranges": [
{"min_cents": 6500000, "max_cents": 8500000, "currency_type": "EUR",
"title": "Base salary range:"}
]
},
{
"id": 1002,
"title": "Account Executive",
"location": {"name": "Phoenix, AZ"},
"absolute_url": "https://gh.example/2",
"updated_at": "2026-09-11T12:00:00-04:00",
"departments": [{"id": 2, "name": "Sales"}],
"content": "",
"pay_input_ranges": [
{"min_cents": 3000, "max_cents": 4500, "currency_type": "USD",
"title": "SF Bay Area Hourly Rate"}
]
},
{
"id": 1003,
"title": "Evil posting",
"location": {"name": "Anywhere"},
"absolute_url": "javascript:alert(1)",
"departments": []
},
{
"id": 1004,
"title": "Data posting",
"location": {"name": "Anywhere"},
"absolute_url": "data:text/html,hi",
"departments": []
},
{
"id": 1005,
"title": "Regional Sales Manager",
"location": {"name": "Remote - US"},
"absolute_url": "https://gh.example/5",
"updated_at": "2026-09-12T12:00:00-04:00",
"departments": [{"id": 2, "name": "Sales"}],
"content": "",
"pay_input_ranges": [
{"min_cents": 18000000, "max_cents": 22000000, "currency_type": "USD",
"title": "Zone 1"},
{"min_cents": 16000000, "max_cents": 20000000, "currency_type": "USD",
"title": "Zone 2"}
]
},
{
"id": 1006,
"title": "Support Specialist",
"location": {"name": "Remote"},
"absolute_url": "https://gh.example/6",
"updated_at": "2026-09-13T12:00:00-04:00",
"departments": [{"id": 3, "name": "Support"}],
"content": "",
"pay_input_ranges": [
{"min_cents": 6500000, "max_cents": 8500000, "currency_type": "",
"title": "Base salary range:"}
]
}
]
}