Repository navigation
Add a Platform column read from oaPlatform - #2
Conversation
Each OA row now shows the assessment platform it was given on (HackerRank, CodeSignal, Codility, ...) when a candidate's report names it: in the company tables, the per-company oa.csv, and data/questions.csv|jsonl. The field is read tolerantly: a catalog without `oaPlatform` (the API ships it after this change), a null, or anything that is not a short string renders as an empty cell, so the hourly sync keeps working before the field is live. `oaPlatform` is not a required field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
What
A Platform column (HackerRank, CodeSignal, Codility, ...) on every OA row: the company tables, each
companies/<company>/oa.csv, anddata/questions.csv/data/questions.jsonl(platformkey). Column order: Title, Format, Platform, Difficulty, Level, Role, Last Reported, Link.Where it comes from
The TrueInterview public API's new
oaPlatformfield on a Question. It is set only when a candidate's report names the platform (the techscrapeOA_platformstage, deterministic, with verbatim evidence kept). It is never guessed from the company, so most rows stay empty. Today 102 of the 835 live OA questions (12%) have one: CodeSignal 57, HackerRank 43, CoderPad 2.Safe before the API ships it
oaPlatformis not a required field. A catalog with no such key, anull, or a value that is not a short string (40 chars max) reads as unknown, and the cell stays empty (-in the markdown tables, which matches the other empty columns). The hourly sync keeps working whether or not the field is live. A test covers this (test_a_catalog_without_the_field_still_renders_with_the_column_empty).Generated files are not touched in this PR. The first sync after merge re-renders them with the new column.
Do not merge yet
The column only fills once the site change (migration
0516_question_oa_platform+oaPlatformin/api/v1/questions) is promoted to production and the backfill has run. Merging before then is harmless, because the column just renders empty.Tests
python3 -m unittest discover -s scripts -p "test_*.py": 40 tests pass (4 new, 7 updated for the shifted column index).🤖 Generated with Claude Code
Summary by CodeRabbit