•  
      request #26778 Parent artifacts REST route sometimes does not return any JSON
    Infos
    #26778
    Joris MASSON (jmasson)
    2022-05-11 09:39
    2022-05-10 17:31
    28300
    Details
    Parent artifacts REST route sometimes does not return any JSON

    The REST route /trackers/{id}/parent_artifacts, which is used to retrieve a list of suggested parents for an artifact of the given tracker, handles poorly cases where this list is empty. When the given tracker has no hierarchy and is not in a SAFe Program, when there are no "suggested parents" to return, it forgets to return any JSON. Worse, it also forgets to send pagination headers (X-PAGINATION-SIZE), which breaks our frontend client code handling paginated routes.

    It should return an empty JSON array [] and headers with size = 0 when there are no "suggested parents".

    API
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2022-05-11
    Attachments
    Empty
    References

    Follow-ups