1. 03 7月, 2018 2 次提交
  2. 21 6月, 2018 1 次提交
  3. 05 6月, 2018 1 次提交
    • S
      Fix an N+1 in avatar URLs · 6ecf819f
      Sean McGivern 提交于
      This is tricky: the query was being run in
      `ObjectStorage::Extension::RecordsUploads#retrieve_from_store!`, but we can't
      just add batch loading there, because the `#upload=` method there would use the
      result immediately, making the batch only have one item.
      
      Instead, we can pre-emptively add an item to the batch whenever an avatarable
      object is initialized, and then reuse that batch item in
      `#retrieve_from_store!`. However, this also has problems:
      
      1. There is a lot of logic in `Avatarable#retrieve_upload_from_batch`.
      2. Some of that logic constructs a 'fake' model for the batch key. This should
         be fine, because of ActiveRecord's override of `#==`, but it relies on that
         staying the same.
      6ecf819f
  4. 25 5月, 2018 1 次提交
    • O
      Persist truncated note diffs on a new table · bb8f2520
      Oswaldo Ferreira 提交于
      We request Gitaly in a N+1 manner to build discussion diffs. Once the diffs are from different revisions, it's hard to make a single request to the service in order to build the whole response.
      With this change we solve this problem and simplify a lot fetching this piece of info.
      bb8f2520
  5. 08 5月, 2018 1 次提交
  6. 05 4月, 2018 2 次提交
  7. 04 4月, 2018 1 次提交
  8. 07 3月, 2018 1 次提交
    • J
      Add discussion API · dcdfa04b
      Jan Provaznik 提交于
      * adds basic discussions API for issues and snippets
      * reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
      dcdfa04b
  9. 01 3月, 2018 2 次提交
  10. 28 2月, 2018 1 次提交
  11. 05 2月, 2018 1 次提交
  12. 03 2月, 2018 1 次提交
  13. 02 2月, 2018 1 次提交
  14. 14 12月, 2017 2 次提交
  15. 13 12月, 2017 1 次提交
  16. 07 12月, 2017 3 次提交
  17. 06 12月, 2017 1 次提交
    • Y
      Throttle the number of UPDATEs triggered by touch · 856447cc
      Yorick Peterse 提交于
      This throttles the number of UPDATE queries that can be triggered by
      calling "touch" on a Note, Issue, or MergeRequest. For Note objects we
      also take care of updating the associated "noteable" relation in a
      smarter way than Rails does by default.
      856447cc
  18. 27 11月, 2017 1 次提交
  19. 25 11月, 2017 1 次提交
  20. 21 11月, 2017 1 次提交
  21. 16 11月, 2017 1 次提交
  22. 02 11月, 2017 1 次提交
  23. 18 10月, 2017 1 次提交
  24. 07 10月, 2017 1 次提交
  25. 06 9月, 2017 4 次提交
  26. 30 8月, 2017 1 次提交
  27. 18 8月, 2017 1 次提交
  28. 09 8月, 2017 1 次提交
  29. 22 7月, 2017 1 次提交
  30. 18 7月, 2017 1 次提交
  31. 06 7月, 2017 1 次提交
    • Y
      Added Cop to blacklist the use of `dependent:` · 8fbbf41e
      Yorick Peterse 提交于
      This is allowed for existing instances so we don't end up 76 offenses
      right away, but for new code one should _only_ use this if they _have_
      to remove non database data. Even then it's usually better to do this in
      a service class as this gives you more control over how to remove the
      data (e.g. in bulk).
      8fbbf41e