Skip to content
Snippets Groups Projects
  1. Sep 13, 2019
  2. May 07, 2019
  3. Apr 08, 2019
  4. Feb 26, 2019
  5. Feb 25, 2019
  6. Feb 22, 2019
  7. Feb 21, 2019
  8. Feb 05, 2019
  9. Jan 14, 2019
  10. Oct 31, 2018
  11. Oct 26, 2018
  12. Oct 05, 2018
  13. Sep 11, 2018
  14. Jun 06, 2018
    • Sean McGivern's avatar
      Simplify issuable finder queries · 57e6a98c
      Sean McGivern authored
      We had `item_project_ids` to help make slow queries on the dashboard faster, but
      this isn't necessary any more - the queries are plenty fast, and we forbid
      searching the dashboard without filters.
      57e6a98c
  15. May 31, 2018
  16. May 21, 2018
  17. Mar 05, 2018
  18. Feb 21, 2018
    • Sean McGivern's avatar
      Refactor IssuableFinder to extract model-specific logic · c2fc4066
      Sean McGivern authored
      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
  19. Feb 13, 2018
  20. Jan 23, 2018
    • Jan Provaznik's avatar
      Use limit for search count queries · 090ca9c3
      Jan Provaznik authored
      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
  21. Sep 05, 2017
  22. Aug 31, 2017
    • Sean McGivern's avatar
      Remove issuable finder count caching · e7817fc1
      Sean McGivern authored
      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
  23. Jul 19, 2017
  24. Jun 30, 2017
  25. Jun 23, 2017
    • Toon Claes's avatar
      Add User#full_private_access? to check if user has Private access · b90f1098
      Toon Claes authored
      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
  26. May 04, 2017
  27. Apr 03, 2017
  28. Mar 06, 2017
  29. Feb 17, 2017
  30. Dec 15, 2016
  31. Sep 20, 2016
Loading