Mod-side rollout: push EcoJobsTracker.dll with lastSeen field to kai-server #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally filed by @coilysiren on 2026-05-09T06:30:53Z - https://github.com/coilysiren/eco-jobs-tracker/issues/12
Context
#3 changed the mod's
/api/v1/skillsDTO from `active: bool` to `lastSeen: string | null`, with the Python tracker deriving "active" from that timestamp. The web app shipped (eco-jobs-tracker.coilysiren.me), but the C# mod DLL on kai-server is still the pre-#3 build, so the live dashboard saw `lastSeen` missing on every player and rendered the entire active set as 0/N.A backwards-compat shim landed in `upstream.py` that falls back to the old `active: bool` so the dashboard reflects "online right now" until the new mod is in place. That restores pre-#3 behavior for now.
To complete the rollout
After the rollout lands
Delete the `active: bool` fallback in `src/eco_spec_tracker/upstream.py:_resolve_last_seen` and the matching test fixture (`tests/test_smoke.py:OLD_MOD_FIXTURE`).