Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 4月 24, 2024
  2. 4月 23, 2024
    • Rostyslav Safonov's avatar
      Early Access Program tracking init · 416858a9
      Rostyslav Safonov 创作于
      It's a scaffold for product usage activity tracking
      for GitLab early access program. Only for participants
      of the program and only who agreed on optional tracking.
      
      Changelog: added
      416858a9
  3. 4月 02, 2024
  4. 3月 26, 2024
  5. 3月 09, 2024
    • Leaminn Ma's avatar
      Add table to track CI component usage · 3372a756
      Leaminn Ma 创作于
      Adds a new partitioned table p_catalog_resource_component_usages.
      This table will track when a CI component is included in a project's
      pipeline. Only unique records of component-used_by_project-used_date
      are inserted.
      
      This data will be used to display component usage popularity
      aggregated by component or catalog_resource per 30 day rolling window.
      
      This table is partitioned by month. For now, the
      table will drop partitions with data older than 12 months. This
      duration will likely be reduced in a follow up issue.
      
      Changelog: added
      3372a756
  6. 3月 07, 2024
  7. 3月 01, 2024
  8. 2月 29, 2024
  9. 2月 28, 2024
  10. 2月 27, 2024
  11. 2月 22, 2024
  12. 2月 21, 2024
  13. 2月 15, 2024
  14. 2月 14, 2024
  15. 2月 09, 2024
  16. 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
  17. 1月 30, 2024
  18. 1月 25, 2024
  19. 1月 22, 2024
  20. 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
  21. 1月 05, 2024
  22. 12月 22, 2023
  23. 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
  24. 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
  25. 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
  26. 12月 05, 2023
  27. 12月 01, 2023
  28. 11月 29, 2023
  29. 11月 21, 2023
  30. 11月 16, 2023
  31. 11月 15, 2023
  32. 11月 01, 2023
  33. 10月 31, 2023
加载中