Skip to content
Snippets Groups Projects
  1. Oct 07, 2019
  2. Oct 03, 2019
  3. Oct 01, 2019
  4. Sep 25, 2019
  5. Sep 13, 2019
  6. Aug 15, 2019
  7. Jul 25, 2019
  8. Jul 15, 2019
  9. Jul 12, 2019
  10. Jul 09, 2019
  11. Jul 02, 2019
    • Mayra Cabrera's avatar
      Includes logic to persist namespace statistics · dfdfa913
      Mayra Cabrera authored
      - Add two new ActiveRecord models:
        - RootNamespaceStoragestatistics will persist root namespace statistics
        - NamespaceAggregationSchedule will save information when a new update
      to the namespace statistics needs to be scheduled
      - Inject into UpdateProjectStatistics concern a new callback that will
      call an async job to insert a new row onto NamespaceAggregationSchedule
      table
      - When a new row is inserted a new job is scheduled. This job will
      update call an specific service to update the statistics and after that
      it will delete thee aggregated scheduled row
      - The RefresherServices makes heavy use of arel to build composable
      queries to update Namespace::RootStorageStatistics attributes.
      - Add an extra worker to traverse pending rows on
      NAmespace::AggregationSchedule table and schedule a worker for each one
      of this rows.
      - Add an extra worker to traverse pending rows on
      NAmespace::AggregationSchedule table and schedule a worker for each one
      of this rows
      dfdfa913
    • Adam Hegyi's avatar
      Memoizing root_ancestor in Namespace · b8563dad
      Adam Hegyi authored and Thong Kuah's avatar Thong Kuah committed
      The root_ancestor method is heavily used in EE for the group_saml
      feature. Having this memoization implemented in CE would eliminate
      the need of overriding the root_ancestor method in EE.
      b8563dad
  12. Jun 25, 2019
    • Mayra Cabrera's avatar
      Add two new ActiveRecord models · bde41ee8
      Mayra Cabrera authored
      - Namespace::Storagestatistics will persist root namespace statistics
      - Namespace::AggregationSchedule will save information when a new update
      to the namespace statistics needs to be scheduled
      
      Both tables use 'namespace_id' as primary key
      bde41ee8
  13. May 31, 2019
  14. May 29, 2019
  15. May 02, 2019
  16. Apr 30, 2019
  17. Apr 23, 2019
  18. Apr 19, 2019
  19. Mar 12, 2019
  20. Mar 06, 2019
  21. Jan 15, 2019
  22. Dec 21, 2018
  23. Dec 19, 2018
  24. Dec 06, 2018
    • Stan Hu's avatar
      Remove unnecessary includes of ShellAdapter · e96fd232
      Stan Hu authored
      Determined by running the script:
      
      ```
      included = `git grep --name-only ShellAdapter`.chomp.split("\n")
      used = `git grep --name-only gitlab_shell`.chomp.split("\n")
      included - used
      ```
      e96fd232
  25. Dec 04, 2018
    • Thong Kuah's avatar
      Unify into :group_clusters feature flag · ebf87fd9
      Thong Kuah authored
      With this MR, group clusters is now functional, so default to enabled.
      
      Have a single setting on the root ancestor group to enabled or disable
      group clusters feature as a whole
      ebf87fd9
    • Thong Kuah's avatar
      Various improvements to hierarchy sorting · f85440e6
      Thong Kuah authored
      - Rename ordered_group_clusters_for_project ->
      ancestor_clusters_for_clusterable
      - Improve name of order option. It makes much more sense to have `hierarchy_order: :asc`
      and `hierarchy_order: :desc`
      - Allow ancestor_clusters_for_clusterable for group
      - Re-use code already present in Project
      f85440e6
  26. Nov 21, 2018
  27. Nov 05, 2018
  28. Nov 01, 2018
  29. Oct 02, 2018
  30. Sep 24, 2018
  31. Sep 17, 2018
    • Yorick Peterse's avatar
      Added FromUnion to easily select from a UNION · 8a72f5c4
      Yorick Peterse authored
      This commit adds the module `FromUnion`, which provides the class method
      `from_union`. This simplifies the process of selecting data from the
      result of a UNION, and reduces the likelihood of making mistakes. As a
      result, instead of this:
      
          union = Gitlab::SQL::Union.new([foo, bar])
      
          Foo.from("(#{union.to_sql}) #{Foo.table_name}")
      
      We can now write this instead:
      
          Foo.from_union([foo, bar])
      
      This commit also includes some changes to make this new setup work
      properly. For example, a bug in Rails 4
      (https://github.com/rails/rails/issues/24193) would break the use of
      `from("sub-query-here").includes(:relation)` in certain cases. There was
      also a CI query which appeared to repeat a lot of conditions from an
      outer query on an inner query, which isn't necessary.
      
      Finally, we include a RuboCop cop to ensure developers use this new
      module, instead of using Gitlab::SQL::Union directly.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
      Verified
      8a72f5c4
  32. Sep 06, 2018
  33. Aug 15, 2018
  34. Aug 01, 2018
    • Zeger-Jan van de Weg's avatar
      Add repository languages for projects · 79a5d768
      Zeger-Jan van de Weg authored
      Our friends at GitHub show the programming languages for a long time,
      and inspired by that this commit means to create about the same
      functionality.
      
      Language detection is done through Linguist, as before, where the
      difference is that we cache the result in the database. Also, Gitaly can
      incrementaly scan a repository. This is done through a shell out, which
      creates overhead of about 3s each run. For now this won't be improved.
      
      Scans are triggered by pushed to the default branch, usually `master`.
      However, one exception to this rule the charts page. If we're requesting
      this expensive data anyway, we just cache it in the database.
      
      Edge cases where there is no repository, or its empty are caught in the
      Repository model. This makes use of Redis caching, which is probably
      already loaded.
      
      The added model is called RepositoryLanguage, which will make it harder
      if/when GitLab supports multiple repositories per project. However, for
      now I think this shouldn't be a concern. Also, Language could be
      confused with the i18n languages and felt like the current name was
      suiteable too.
      
      Design of the Project#Show page is done with help from @dimitrieh. This
      change is not visible to the end user unless detections are done.
      Unverified
      79a5d768
  35. Jul 26, 2018
  36. Jul 25, 2018
  37. Jun 26, 2018
  38. May 31, 2018
Loading