•  
      request #42611 title key in @tuleap/plugin-tracker-rest-api-type's SemanticsRepresentation can be undefined
    Infos
    #42611
    Thomas Gorka (tgorka)
    2025-04-11 13:47
    2025-04-11 11:31
    44287
    Details
    title key in @tuleap/plugin-tracker-rest-api-type's SemanticsRepresentation can be undefined

    In the response payload of the `GET /trackers/id` REST route, the title key in the semantic part is missing when the title semantic is undefined for the target tracker.

    In the types defined in @tuleap/plugin-tracker-rest-api-type for TS apps, the title key of the SemanticRepresentation is marked "always there" while this is not the case. It should be mark as potentially missing, so developer are forced to be more careful it exists before trying to get the field id associated to the title semantic.

    Dev tools
    All
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Thomas Gorka (tgorka)
    Closed
    2025-04-11
    Attachments
    Empty
    References
    Referencing request #42611

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2025-04-11 13:47
    • Category changed from Trackers to Dev tools
    • Is an Enhancement or an internal improvement? set to internal improvement
    User avatar
    Thomas Gorka (tgorka)2025-04-11 11:31
    • Status changed from New to Under implementation
    • Assigned to changed from None to Thomas Gorka (tgorka)