1. 05 Feb, 2019 1 commit
  2. 31 Oct, 2018 1 commit
  3. 11 Sep, 2018 1 commit
  4. 18 Jul, 2018 1 commit
  5. 21 Dec, 2017 1 commit
    • Jan Provaznik's avatar
      Skip projects filter on merge requests search · d2f1d585
      Jan Provaznik authored
      When searching for merge requests, an additional subquery
      is added which by default filters only merge requests which belong
      to source or target project user has permission for.
      
      This filter is not needed because more restrictive filter
      which checks if user has permission for target project
      is used in the query.
      
      So unless a custom projects filter is used by user, it's possible
      to skip the default projects filter and speed up the final query.
      
      Related to #40540
      d2f1d585
  6. 10 May, 2017 1 commit
  7. 18 Apr, 2017 1 commit
  8. 06 Apr, 2017 1 commit
    • Jacopo's avatar
      ProjectsFinder should handle more options · b996a82f
      Jacopo authored
      Extended ProjectFinder in order to handle the following options:
       - current_user - which user use
       - project_ids_relation: int[] - project ids to use
       - params:
         -  trending: boolean
         -  non_public: boolean
         -  starred: boolean
         -  sort: string
         -  visibility_level: int
         -  tags: string[]
         -  personal: boolean
         -  search: string
         -  non_archived: boolean
      
      GroupProjectsFinder now inherits from ProjectsFinder.
      Changed the code in order to use the new available options.
      b996a82f
  9. 04 Apr, 2017 1 commit
  10. 31 Mar, 2017 1 commit
  11. 30 Jan, 2017 2 commits
  12. 18 Mar, 2016 1 commit
  13. 11 Mar, 2016 3 commits
    • Yorick Peterse's avatar
      Refactor Gitlab::ProjectSearchResults · ec349dc1
      Yorick Peterse authored
      Previously this class would be given a project ID which was then used to
      retrieve the corresponding Project object. However, in all cases the
      Project object was already known as it was used to grab the ID to pass
      to ProjectSearchResults. By just passing a Project instead we remove the
      need for an extra query as well as the need for some other complexity
      in this class.
      ec349dc1
    • Yorick Peterse's avatar
      Refactor Gitlab::SnippetSearchResults · 42fde69d
      Yorick Peterse authored
      This removes the need for plucking snippet IDs into memory.
      42fde69d
    • Yorick Peterse's avatar
      Refactor Gitlab::SearchResults · 01354296
      Yorick Peterse authored
      Instead of plucking IDs this class now uses ActiveRecord::Relation
      objects. Plucking IDs is problematic as searching for projects can lead
      to a huge amount of IDs being loaded into memory only to be used as an
      argument for another query (instead of just using a sub-query).
      01354296
  14. 09 Jun, 2015 1 commit
  15. 29 Aug, 2014 1 commit
  16. 27 Aug, 2014 1 commit
  17. 11 Aug, 2014 1 commit
  18. 05 Jun, 2014 1 commit
  19. 15 May, 2014 1 commit
  20. 14 Mar, 2014 2 commits
  21. 20 Feb, 2014 1 commit
  22. 19 Jan, 2014 1 commit
  23. 16 Jan, 2014 1 commit