Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 2月 22, 2024
  2. 2月 21, 2024
  3. 2月 15, 2024
  4. 2月 14, 2024
  5. 2月 09, 2024
  6. 2月 07, 2024
    • Panos Kanellidis's avatar
      Introduce FK for routing table · 9699bcdb
      Panos Kanellidis 创作于
      Adds an FK from p_ci_builds to ci_stages now that the partitiones have the foreign key
      
      This commit also introduces synchronous validations for the FKs in the partitions, for self-managed
      
      Changelog: other
      9699bcdb
  7. 1月 30, 2024
  8. 1月 25, 2024
  9. 1月 22, 2024
  10. 1月 11, 2024
    • Maxime Orefice's avatar
      Add partition_id to Ci::PipelineConfig · f2ddcb34
      Maxime Orefice 创作于
      This MR cascades partition_id from pipeline to
      Ci::PipelineConfig. We need to add this new column in order
      to redefine the FK association between ci_pipeline_artifacts
      and ci_pipelines.
      
      Changelog: added
      f2ddcb34
    • Maxime Orefice's avatar
      Add partition_id to Ci::PipelineArtifact · c3ac0da2
      Maxime Orefice 创作于
      This MR cascades partition_id from pipeline to
      Ci::PipelineArtifact. We need to add this new column in order
      to redefine the FK association between ci_pipeline_artifacts
      and ci_pipelines.
      
      Changelog: added
      c3ac0da2
    • Maxime Orefice's avatar
      Add partition_id to Ci::PipelineMetadata · 171b7fa9
      Maxime Orefice 创作于
      This MR cascades partition_id from pipeline to
      Ci::PipelineMetadata. We need to add this new column in order
      to redefine the FK association between ci_pipeline_metadata
      and ci_pipelines.
      
      Changelog: added
      171b7fa9
  11. 1月 05, 2024
  12. 12月 22, 2023
  13. 12月 21, 2023
    • Maxime Orefice's avatar
      Add partition_id to Ci::PipelineChatData · 7d1890a9
      Maxime Orefice 创作于
      This commit cascades partition_id from the pipeline, we need
      to add this new column in order to redefine the FK association
      between ci_pipeline_chat_data and ci_pipelines. As in order to
      partition ci_pipelines all references FK must include the partition
      key.
      
      Changelog: added
      7d1890a9
  14. 12月 18, 2023
    • Dylan Griffith's avatar
      Allow configuring desired_sharding_key in db/docs · 70bfac02
      Dylan Griffith 创作于
      As part of our Cells effort we are going to need to backfill a
      `sharding_key` to many tables. The `sharding_key` can be any foreign key
      that references `projects`, `namespaces` or `organizations`. You can
      read more about this at
      https://docs.gitlab.com/ee/development/database/multiple_databases.html#defining-a-sharding-key-for-all-cell-local-tables
      .The enforcement of having a `sharding_key` for new tables was already
      implemented in
      https://gitlab.com/gitlab-org/gitlab/-/merge_requests/136682 .
      
      Additionally we have recently shown examples of how we plan to backfill
      a sharding_key to a table that is missing it in
      https://gitlab.com/gitlab-org/gitlab/-/merge_requests/136800 .
      
      This MR extends this work by allowing a very minimal way to declare in
      the `db/docs` file a `desired_sharding_key` a strategy to backfill a new
      column that will eventually become the `sharding_key`. An example has
      been given in this MR which looks like:
      
      ```yml
      desired_sharding_key:
        project_id:
          references: projects
          backfill_via:
            parent:
              foreign_key: scanner_id
              table: vulnerability_scanners
              sharding_key: project_id
              belongs_to: scanner
      ```
      
      To understand best how this YML data will be used you can map it onto
      the merge request we created manually in
      https://gitlab.com/gitlab-org/gitlab/-/merge_requests/136800 . The idea
      will be to automatically create this. The content of the YML specifies
      the parent table and it's sharding_key to backfill from in the batched
      background migration. It also specifies a `belongs_to` relation which
      will be added to the model to automatically populate the sharding_key in
      the `before_save`.
      
      The idea behind this is to save developers the effort of creating MRs
      which add the new column and writing a batched background migration to
      backfill this column and all the followup work related to that. Instead
      we will be building automation that uses this data in the YML file to
      automatically create all the merge requests for creating the column and
      backfilling it.
      70bfac02
  15. 12月 06, 2023
    • Leaminn Ma's avatar
      Implement background syncing for catalog_resources and projects · 55809457
      Leaminn Ma 创作于
      Adds catalog_resource_sync_events table and model
      to serve as a queue of catalog resources that need to be synchronized
      with data changes to their associated `projects` records. PG triggers
      add SyncEvent records when a catalog resource is created or
      when a relevant column in an associated project is updated.
      A worker processes the sync events.
      
      Changelog: added
      55809457
  16. 12月 05, 2023
  17. 12月 01, 2023
  18. 11月 29, 2023
  19. 11月 21, 2023
  20. 11月 16, 2023
  21. 11月 15, 2023
  22. 11月 01, 2023
  23. 10月 31, 2023
  24. 10月 30, 2023
  25. 10月 21, 2023
    • Jon Jenkins's avatar
      Start using milestones · c61263bc
      Jon Jenkins 创作于
      Adds support code to start requiring milestones as well as including the
      current milestone when generating a new migration.
      
      Update some failing tests
      
      Slight updates
      c61263bc
  26. 10月 18, 2023
  27. 10月 16, 2023
  28. 9月 22, 2023
  29. 9月 20, 2023
  30. 9月 19, 2023
  31. 9月 15, 2023
  32. 9月 14, 2023
  33. 9月 04, 2023
  34. 9月 02, 2023
  35. 8月 23, 2023
加载中