Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 1月 09, 2024
  2. 12月 28, 2023
  3. 12月 20, 2023
  4. 12月 14, 2023
  5. 12月 05, 2023
  6. 11月 24, 2023
  7. 11月 23, 2023
  8. 11月 22, 2023
  9. 11月 16, 2023
  10. 11月 14, 2023
  11. 11月 13, 2023
  12. 11月 10, 2023
  13. 11月 09, 2023
  14. 10月 26, 2023
  15. 10月 24, 2023
  16. 9月 07, 2023
  17. 8月 29, 2023
  18. 8月 23, 2023
  19. 7月 06, 2023
  20. 6月 22, 2023
  21. 5月 31, 2023
    • Kamil Trzciński's avatar
      Cells: Store databases and gitlab schema configuration in YAML · f027557f
      Kamil Trzciński 创作于
      The purpose of this change is to provide a better and more structured
      way to define `gitlab_schemas` and `database_connections`.
      
      This helps to define applied behavior for connections,
      and what schemas the connection holds, and how those
      are configured (load balancing, etc.).
      
      - Each DB and schema is named, and contains description.
      - Remove code duplication in `gitlab_schema` EE specs
      - Make `Database.db_config_names` to require passing `gitlab_schema`
        to ensure that we return configs only having this schema
      - Ensure that database connection order is the same
        as in `config/database.yml`
      
      Changelog: added
      f027557f
  22. 5月 18, 2023
    • Simon Tomlinson's avatar
      Fix migration specs leaving rows after running · 3d21e79f
      Simon Tomlinson 创作于
      Rather than using transactional tests, migration testing migrates the
      database up after each test, and manually cleans each table.
      
      This could pollute rows into the postgres_async_foreign_key_validations
      table during a test run, since migrating up happened after cleaning all
      tables.
      
      Instead, clean tables after migrating to delete these rows.
      3d21e79f
  23. 5月 04, 2023
  24. 4月 27, 2023
  25. 4月 21, 2023
  26. 3月 27, 2023
  27. 3月 21, 2023
  28. 2月 06, 2023
    • Dylan Griffith's avatar
      Add MainClusterwide::ApplicationRecord and new connection · 20c78598
      Dylan Griffith 创作于
      Adds a new `main_clusterwide` connection option that can be configured
      in `config/database.yml`. This connection is part of the
      [Pods](https://gitlab.com/groups/gitlab-org/-/epics/7582) initiative
      (soon to be renamed to "Silos").
      
      This connection won't be configured in production or even GDK any time
      soon and as such we've opted to have these code paths untested in CI.
      Trying to test this new connection in CI would mean having a separate
      `config/database.yml` that ran all RSpec tests again which is just too
      expensive for this early stage of the project.
      
      The `main_clusterwide` connection will eventually be used to have a
      shared Postgres database that is used by many separate GitLab pods
      (silos/instances). We need to share some data like settings, users,
      licenses across all these pods while separating pod-specific data like
      projects, notes, merge_requests . This allows us to horizontally scale
      most of the data but still users can login and access data in any pod.
      
      When this connection is not configured then the `main` connection will
      be used (as before) so this change should be a no-op for anyone that
      doesn't explicitly go in and add `main_clusterwide` to their
      `config/database.yml`.
      
      There is a lot more detail on the architecture at
      https://docs.gitlab.com/ee/architecture/blueprints/pods/ but the main
      point is that this connection is for "shared" stuff and we're starting
      with `application_settings` and `licenses` as these are the simplest
      tables to decouple.
      
      Changelog: other
      20c78598
  29. 1月 27, 2023
  30. 1月 03, 2023
  31. 10月 27, 2022
  32. 9月 08, 2022
  33. 7月 04, 2022
加载中