1. 25.07.2019 1 коммит
  2. 15.07.2019 1 коммит
  3. 12.07.2019 1 коммит
    • Robert Speicher's avatar
      Add Namespace#feature_available no-op
      · 073f72cf
      Robert Speicher создал
      This gets overridden in `EE::Namespace` and allows us to do things like
      always treat Epics as "disabled" in Core using the same checks we'd use
      elsewhere.
      073f72cf
  4. 09.07.2019 1 коммит
    • Bob Van Landuyt's avatar
      Lesser Namespace#name validations
      · f138acb9
      Bob Van Landuyt создал
      Since we use `Namespace#path` to build routes and URLs we can lessen
      the restrictions on `Namespace#name` so it can accomodate a user's name.
      f138acb9
  5. 02.07.2019 2 коммита
    • Mayra Cabrera's avatar
      Includes logic to persist namespace statistics
      · dfdfa913
      Mayra Cabrera создал
      - 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 создал
      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
  6. 25.06.2019 1 коммит
    • Mayra Cabrera's avatar
      Add two new ActiveRecord models
      · bde41ee8
      Mayra Cabrera создал
      - 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
  7. 31.05.2019 1 коммит
  8. 29.05.2019 1 коммит
  9. 02.05.2019 1 коммит
  10. 30.04.2019 1 коммит
  11. 23.04.2019 1 коммит
  12. 19.04.2019 1 коммит
  13. 12.03.2019 1 коммит
  14. 06.03.2019 1 коммит
  15. 15.01.2019 1 коммит
  16. 21.12.2018 1 коммит
  17. 19.12.2018 1 коммит
  18. 06.12.2018 1 коммит
    • Stan Hu's avatar
      Remove unnecessary includes of ShellAdapter
      · e96fd232
      Stan Hu создал
      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
  19. 05.12.2018 2 коммита
    • Thong Kuah's avatar
      Unify into :group_clusters feature flag
      · ebf87fd9
      Thong Kuah создал
      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 создал
      - 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
  20. 21.11.2018 1 коммит
  21. 06.11.2018 1 коммит
    • Olivier Gonzalez's avatar
      Backport generic methods to CE
      · a89fb014
      Olivier Gonzalez создал
      Allow to fetch all pipelines for every projects in a group and its
      subgroups.
      Allow to fetch the latest pipeline id for each projects of a group and
      its subgroups.
      a89fb014
  22. 01.11.2018 1 коммит
  23. 02.10.2018 1 коммит
  24. 24.09.2018 1 коммит
    • Michael Kozono's avatar
      Use `Gitlab::SafeRequestStore` in more places
      · a54a5d9f
      Michael Kozono создал
      Even if it doesn’t save lines of code, since people will tend to use
      code they’ve seen. And `SafeRequestStore` is safer since you
      don’t have to remember to check `RequestStore.active?`.
      a54a5d9f
  25. 17.09.2018 1 коммит
    • Yorick Peterse's avatar
      Added FromUnion to easily select from a UNION
      · 8a72f5c4
      Yorick Peterse создал
      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
      8a72f5c4
  26. 06.09.2018 1 коммит
  27. 15.08.2018 1 коммит
  28. 01.08.2018 1 коммит
    • Zeger-Jan van de Weg's avatar
      Add repository languages for projects
      · 79a5d768
      Zeger-Jan van de Weg создал
      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.
      79a5d768
  29. 27.07.2018 1 коммит
  30. 25.07.2018 1 коммит
    • Yorick Peterse's avatar
      Remove code for dynamically generating routes
      · 7a233b37
      Yorick Peterse создал
      This adds a database migration that creates routes for any projects and
      namespaces that don't already have one. We also remove the runtime code
      for dynamically creating routes, as this is no longer necessary.
      7a233b37
  31. 26.06.2018 1 коммит
  32. 31.05.2018 1 коммит
  33. 04.05.2018 1 коммит
  34. 02.05.2018 1 коммит
  35. 09.04.2018 1 коммит
  36. 06.04.2018 1 коммит
  37. 06.03.2018 1 коммит
  38. 03.03.2018 1 коммит