1. 17 7月, 2017 4 次提交
    • L
      Add RequestStoreWrap to cache via RequestStore · 143fc48a
      Lin Jen-Shin 提交于
      I don't like the idea of `RequestStore` at all, because it's just a
      global state which shouldn't be used at all. But we have a number of
      places calling `ProtectedBranch.protected?` and `ProtectedTag.protected?`
      in a loop for the same user, project, and ref whenever we're checking
      against if the jobs for a given pipeline is accessible for a given user.
      This means we're effectively making N queries for the same thing over
      and over.
      
      To properly fix this, we need to change how we check the permission,
      and that could be a huge work. To solve this quickly, adding a cache
      layer for the given request would be quite simple to do.
      
      We're already doing this in Commit#author, and this is extending that
      idea and make it generalized.
      143fc48a
    • G
      Simplify background migrations stealing code · e41d42d6
      Grzegorz Bizon 提交于
      Simply re-raise an exception when it occurs, but guarantee that no
      background migration is lost in the process.
      e41d42d6
    • G
      af41bd41
    • G
      Recover from all exceptions when stealing bg migration · 7b146ab6
      Grzegorz Bizon 提交于
      It also makes it possible to gracefully retry a migration in order to
      avoid problems like deadlocks.
      7b146ab6
  2. 15 7月, 2017 1 次提交
  3. 14 7月, 2017 4 次提交
  4. 13 7月, 2017 8 次提交
  5. 12 7月, 2017 3 次提交
  6. 11 7月, 2017 3 次提交
  7. 10 7月, 2017 1 次提交
  8. 09 7月, 2017 1 次提交
  9. 08 7月, 2017 1 次提交
  10. 07 7月, 2017 10 次提交
  11. 06 7月, 2017 4 次提交