Skip to content
代码片段 群组 项目
提交 6f65c50d 编辑于 作者: imand3r's avatar imand3r
浏览文件

Migrate abuse report schemas for Cells 1.0

上级 4c8b46f9
No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true # frozen_string_literal: true
module Abuse module Abuse
class Event < ApplicationRecord class Event < MainClusterwide::ApplicationRecord
self.table_name = 'abuse_events' self.table_name = 'abuse_events'
validates :category, presence: true validates :category, presence: true
......
# frozen_string_literal: true # frozen_string_literal: true
module Abuse module Abuse
class TrustScore < ApplicationRecord class TrustScore < MainClusterwide::ApplicationRecord
self.table_name = 'abuse_trust_scores' self.table_name = 'abuse_trust_scores'
enum source: Enums::Abuse::Source.sources enum source: Enums::Abuse::Source.sources
......
# frozen_string_literal: true # frozen_string_literal: true
class AbuseReport < ApplicationRecord class AbuseReport < MainClusterwide::ApplicationRecord
include CacheMarkdownField include CacheMarkdownField
include Sortable include Sortable
include Gitlab::FileTypeDetection include Gitlab::FileTypeDetection
......
# frozen_string_literal: true # frozen_string_literal: true
module Admin module Admin
class AbuseReportAssignee < ApplicationRecord class AbuseReportAssignee < MainClusterwide::ApplicationRecord
self.table_name = 'abuse_report_assignees' self.table_name = 'abuse_report_assignees'
belongs_to :abuse_report, touch: true belongs_to :abuse_report, touch: true
......
# frozen_string_literal: true # frozen_string_literal: true
module ResourceEvents module ResourceEvents
class AbuseReportEvent < ApplicationRecord class AbuseReportEvent < MainClusterwide::ApplicationRecord
include AbuseReportEventsHelper include AbuseReportEventsHelper
belongs_to :abuse_report, optional: false belongs_to :abuse_report, optional: false
......
...@@ -7,4 +7,4 @@ feature_categories: ...@@ -7,4 +7,4 @@ feature_categories:
description: Captures events of potential abuse description: Captures events of potential abuse
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/115258 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/115258
milestone: '16.1' milestone: '16.1'
gitlab_schema: gitlab_main gitlab_schema: gitlab_main_clusterwide
...@@ -7,4 +7,4 @@ feature_categories: ...@@ -7,4 +7,4 @@ feature_categories:
description: Stores information linking abuse reports and users (assignee) description: Stores information linking abuse reports and users (assignee)
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/134240 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/134240
milestone: '16.7' milestone: '16.7'
gitlab_schema: gitlab_main_cell gitlab_schema: gitlab_main_clusterwide
...@@ -7,4 +7,4 @@ feature_categories: ...@@ -7,4 +7,4 @@ feature_categories:
description: Stores actions taken on abuse reports. description: Stores actions taken on abuse reports.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/119199 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/119199
milestone: "16.0" milestone: "16.0"
gitlab_schema: gitlab_main gitlab_schema: gitlab_main_clusterwide
...@@ -7,4 +7,4 @@ feature_categories: ...@@ -7,4 +7,4 @@ feature_categories:
description: User mentions in abuse report notes description: User mentions in abuse report notes
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/132505 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/132505
milestone: '16.5' milestone: '16.5'
gitlab_schema: gitlab_main gitlab_schema: gitlab_main_clusterwide
...@@ -7,4 +7,4 @@ feature_categories: ...@@ -7,4 +7,4 @@ feature_categories:
description: Stores abuse reports from other users. description: Stores abuse reports from other users.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/cba7f20dc8614d12e3eeda6e14f454aeb22b9b54 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/cba7f20dc8614d12e3eeda6e14f454aeb22b9b54
milestone: '7.13' milestone: '7.13'
gitlab_schema: gitlab_main gitlab_schema: gitlab_main_clusterwide
...@@ -7,4 +7,4 @@ feature_categories: ...@@ -7,4 +7,4 @@ feature_categories:
description: Aggregates per-user scores related to potential product abuse. description: Aggregates per-user scores related to potential product abuse.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117301 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117301
milestone: '15.11' milestone: '15.11'
gitlab_schema: gitlab_main gitlab_schema: gitlab_main_clusterwide
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
# the table name to remove this once a decision has been made. # the table name to remove this once a decision has been made.
let(:allowed_to_be_missing_sharding_key) do let(:allowed_to_be_missing_sharding_key) do
[ [
'abuse_report_assignees', # https://gitlab.com/gitlab-org/gitlab/-/issues/432365
'sbom_occurrences_vulnerabilities', # https://gitlab.com/gitlab-org/gitlab/-/issues/432900 'sbom_occurrences_vulnerabilities', # https://gitlab.com/gitlab-org/gitlab/-/issues/432900
'p_ci_pipeline_variables', # https://gitlab.com/gitlab-org/gitlab/-/issues/436360 'p_ci_pipeline_variables', # https://gitlab.com/gitlab-org/gitlab/-/issues/436360
'ml_model_metadata', # has a desired sharding key instead. 'ml_model_metadata', # has a desired sharding key instead.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册