Read about our upcoming Code of Conduct on this issue

  1. 21 Aug, 2019 1 commit
    • George Koltsov's avatar
      Add SortingPreference concern · 3c45523d4c1c
      George Koltsov authored
      Sorting preference functionality has been extracted
      from `IssuableCollections` to a new `SortingPreference`
      concern in order to reuse this functionality in projects
      (and groups in the future).
      3c45523d4c1c
  2. 19 Mar, 2019 1 commit
  3. 28 Jan, 2019 1 commit
  4. 15 Jan, 2019 1 commit
  5. 10 Dec, 2018 1 commit
  6. 23 Sep, 2018 1 commit
    • gfyoung's avatar
      Enable more frozen string in app/controllers/ · 30174479c9f2
      gfyoung authored
      Enables frozen string for the following:
      
      * app/controllers/dashboard/**/*.rb
      * app/controllers/explore/**/*.rb
      * app/controllers/google_api/**/*.rb
      * app/controllers/groups/**/*.rb
      * app/controllers/import/**/*.rb
      * app/controllers/instance_statistics/**/*.rb
      * app/controllers/ldap/**/*.rb
      * app/controllers/oauth/**/*.rb
      * app/controllers/profiles/**/*.rb
      
      Partially addresses #47424.
      30174479c9f2
  7. 11 Sep, 2018 1 commit
  8. 07 Dec, 2017 1 commit
  9. 14 Aug, 2017 1 commit
  10. 21 Jun, 2017 1 commit
  11. 06 Apr, 2017 1 commit
    • Jacopo's avatar
      ProjectsFinder should handle more options · 05d2c6345fa2
      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.
      05d2c6345fa2
  12. 16 Mar, 2017 1 commit
  13. 26 Jan, 2017 1 commit
  14. 10 Oct, 2016 1 commit
    • Yorick Peterse's avatar
      Precalculate trending projects · 8d729570767c
      Yorick Peterse authored
      This commit introduces a Sidekiq worker that precalculates the list of
      trending projects on a daily basis. The resulting set is stored in a
      database table that is then queried by Project.trending.
      
      This setup means that Unicorn workers no longer _may_ have to calculate
      the list of trending projects. Furthermore it supports filtering without
      any complex caching mechanisms.
      
      The data in the "trending_projects" table is inserted in the same order
      as the project ranking. This means that getting the projects in the
      correct order is simply a matter of:
      
          SELECT projects.*
          FROM projects
          INNER JOIN trending_projects ON trending_projects.project_id = projects.id
          ORDER BY trending_projects.id ASC;
      
      Such a query will only take a few milliseconds at most (as measured on
      GitLab.com), opposed to a few seconds for the query used for calculating
      the project ranks.
      
      The migration in this commit does not require downtime and takes care of
      populating an initial list of trending projects.
      8d729570767c
  15. 05 Oct, 2016 1 commit
    • Yorick Peterse's avatar
      Refactor TrendingProjectsFinder to support caching · f57359a08310
      Yorick Peterse authored
      == Public Projects
      
      This finder class now _only_ returns public projects. Previously this
      finder would also return private and internal projects. Including these
      projects makes caching data much harder and less efficient. Meanwhile
      including this data isn't very useful as very few users would be
      interested in seeing projects they have access to as trending. That is,
      the feature is more useful when you want to see what _other_ popular
      projects there are.
      
      == Caching
      
      The data returned by TrendingProjectsFinder is now cached for a day
      based on the number of months the data should be restricted to. The
      cache is not flushed explicitly, instead it's rebuilt whenever it
      expires.
      
      == Timings
      
      To measure the impact I changed the finder code to use the last 24
      months instead of the last month. I then executed and measured 10
      requests to the explore page. On the current "master" branch (commit
      1fb46e29f7cc) this would take an average of
      2.43 seconds. Using the changes of this commit this was reduced to
      around 1.7 seconds.
      
      Fixes gitlab-org/gitlab-ce#22164
      f57359a08310
  16. 19 Mar, 2016 1 commit
  17. 10 Mar, 2016 1 commit
  18. 04 Mar, 2016 1 commit
  19. 09 Feb, 2016 3 commits
  20. 04 Feb, 2016 3 commits
  21. 08 Sep, 2015 1 commit
    • Douwe Maan's avatar
      Clean up overlap between dashboard and explore. · 21bfbe6b4bf6
      Douwe Maan authored
      - Split up SnippetsController into separate dashboard and explore sections.
      - Use consistent page titles, header titles and sidebars between dashboard and explore sections when signed in or not.
      21bfbe6b4bf6
  22. 19 Aug, 2015 1 commit
  23. 30 Apr, 2015 1 commit
  24. 20 Apr, 2015 1 commit
  25. 12 Mar, 2015 1 commit
  26. 10 Mar, 2015 1 commit
  27. 19 Feb, 2015 1 commit
  28. 19 Oct, 2014 1 commit
  29. 25 Jul, 2014 1 commit
  30. 23 Jul, 2014 1 commit