Smart commits are processed in Jira for repositories without smart commits when synced via git webhooks

XMLWordPrintable

    • 8.14
    • 1
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: yes

      Explanation:
      This bug shows up only for integration using webhooks. Smar commits works correctly when data is being synced during hourly polling job.

      Environment requirements:
      Jira needs to be available for Git instance to let git webhooks work.

      Steps to Reproduce

      1. In Gitlab/Github/BBcloud instance create organisation ORG containing repository REPO1
      2. Link Git ORG with Jira via DVCS plugin (with default checkbox set)
      3. In DVCS ORG account turn, uncheck "Smart Commits" for REPO2
      4. Create Jira project with specific key. Let's say "PROJ", and create one issue (will be PROJ-1),
      5. Create corresponding branch+commit to with same (PROJ-1) key and smart commit command. In example set commit message as "PROJ-1 #comment some comment to be set in Jira issue".
      6. Check Jira issue PROJ-1

      Expected Results

      Only development panel data is updated (1 branch, 1 commit).
      No comment added to the issue, because we have turned off smart commits for this repository.

      Actual Results

      Development panel data is updated (1 branch, 1 commit), and comment is added to the issue - same ignoring smart commits settings in DVCS

      Workaround

      Adding the Dark Feature below is the only way to work around this issue.
      Keep in mind that this reverts the webhook processing to the old (pre-8.13) behavior and can imply in synchronization delays and issues, especially in larger organizations

      dvcs.connector.polling.synchronization.enabled
      

      As a reference, this dark feature reverts the improvements detailed in Improving the DVCS sync performance by migrating old webhooks to the new format

            Assignee:
            Unassigned
            Reporter:
            awojtasik
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: