job-hunter runbook: self-comp re-seed stores full TC breakdown
All checks were successful
ci/woodpecker/push/default Pipeline was successful
ci/woodpecker/push/build-cli Pipeline was successful

total_value (what the comparison bar uses) must be full TC; document storing
base+bonus+RSU components too so it's verifiable that RSU+bonus are included.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Viktor Barzin 2026-06-02 22:23:40 +00:00
parent deb0dd4778
commit 50a4ad70f0

View file

@ -277,10 +277,14 @@ from job_hunter.storage_comp import upsert_comp_point
async def m():
e=create_engine_from_env(); sf=make_session_factory(e)
async with sf() as s:
# total_value is what the comparison/bar uses — it MUST be full TC
# (base + bonus + RSU). Store the components too for transparency.
await upsert_comp_point(s, CompPoint(source='self', external_id='self-current',
company_slug='self-current', company_display_name='Me (Meta IC5)',
level_slug='senior', location_bucket='london',
total_value=Decimal('267000'), currency='GBP', effective_date=date.today()))
base_value=Decimal('123682'), bonus_value=Decimal('25734'),
rsu_grant_value=Decimal('117927'), rsu_vesting_years=1,
total_value=Decimal('267343'), currency='GBP', effective_date=date.today()))
await s.commit()
await e.dispose()
asyncio.run(m())"