1. 27 7月, 2017 27 次提交
  2. 26 7月, 2017 2 次提交
  3. 25 7月, 2017 3 次提交
  4. 24 7月, 2017 2 次提交
  5. 20 7月, 2017 3 次提交
  6. 19 7月, 2017 3 次提交
    • L
      Eliminate N+1 queries on checking different protected refs · a397a0eb
      Lin Jen-Shin 提交于
      I realized where the N+1 queries were actually coming from
      project.protected_branches, but how come we cannot preload this,
      or cache this at all?
      
      Then I found that this is somehow a Rails limitation. What we're
      doing before, eventually come to:
      
          project.protected_branches.matching
      
      But why it's not cached? (project.protected_branches.loaded? is always
      false) It's because matching is a class method, which is called on
      the proxy. In this case, Rails cannot cache the result. I don't know
      if this is possible to implement or not, because clearly this would
      require some tricks to implement class methods on associations.
      
      So instead, we could just pass project.protected_branches to
      ProtectedRef.matching, then it would work regularly.
      
      With this change, there's no more N+1 queries.
      a397a0eb
    • D
      Resolve "Clarify k8s service keys" · defce265
      Dimitrie Hoekstra 提交于
      defce265
    • J
      Use Ghost user when edited_by, merged_by deleted · a9d940bf
      Jarka Kadlecova 提交于
      a9d940bf