Repository navigation
v1.4.0 — a whole crew on one job
A whole crew can now clock in on the same job, time that was mistracked can be put right, and a resource can say what it costs.
This release changes the published API contract — the first one to do so since 1.2.0. Clients generated against 1.3.x keep working only where they do not touch the fields below; regenerate them from docs/openapi.json. docs/MIGRATION.md carries the details and the SQL for an existing database.
Time tracking is per person
Tracking used to hang off the task: one clock, so the second person to scan a sticker stopped the first one's. Beyond any per-person reporting, that made the effort booked on the task itself wrong — two people working two hours each came out as two hours. A task now holds as many open clocks as there are people on it.
trackingis renamed totrackingForMein the task DTO, the tracking summary and the NFC scan result, and answers "is my clock running". The rename is deliberate: keeping the name would have left every generated client compiling happily against a changed meaning.- New
runningCount— how many people are on the task right now. - Every work session names its owner (
userId,username). POST /tasks/{id}/tracking/stop-attakes an optionaluserId, so a manager can close a clock somebody left running overnight.
Work sessions can be corrected
Somebody forgets to clock out, or scans the wrong tag. Four endpoints put it right, and each records who changed what, when and why, keeping the original bounds:
POST /tasks/{id}/tracking/stop-at— stop the running session retroactivelyPOST,PUT,DELETEon/tasks/{id}/tracking/sessions[/{sessionId}]— book, correct or remove one by hand
A reason is mandatory. A manager may correct anything on their project, everyone else only their own sessions.
A resource can state what it costs
costRate, costCurrency and costRateUnit (HOUR, DAY, USAGE) — the rate as master data, which is neutral; tariffs, VAT and overheads belong in whatever is built on top. The three fields travel together, the currency must be an ISO 4217 code, and 0 means "free of charge", which is a different statement from "not recorded". DELETE /resources/{id}/cost-rate removes a rate again.
Also in this release
dateOfBirthis a calendar date (format: date). As an instant it rendered a day early or late whenever the reader's zone differed from the server's.lastSeenreplaceslastLogin, which nothing ever wrote. It is stamped on authentication and throttled.GET /departmentslists flat across companies — a fresh installation has no company id to start from, so the department tree was unreachable over REST.GET /departments/{id}now requires READ permission. A caller that used to read departments it had no rights to receives 403.- A phone that taps an NFC sticker lands on a small scan page and confirms with one button, instead of a bare REST call it cannot make.
Full changelog: v1.3.1...v1.4.0