Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 12月 03, 2021
  2. 11月 24, 2021
  3. 11月 18, 2021
    • Peter Leitzen's avatar
      Cop/StaticTranslationDefinition: Allow constant assignments for Structs · 8c56c779
      Peter Leitzen 创作于
      Prior this commit, Cop/StaticTranslationDefinition would flag the
      following code:
      
          SomeClass = Struct.new do
            def text
              _('Some translated text')
            end
          end
      
      This commit allow such style again so workarounds are not longer needed
      like:
      
          Struct.new('SomeClass') do
            def text
              _('Some translated text')
            end
          end
      8c56c779
    • Alex Kalderimis's avatar
      Add BaseEdge base class · 5e02ef43
      Alex Kalderimis 创作于
      See https://gitlab.com/gitlab-org/gitlab/-/issues/341911
      
      This adds a new base class for edges that uses our custom `BaseField`
      as the standard field class.
      
      We do not need to customize authorization for edges, since nodes are
      redacted by our connections before edges are constructed from them.
      
      All our edges should inherit from this base class in order to use field
      customizations.
      
      Changelog: changed
      5e02ef43
  4. 11月 15, 2021
    • Yorick Peterse's avatar
      Split Database::Connection into separate types · 9bb48c9b
      Yorick Peterse 创作于
      Gitlab::Database::Connection was a kitchen sink type of class: it had
      methods for obtaining database information (e.g. the database name),
      running WAL related queries, querying the status of transactions, and
      more.
      
      This commit splits this class into separate types. For example,
      reflection related methods are now located in
      Gitlab::Database::Reflection. Transaction related methods are moved into
      the Transactions module. The method to get a WAL diff has been moved
      into the LoadBalancer class.
      
      With this also changes the use of these methods. For example, instead of
      this:
      
          Gitlab::Database.main.cached_column_exists?(:users, :id)
      
      You now write this:
      
          Users.database.cached_column_exists?(:id)
      
      Apart from being shorter in many cases, it also decouples the code using
      these methods from the main database. This makes it easier to support
      multiple databases over time.
      9bb48c9b
  5. 11月 13, 2021
  6. 11月 04, 2021
  7. 11月 03, 2021
  8. 10月 26, 2021
  9. 9月 16, 2021
  10. 9月 15, 2021
  11. 9月 13, 2021
  12. 9月 08, 2021
  13. 9月 03, 2021
  14. 9月 02, 2021
    • Peter Leitzen's avatar
      Mark feature flags in Gitlab/MarkUsedFeatureFlags only once · 577be505
      Peter Leitzen 创作于
      Mark dynamic feature flags and feature flags for usage data counters
      only once per whole rubocop run instead of once per file.
      
      This reduces the overall runtime of this cop drastically:
      
          time bundle exec rubocop -C false -f q --only Gitlab/MarkUsedFeatureFlags
      
      * Before: ~8m53.589s
      * After: ~3m56.036s
      577be505
  15. 9月 01, 2021
  16. 8月 26, 2021
  17. 8月 24, 2021
  18. 8月 23, 2021
  19. 8月 09, 2021
  20. 8月 04, 2021
  21. 8月 03, 2021
  22. 7月 30, 2021
  23. 7月 29, 2021
    • Corinna Wiesner's avatar
      Add rubocop rule for ignore_column(s) usages · 613d13ba
      Corinna Wiesner 创作于
      Prior to this change, ignore rules for a columns were defined in CE or
      EE models. But if a model exists in CE and EE, the ignore rule has to
      be in the CE model. If the model only exists in EE, then it has to be
      added there. A new rubocop rule will check for the correct location of
      the ignore rule.
      613d13ba
  24. 7月 27, 2021
  25. 7月 24, 2021
  26. 7月 22, 2021
  27. 7月 20, 2021
  28. 7月 19, 2021
  29. 7月 14, 2021
  30. 7月 09, 2021
加载中