1. 31 5月, 2018 1 次提交
  2. 21 5月, 2018 1 次提交
  3. 05 3月, 2018 1 次提交
  4. 21 2月, 2018 1 次提交
    • S
      Refactor IssuableFinder to extract model-specific logic · c2fc4066
      Sean McGivern 提交于
      By extracting a new `filter_items` method, we can override that in the
      IssuesFinder and MergeRequestsFinder separately, so we don't need checks that
      the model is the correct one, because we can just use the class we're in to know
      that.
      
      We can do the same for the VALID_PARAMS constant, by making it a class method.
      c2fc4066
  5. 14 2月, 2018 1 次提交
  6. 24 1月, 2018 1 次提交
    • J
      Use limit for search count queries · 090ca9c3
      Jan Provaznik 提交于
      Search query is especially slow if a user searches a generic string
      which matches many records, in such case search can take tens of
      seconds or time out. To speed up the search query, we search only for
      first 1000 records, if there is >1000 matching records we just display
      "1000+" instead of precise total count supposing that with such amount
      the exact count is not so important for the user.
      
      Because for issues even limited search was not fast enough, 2-phase
      approach is used for issues: first we use simpler/faster query to get
      all public issues, if this exceeds the limit, we just return the limit.
      If the amount of matching results is lower than limit, we re-run more
      complex search query (which includes also confidential issues).
      Re-running the complex query should be fast enough in such case because the
      amount of matching issues is lower than limit.
      
      Because exact total_count is now limited, this patch also switches to
      to "prev/next" pagination.
      
      Related #40540
      090ca9c3
  7. 05 9月, 2017 1 次提交
  8. 31 8月, 2017 1 次提交
    • S
      Remove issuable finder count caching · e7817fc1
      Sean McGivern 提交于
      We're going to cache the total open count separately, and then just perform
      these counts on the list. We already do that to get the pagination information,
      through Kaminari, and a future change will make Kaminari reuse the query results
      from earlier in the request.
      e7817fc1
  9. 19 7月, 2017 2 次提交
  10. 30 6月, 2017 6 次提交
  11. 23 6月, 2017 1 次提交
    • T
      Add User#full_private_access? to check if user has Private access · b90f1098
      Toon Claes 提交于
      In CE only the admin has access to all private groups & projects. In EE also an
      auditor can have full private access.
      
      To overcome merge conflicts, or accidental incorrect access rights, abstract
      this out in `User#full_private_access?`.
      
      `User#admin?` now only should be used for admin-only features. For private
      access-related features `User#full_private_access?` should be used.
      
      Backported from gitlab-org/gitlab-ee!2199
      b90f1098
  12. 04 5月, 2017 1 次提交
  13. 04 4月, 2017 1 次提交
  14. 06 3月, 2017 1 次提交
  15. 18 2月, 2017 1 次提交
  16. 15 12月, 2016 1 次提交
  17. 20 9月, 2016 1 次提交
  18. 18 3月, 2016 1 次提交
  19. 02 9月, 2014 1 次提交
  20. 26 2月, 2014 1 次提交