Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12528

Code suggestion apply rejected by plugin: error message is unhelpful and cannot retry

    XMLWordPrintable

Details

    Description

      Issue Summary

      Applying the code suggestion can fail with a generic error when the FILE_EDIT hook rejects the commit. This can be caused by a custom hook or a Yet Another Commit Checker Plugin (YACC).

      Steps to Reproduce

      Check the community ticket for more details: https://community.atlassian.com/t5/Bitbucket-questions/Are-code-suggestions-broken-in-Bitbucket-7-4/qaq-p/1453200

      Expected Results

      • The displayed error message should show detailed information about the reason of rejecting commit.
      • It should be possible to apply the suggestion with a second try.

      Actual Results

      • The displayed error message doesn't give the user any clue what's the reason of the failure.
      • After the failure, the apply button is disabled and the user can't re-apply the suggestion.

      Workaround

      Disable the custom FILE_EDIT hook or disable the Yet Another Commit Checker Plugin.

      Attachments

        Issue Links

          Activity

            People

              khughes@atlassian.com Kristy
              madamczak Maciej Adamczak (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync