Repository navigation
Releases
v1.5.0 — equipment time and job costing
Equipment can now be clocked onto a task the way people are, and a job can be costed out.
What's new
Equipment time tracking. A sticker on the lift books the lift onto the job it is working:
POST /tasks/{id}/equipment/{resourceId}/start|stop|toggle|stop-at, with GET /tasks/{id}/equipment
and GET /tasks/{id}/equipment/sessions to read it back. Machine hours live on their own paths and in
their own responses — four hours of work plus 120 hours of dryer are not 124 hours of effort, and
separate storage makes that sum impossible rather than merely discouraged.
Corrections for equipment bookings. Nobody walks back to the lift at knock-off time to scan it, so
a booking can be entered by hand, corrected, or removed:
POST /tasks/{id}/equipment/{resourceId}/sessions and PUT|DELETE /tasks/{id}/equipment/sessions/{sessionId}.
Deleting is reserved for the project manager: it is the only operation that removes a cost line without
leaving an audit trail behind.
Costing by qualification, not by person. /qualification-levels holds what an hour of work is
costed at, and a user is put on exactly one level. A booking is stamped with the rate it was closed at,
so changing a price list no longer rewrites past jobs. GET /tasks/{id}/cost reports equipment and
labour together: the money is summed per currency, the hours never are, and the labour block reports
qualification levels rather than individual people.
A task can carry more than one NFC tag, and a slot count nothing can ever be booked on is refused
where it enters instead of surfacing later as a misleading 409 All slots (0) occupied.
Upgrading
Additive throughout: against 1.4.1 no path, schema, operation id, tag, request body, response or
parameter was removed or altered, so a 1.4.x client keeps working. Two additions can still be felt by
an old one — the NFC type enums gained EQUIPMENT, which a strictly generated 1.4.x enum does not
know, and ResourceRequest.maxSlots now carries minimum: 1.
PostgreSQL installations need to widen two check constraints before equipment can be clocked in, and
the unique constraint on nfc_unit.task_id has to go. docs/MIGRATION.md carries the statements and
the reasoning.
The four client libraries are regenerated from docs/openapi.json of this release.
v1.4.1 — a memory budget of its own
A self-hosting fix. No API change — nothing under src/ differs from 1.4.0 and docs/openapi.json differs in exactly one line (info.version), so the four published client libraries stay valid on 1.4.0 and need no regeneration.
The container now has a memory budget of its own
Nothing set a memory limit on the app container. The JVM is container-aware, so it sizes its heap from the container's limit — but with no limit it falls back to a share of the host's RAM. Measured on a 32 GB machine: a maximum heap of 8.4 GB, for a stack meant to run on a home server. Idle usage of ~657 MB was never a requirement, only the point it happened to stop at.
docker-compose.yamlsetsmem_limit(1 GB, override withMEM_LIMITin.env)- the image sets
-XX:MaxRAMPercentage=60, not a fixed-Xmx— a fixed value is wrong in both directions, OOM-killed on a small host and wasteful on a large one - the README's single-container command carries
-m 1g, and says why
60% rather than the customary 75%: this application's non-heap footprint — metaspace, code cache, threads, natives — measures around 310 MiB. At a 1 GB limit, 75% would put the heap ceiling past the limit, so a heap that genuinely filled up would be OOM-killed instead of collected. If you want 75%, give the container 2 GB:
docker run -m 2g -e JDK_JAVA_OPTIONS="-XX:MaxRAMPercentage=75" -p 8080:8080 prioritizeWhat to expect
At a 1 GB limit: about 455 MB idle, 544 MB after a few hundred API calls, starting in around 30 seconds. The PostgreSQL container adds roughly 65 MB. It does fit in 512 MB, but at ~92% of the limit there is no headroom.
Full changelog: v1.4.0...v1.4.1
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
v1.3.1 — RFC 3339 timestamps
Patch release. Every format: date-time field now carries a UTC offset, as RFC 3339 — and therefore the published OpenAPI contract — requires.
The defect
The DTO boundary mixed two time types. Instant fields went on the wire correctly ("2026-08-20T10:00:00Z"), LocalDateTime fields lost the offset entirely ("2026-08-02T21:40:20.81039"). Generated clients map date-time to OffsetDateTime, so the offset-less half of the API could not be read at all:
GET /resources,/resources/{id},/resources/statusGET /telemetry-rules/{id},/task-schedules/{id},/process-definitionsGET /documents/{id}/history
/users escaped only by accident — lastLogin is never set and dateOfBirth was null in the sample data.
The write direction was affected too: a client sending what its OffsetDateTime produces (+02:00) got a 400, while a Z was accepted and then silently discarded — a value changed meaning by travelling through the API.
The fix
The seven affected DTO fields now map to Instant through a new WireTime helper. Entities keep their LocalDateTime columns; there is no database change, and the server zone is the correct reading of the stored wall clock.
Compatibility
The published contract does not change. docs/openapi.json differs from 1.3.0 in exactly one line — info.version — and /v3/api-docs is byte-identical before and after the fix (83 paths, 51 schemas). The four released client libraries stay valid at 1.3.0 and need no regeneration.
Consumers that parsed the offset-less form as a local timestamp (a hand-written client, a script) will now see a trailing Z and should parse it as an instant.
Tests
479 green. Two new web-layer tests: one walks entire responses and fails on any timestamp that lost its offset — including nested DTOs — and one pins that both Z and a numeric offset round-trip to the same instant. Verified end to end with prioritize-java-client 1.3.0 against a running server.
v1.3.0 — resources reachable over REST
The release that makes resources reachable over REST.
Before this release a client could authenticate but could not get to a resource at all: there was no flat listing, and the only way in was a per-group endpoint whose group ids nothing ever handed out. 1.3.0 closes that path end to end and adds the combined read a polling status view actually wants.
New endpoints
| Endpoint | What it gives you |
|---|---|
GET /api/v1/resources |
Flat list of every resource the caller may read |
GET /api/v1/resources/{id}/values/latest |
Newest reading per telemetry data point |
GET /api/v1/resources/status |
Resource + latest values + monitoring rules in one response |
GET /api/v1/departments/{deptId}/resourcegroups |
The listing that was missing — resource groups could be created and deleted, but never listed |
PUT /api/v1/resourcegroups/{groupId} |
Rename a resource group |
/resources/status exists to collapse a fan-out: assembling the same picture from the individual endpoints costs 1 + 2N HTTP calls for N resources, and a polling client pays that on every tick. Measured against the dev database with one resource: 3 calls / 12 SQL statements → 1 call / 6.
Under the hood
@AuthenticatedUserargument resolver — controllers declare@AuthenticatedUser PUser currentUserinstead of resolving the caller from anAuthenticationthemselves. 14 controllers, 111 parameters, 11 duplicated helpers removed. Carried a bug fix:DepartmentControllerbypassed the resolver, which would have failed under thekeycloakprofile where the token subject is not the username.- The project's first web-layer tests. The path filter chain → open-in-view → argument resolver → controller was covered by no test at all; a green suite said nothing about it. Now exercised over real HTTP against a running container.
- The spec is emitted as OpenAPI 3.0.1 instead of 3.1.0. The contract uses no 3.1-only construct and OpenAPI Generator cannot resolve a 3.1.0 header, so the client harnesses no longer have to rewrite it.
Compatibility
Additive — no existing endpoint changed its path, payload or status codes. The frozen contract in docs/openapi.json is now 83 paths / 51 schemas and is the source for the 1.3.0 client libraries. 477 tests green.
Prioritize 1.2.0
Prioritize 1.2.0 — the REST API stabilization release. /api/v1 is now a clean, DTO-based contract, frozen as docs/openapi.json, ready to generate the official client libraries against.
Highlights
- Full request/response DTO boundary. No REST endpoint binds or returns a raw JPA entity anymore. The five controllers that still returned entities (Project, Task, NfcUnit, DocumentInfo, ProjectGoal) now answer flat DTOs, so the heavy entity graph (PUser, Company, Resource, Document, Blackboard, …) is gone from the API surface — the OpenAPI schema list drops from 71 to 49.
- Frozen OpenAPI spec.
docs/openapi.jsonis regenerated at 1.2.0 and is the single source of truth for the upcomingprioritize-<lang>-clientlibraries. - Security fix —
PUT /users/{id}. A full profile update no longer wipes the stored password and role assignments; password, roles, personal permissions and the department are preserved (they are managed via dedicated, elevated-authorization endpoints).
Notes
- The
/api/v1REST surface is the stable public contract (SemVer). The Vaadin admin GUI and its routes are an implementation detail, not part of the promise. ProjectGoalProperty/SkillPropertyremain marked experimental and may still evolve within the 1.x line.
No database migration is required.
v1.1.0 — Docker-based self-hosting
Prioritize 1.1.0 — Docker-based self-hosting.
This release makes Prioritize easy to run for self-hosters. There are no source or REST API changes since 1.0.0 — the /api/v1 contract is unchanged; 1.1.0 packages the platform for a one-command start and rounds out the docs.
Highlights
- Run it with one command. A production
Dockerfile(multi-stage build with the Vaadin production frontend bundle, non-root, HTTP healthcheck) and adocker-compose.yamlthat brings up the app together with PostgreSQL:Then open http://localhost:8080 and log in withdocker compose up --build
admin/p@ssword. - Zero-dependency trial. A single self-contained container backed by an embedded H2 database, no external services:
docker build -t prioritize . docker run --rm -p 8080:8080 prioritize - Opt-in stacks via Compose profiles:
--profile mqtt(Mosquitto broker for device telemetry / NFC) and--profile keycloak(OIDC bearer-token auth). - Docker-first README quickstart plus admin GUI and Swagger UI screenshots so the project shows what it does at a glance.
Notes
- The REST API under
/api/v1remains the stable public contract (SemVer). The Vaadin admin GUI and its routes are an implementation detail and not part of that promise. - Generated API docs (
docs/apidocs) refreshed to 1.1.0.
Full changelog: v1.0.0...v1.1.0
Prioritize 1.0.0
Prioritize 1.0.0
First stable release. Prioritize is a Spring Boot resource/enterprise platform;
from this release on, the REST API under /api/v1 is the stable,
semantically-versioned contract.
Highlights
- Projects & tasks — projects, blackboards, tasks, goal-driven progress, task
time tracking, and NFC tags as physical triggers (including broadcasting scans
over MQTT). - Documents with versioning (check-out/check-in, history).
- Skills for people and devices, with categories and skill groups.
- Resource control over MQTT/REST, with slot-bound reservations.
- Telemetry state-transition rules (flank detection with hysteresis + MQTT alarm).
- Recurring task schedules (cron-driven, zone-aware).
- BPMN orchestration via Flowable — BPMN definitions as versioned documents with
explicit activation, a trusted inbound facade, an outbound event bridge
(NFC/telemetry correlation), and an admin GUI for definitions and instances. - Vaadin admin GUI across org/security, resources, documents, skills, scheduling
and processes. - Security — fine-grained roles/permissions; HTTP Basic auth for dev, Keycloak
(OAuth2/JWT) for production.
API stability
The REST API under /api/v1 is the stable contract governed by SemVer. The Vaadin
@Route URLs are an implementation detail and not part of the contract;
SkillProperty is marked experimental. See the "API stability" section in the README.
Documentation
- Interactive OpenAPI docs (springdoc / Swagger UI) while the app is running.
- Javadoc committed under
docs/apidocs. - UML class diagrams for all model subsystems under
docs/diagrams.
Notes
- Default profile is self-contained H2 (
mvn spring-boot:runjust works); use
postgres,keycloak,mqttprofiles for the full setup. - Seed admin
admin/p@ssword(dev default). - 416 tests green.