summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-01-04 12:25:48 -0600
committerMike Greiling <mike@pixelcog.com>2018-01-04 12:26:36 -0600
commite3f215f676488d74ff8ed61dea8e715e73db2934 (patch)
tree08d75cfbc9d905ccc33a8d038c93df5946418d86 /app
parent58a705aaacfb137d654e5f1313c9e5f898422eed (diff)
downloadgitlab-ce-e3f215f676488d74ff8ed61dea8e715e73db2934.tar.gz
fix missing import of timeWeek which would cause errors in prometheus graphs with deploymentsfix-missing-d3-import
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/monitoring/utils/date_time_formatters.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/app/assets/javascripts/monitoring/utils/date_time_formatters.js b/app/assets/javascripts/monitoring/utils/date_time_formatters.js
index 48bdec1e030..068813ddee6 100644
--- a/app/assets/javascripts/monitoring/utils/date_time_formatters.js
+++ b/app/assets/javascripts/monitoring/utils/date_time_formatters.js
@@ -1,8 +1,18 @@
import { timeFormat as time } from 'd3-time-format';
-import { timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeYear } from 'd3-time';
+import { timeSecond, timeMinute, timeHour, timeDay, timeWeek, timeMonth, timeYear } from 'd3-time';
import { bisector } from 'd3-array';
-const d3 = { time, bisector, timeSecond, timeMinute, timeHour, timeDay, timeMonth, timeYear };
+const d3 = {
+ time,
+ bisector,
+ timeSecond,
+ timeMinute,
+ timeHour,
+ timeDay,
+ timeWeek,
+ timeMonth,
+ timeYear,
+};
export const dateFormat = d3.time('%b %-d, %Y');
export const timeFormat = d3.time('%-I:%M%p');