Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #31187 Avoid multiplication of cross-reference comments in Gitlab
    Infos
    #31187
    Guilhem Bonnefille (CS) (gbonnefille)
    2023-03-21 13:59
    2023-03-21 13:58
    32829
    Details
    Avoid multiplication of cross-reference comments in Gitlab

    On a project using both Tuleap and Gitlab with integration, we observe that cross-reference comments are sometimes repeated (up to 11 times in some commits).

    One origin of duplications seems to be the creation of a new branch.

    1. Create a topic branch
    2. Add commits with TULEAP-NNN in commit log
    3. From Gitlab WebUI create a new topic branch from the previous topic branch

    The comments inserted in the commits are all duplicated.

    SCM/GitLab
    14.4
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar

    I think it could be useful to add defensive code in parseCommitReferences: do not add reference when the cross-reference already exists in Tuleap (I noticed that insertCrossReference silently check the existence of the cross-ref).