1. 27 Oct, 2017 1 commit
    • Zeger-Jan van de Weg's avatar
      Cache commits on the repository model · 77de64bc4589
      Zeger-Jan van de Weg authored
      Now, when requesting a commit from the Repository model, the results are
      not cached. This means we're fetching the same commit by oid multiple times
      during the same request. To prevent us from doing this, we now cache
      results. Caching is done only based on object id (aka SHA).
      
      Given we cache on the Repository model, results are scoped to the
      associated project, eventhough the change of two repositories having the
      same oids for different commits is small.
      77de64bc4589
  2. 17 Oct, 2017 1 commit
    • Bob Van Landuyt's avatar
      Fix errors when deleting a forked project · 192615692153
      Bob Van Landuyt authored
      The problem would occur when the `ForkedProjectLink` was deleted, but
      the `ForkNetworkMember` was not. The delete would be rolled back and
      retried.
      
      But the error would not be saved because `Project#forked?`
      would still be true, because the `ForkNetworkMember` exists. But the
      `Project#forked_project_link` would be `nil`. So the validation for
      the visibility level would fail.
      192615692153
  3. 10 Oct, 2017 1 commit
  4. 07 Oct, 2017 3 commits
  5. 06 Oct, 2017 1 commit
    • Toon Claes's avatar
      Create idea of read-only database · a867cd2b92f4
      Toon Claes authored
      In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo
      secondary node). But in GitLab CE it also might be useful to have the
      "read-only" idea around. So port it back to GitLab CE.
      
      Also having the principle of read-only in GitLab CE would hopefully
      lead to less errors introduced, doing write operations when there
      aren't allowed for read-only calls.
      
      Closes gitlab-org/gitlab-ce#37534.
      a867cd2b92f4
  6. 05 Oct, 2017 3 commits
  7. 04 Oct, 2017 4 commits
  8. 02 Oct, 2017 3 commits
  9. 29 Sep, 2017 3 commits
  10. 28 Sep, 2017 1 commit
  11. 25 Sep, 2017 1 commit
  12. 20 Sep, 2017 2 commits
  13. 15 Sep, 2017 1 commit
  14. 14 Sep, 2017 1 commit
  15. 12 Sep, 2017 1 commit
  16. 07 Sep, 2017 1 commit
  17. 06 Sep, 2017 7 commits
  18. 05 Sep, 2017 1 commit
    • Rubén Dávila's avatar
      Optimize SQL queries used in Groups::GroupMembersController#create · 7b2ce0a538b8
      Rubén Dávila authored
      The following optimizations were performed:
      
      - Add new association to GroupMember and ProjectMember
      
        This new association will allow us to check if a user is a member of a
        Project or Group through a single query instead of two.
      
      - Optimize retrieving of Members when adding multiple Users
      7b2ce0a538b8
  19. 04 Sep, 2017 3 commits
  20. 31 Aug, 2017 1 commit