1. 16 May, 2018 5 commits
    • Jan Provaznik's avatar
      Changed order of include · 32e22468
      Jan Provaznik authored
      32e22468
    • Jan Provaznik's avatar
      Use find_in_batches instead of destroy_all · c81a37c1
      Jan Provaznik authored
      destroy_all loads all records at once
      c81a37c1
    • Jan Provaznik's avatar
      Delete remote uploads · 7da3b2cd
      Jan Provaznik authored
      ObjectStore uploader requires presence of associated `uploads` record
      when deleting the upload file (through the carrierwave's after_commit
      hook) because we keep info whether file is LOCAL or REMOTE in `upload`
      object.
      
      For this reason we can not destroy uploads as "dependent: :destroy" hook
      because these would be deleted too soon. Instead we rely on
      carrierwave's hook to destroy `uploads` in after_commit hook.
      
      But in before_destroy hook we still have to delete not-mounted uploads
      (which don't use carrierwave's destroy hook). This has to be done in
      before_Destroy instead of after_commit because `FileUpload` requires
      existence of model's object on destroy action.
      
      This is not ideal state of things, in a next step we should investigate
      how to unify model dependencies so we can use same workflow for all
      uploads.
      
      Related to #45425
      7da3b2cd
    • Achilleas Pipinellis's avatar
      Merge branch 'docs-41873-bulk-edit-issuable' into 'master' · 14507fd1
      Achilleas Pipinellis authored
      Add documentation for bulk editing of issues and merge requests
      
      Closes #41873
      
      See merge request gitlab-org/gitlab-ce!16614
      14507fd1
    • Robert Speicher's avatar
      Merge branch 'zj-ref-contains-sha-mandatory' into 'master' · 0288e252
      Robert Speicher authored
      Ref contains oid check done by Gitaly
      
      Closes gitaly#884
      
      See merge request gitlab-org/gitlab-ce!18944
      0288e252
  2. 15 May, 2018 35 commits