• Stan Hu's avatar
    Bitbucket Server importer: Eliminate most idle-in-transaction issues · 09cdd7dc
    Stan Hu authored
    Just like with the GitHub importer, the Bitbucket Server importer can hit the
    default 60 s idle-in-transaction timeouts if it takes too long to create the
    merge request. We solve this by using the same approach as the GitHub importer:
    
    1. Bypass all validation and hooks in creating a merge request
    2. Insert the Git data in a separate transaction
    
    Part of #50021
    09cdd7dc
importer.rb 11.6 KB