Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Pereira <rpereira@gitlab.com>2019-04-26 20:23:26 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2019-04-26 20:23:26 +0300
commit4376167a04aaeed084ad93aab2e65550109235c6 (patch)
tree99fa950932bf6ea5c0d453c9d4494a0adb0c16f3 /spec/factories/project_metrics_settings.rb
parentbb6908cd5bcb14d70dfadbc2a16d7310bfa65445 (diff)
Add ProjectMetricsDashboardSetting model and table
This new table will be used to store the external_dashboard_url which allows users to add a link to their external dashboards (ex Grafana) to the Metrics dashboard.
Diffstat (limited to 'spec/factories/project_metrics_settings.rb')
-rw-r--r--spec/factories/project_metrics_settings.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/project_metrics_settings.rb b/spec/factories/project_metrics_settings.rb
new file mode 100644
index 00000000000..234753f9b87
--- /dev/null
+++ b/spec/factories/project_metrics_settings.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+FactoryBot.define do
+ factory :project_metrics_setting, class: ProjectMetricsSetting do
+ project
+ external_dashboard_url 'https://grafana.com'
+ end
+end