Skip to content
Snippets Groups Projects
  1. Feb 20, 2020
  2. Feb 04, 2020
  3. Jan 16, 2020
  4. Dec 20, 2019
  5. Dec 11, 2019
  6. Oct 08, 2019
  7. Oct 07, 2019
  8. Oct 03, 2019
  9. Oct 01, 2019
  10. Sep 25, 2019
  11. Sep 13, 2019
  12. Aug 15, 2019
  13. Jul 25, 2019
  14. Jul 15, 2019
  15. Jul 12, 2019
  16. Jul 09, 2019
  17. 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
  18. 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
  19. May 31, 2019
  20. May 29, 2019
  21. May 02, 2019
  22. Apr 30, 2019
  23. Apr 23, 2019
  24. Apr 19, 2019
  25. Mar 12, 2019
  26. Mar 06, 2019
  27. Jan 15, 2019
  28. Dec 21, 2018
  29. Dec 19, 2018
  30. 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
  31. 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
  32. Nov 21, 2018
  33. Nov 05, 2018
  34. Nov 01, 2018
  35. Oct 02, 2018
  36. Sep 24, 2018
  37. 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
  38. Sep 06, 2018
Loading