Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 6月 11, 2024
    • Abdul Wadood's avatar
      Regenerate rubocop todo files · a3bb374d
      Abdul Wadood 创作于
      The rubocop todo files have been regenerated using the command:
      
      `bundle exec rake rubocop:todo:generate`
      
      Nonexistent files and the files with no rubocop offenses have been
      removed from the todo list.
      
      The grace period for some cops has been retained as they are failing on
      the master branch. The corresponding files for these cops have been
      added to their todo files.
      
      The grace period for these cops is safe to remove after 1 week of no
      warning in #f_rubocop.
      See
      https://docs.gitlab.com/ee/development/rubocop_development_guide.html#cop-grace-period.
      a3bb374d
  2. 6月 07, 2024
    • Leonardo Rosa's avatar
      Remove BBM job classes up to 16.3 · 842d4283
      Leonardo Rosa 创作于
      As part of the squash processes, finalized BBM classes from
      squashed migrations can be removed from the codebase, including
      each respective spec
      
      Changelog: removed
      842d4283
  3. 2月 29, 2024
  4. 2月 24, 2024
  5. 12月 09, 2023
  6. 8月 15, 2023
    • Eduardo Bonet's avatar
      Adds EnumInheritance as option for STI · d78ae6cc
      Eduardo Bonet 创作于
      Stock ActiveRecord STI works by storing the class name in the database,
      which is heavy and unnecessary. EnumInheritance introduces a way to use
      STI through model defined enums.
      
      Changelog: other
      d78ae6cc
  7. 4月 20, 2023
  8. 2月 16, 2023
  9. 1月 12, 2023
  10. 1月 10, 2023
  11. 1月 03, 2023
  12. 12月 06, 2022
  13. 11月 29, 2022
  14. 11月 28, 2022
  15. 9月 16, 2022
  16. 8月 02, 2022
  17. 7月 06, 2022
  18. 5月 12, 2022
    • Thong Kuah's avatar
      Allowlist Database/MultipleDatabases offenses · 0534013c
      Thong Kuah 创作于
      - config/initializers/sidekiq.rb this method is safe for multiple
        databases
      - lib/gitlab/database.rb is a legitmate use
      - lib/gitlab/database/load_balancing/load_balancer.rb uses methods that
        are safe with multiple databases
      - lib/gitlab/database/migrations/observers/query_log.rb also uses a
        method that is safe with multiple databases
      - lib/tasks/gitlab/db/validate_config.rake is OK because it's executed
        in the context of looping through each database.
      0534013c
    • Thong Kuah's avatar
      Clear all connections in master connection before forking · ab2249b8
      Thong Kuah 创作于
      This switches from disconnecting only the ActiveRecord::Base connection
      to disconnecting all connections
      
      Addresses the Database/MultipleDatabases offense here.
      ab2249b8
  19. 5月 11, 2022
    • Thong Kuah's avatar
      Allowlist some legitimate usages of ActiveRecord::Base · cfe659a5
      Thong Kuah 创作于
      - config/application.rb. This is safe the methods here are
        multi-database safe
      - ee/lib/tasks/geo.rake. This is safe because we are looping though each
        database
      
      Allow allowlist the ActiveRecord::Base.configurations method as it's a
      read-only method to get all DB configurations.
      cfe659a5
  20. 5月 05, 2022
  21. 5月 04, 2022
  22. 4月 29, 2022
  23. 4月 20, 2022
  24. 4月 15, 2022
  25. 3月 09, 2022
  26. 3月 08, 2022
    • pbair's avatar
      Implement uncached behavior for multiple databases · 9f4134ed
      pbair 创作于
      Add a Gitlab::Database.all_uncached method which implements
      ActiveRecord::Base.uncached behavior that works with multiple
      databases.
      
      The new method wraps the given block in an #uncached call for each base
      model, so that the behavior will be correct on any database connection.
      9f4134ed
  27. 3月 03, 2022
  28. 3月 01, 2022
  29. 2月 24, 2022
  30. 2月 12, 2022
  31. 2月 11, 2022
  32. 1月 27, 2022
    • pbair's avatar
      Remove default connection for WithLockRetries · dc30afec
      pbair 创作于
      Make the :connection argument for WithLockRetries, by removing the
      default of ActiveRecord::Base. This prevents accidental use of the wrong
      connection once we begin using multiple databases.
      dc30afec
  33. 1月 18, 2022
  34. 1月 13, 2022
  35. 12月 01, 2021
    • pbair's avatar
      Prepare for ci background migration worker · 41da33b3
      pbair 创作于
      Change the existing BackgroundMigrationWorker to use SharedModel with
      the correct connection for running BG migration jobs. Also make the
      class and specs generic, in preparation for adding a new worker which
      will process jobs specific to the ci database.
      41da33b3
    • Peter Leitzen's avatar
      RuboCop: Split `.rubocop_manual_todo.yml` into `.rubocop_todo/**/*.yml` · 141da21f
      Peter Leitzen 创作于
      This commit moves all RuboCop configuration from the large
      `.rubocop_manual_todo.yml` into smaller more focused files within
      `.rubocop_todo/**/*.yml`.
      
      This step enables us to split `.rubocop_todo.yml` later which is very
      likely needed if we start using `rake rubocop:todo:generate` because it
      will produce a huge `.rubocop_todo.yml` (due to much higher "exclude
      limit").
      141da21f
加载中