mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
5bbc4e7563
Replace the conditional `semanticId` API field with `displayId` which is always present in work package responses. In semantic mode it returns the project-based identifier (e.g. "PROJ-42"), in classic mode it returns the numeric ID as a string. This gives API consumers (frontend, mobile) a single field to read without conditional logic. - Add `WorkPackage#display_id` method that encapsulates the mode check - Update both representers (JSON and SQL) to render `displayId` unconditionally - Update OpenAPI schema documentation