Skip to content
Snippets Groups Projects
  1. Feb 25, 2020
  2. Jan 23, 2020
  3. Oct 18, 2019
  4. Sep 10, 2019
  5. Aug 21, 2019
    • George Koltsov's avatar
      Add SortingPreference concern · 8bcc47ac
      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).
      8bcc47ac
  6. Mar 19, 2019
  7. Jan 28, 2019
  8. Jan 15, 2019
  9. Dec 10, 2018
  10. Sep 23, 2018
    • gfyoung's avatar
      Enable more frozen string in app/controllers/ · be42c050
      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.
      be42c050
  11. Sep 11, 2018
  12. Dec 07, 2017
  13. Oct 04, 2017
  14. Aug 14, 2017
  15. Jun 21, 2017
  16. May 10, 2017
  17. Apr 06, 2017
    • 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
  18. Mar 16, 2017
  19. Mar 01, 2017
  20. Feb 10, 2017
  21. Jan 26, 2017
  22. Oct 10, 2016
    • Yorick Peterse's avatar
      Precalculate trending projects · 237c8f66
      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.
      Verified
      237c8f66
  23. Oct 05, 2016
    • Yorick Peterse's avatar
      Refactor TrendingProjectsFinder to support caching · 154253ca
      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
      88fa5916) 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
      Verified
      154253ca
  24. Jul 27, 2016
  25. Mar 19, 2016
  26. Mar 10, 2016
  27. Mar 04, 2016
  28. Feb 09, 2016
  29. Feb 04, 2016
  30. Jan 04, 2016
  31. Sep 08, 2015
    • Douwe Maan's avatar
      Clean up overlap between dashboard and explore. · 5d785457
      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.
      5d785457
  32. Aug 19, 2015
  33. May 01, 2015
Loading