diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2016-05-26 02:29:41 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2016-05-26 02:29:41 +0300 |
commit | 3d009f77853261d43f1d5302d8016f4641ba5fca (patch) | |
tree | 6416c7ee98aa2d88c3c205d69ce62c0121881c78 /lib/gitlab | |
parent | 4b4cda85b24bbf825a37f55b4ce1430c1ccc9965 (diff) | |
parent | 527d64463530df5a2f5f800885f5f84920b1058b (diff) |
Merge branch 'updated-contrib-calendar' into 'master'
POC: Updated contrib calendar
In an effort to cut down the JS file size - i've removed the heatmap calendar used for the contributing calendar on users profiles. We already have d3 on the page so why not use it instead of using a library which uses it?
![Screen_Shot_2016-04-27_at_11.08.41](/uploads/64c40f0c766f800fd0e33ac8be7f9644/Screen_Shot_2016-04-27_at_11.08.41.png)
cc. @jschatz1
See merge request !3944
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/contributions_calendar.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/contributions_calendar.rb b/lib/gitlab/contributions_calendar.rb index 85583dce9ee..9dc2602867e 100644 --- a/lib/gitlab/contributions_calendar.rb +++ b/lib/gitlab/contributions_calendar.rb @@ -19,7 +19,7 @@ module Gitlab select('date(created_at) as date, count(id) as total_amount'). map(&:attributes) - dates = (1.year.ago.to_date..(Date.today + 1.day)).to_a + dates = (1.year.ago.to_date..Date.today).to_a dates.each do |date| date_id = date.to_time.to_i.to_s |