• George Koltsov's avatar
    Do not run refresh_member_authorized_projects callback when importing · d44fcf64
    George Koltsov authored
     - Disable callback refresh_member_authorized_projects when importing
       a group or project due to the fact that it can cause import to take
       significantly longer. Refresh of authorizations is not needed to be
       done during the import for each individual member
     - Enqueue async AuthorizedProjectUpdate::ProjectRecalculateWorker
       instead at the end when import is finished in the after import hook.
       This ensures authorizations are updated still updated, but it's done
       in scope of 1 sidekiq job
    
    Changelog: fixed
    d44fcf64
group_member_spec.rb 4.34 KB