Skip to content

Add dashboard timezone setting

Ryan Cobb requested to merge rc/add_dashboard_timezone into master

What does this MR do?

First Backend MR to address #214370 (closed)

A second MR will update apis/views to use this new column.

Migrations

RemoveNotNullFromExternalDashboardUrl

up

== 20200528171933 RemoveNotNullFromExternalDashboardUrl: migrating ============
-- change_column_null(:project_metrics_settings, :external_dashboard_url, true)
   -> 0.0012s
== 20200528171933 RemoveNotNullFromExternalDashboardUrl: migrated (0.0012s) ===

down

== 20200528171933 RemoveNotNullFromExternalDashboardUrl: reverting ============
-- change_column_null(:project_metrics_settings, :external_dashboard_url, false)
   -> 0.0012s
== 20200528171933 RemoveNotNullFromExternalDashboardUrl: reverted (0.0035s) ===

AddDashboardTimezoneToProjectMetricsSetting:

up

== 20200601210148 AddDashboardTimezoneToProjectMetricsSetting: migrating ======
-- add_column(:project_metrics_settings, :dashboard_timezone, :integer, {:limit=>2, :null=>false, :default=>0})
   -> 0.0054s
== 20200601210148 AddDashboardTimezoneToProjectMetricsSetting: migrated (0.0055s)

down

== 20200601210148 AddDashboardTimezoneToProjectMetricsSetting: reverting ======
-- remove_column(:project_metrics_settings, :dashboard_timezone, :integer, {:limit=>2, :null=>false, :default=>0})
   -> 0.0030s
== 20200601210148 AddDashboardTimezoneToProjectMetricsSetting: reverted (0.0068s)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports