Commit Graph

19 Commits

Author SHA1 Message Date
Bob Van Landuyt 148816cd67 Port `read_cross_project` ability from EE 2018-02-22 17:11:36 +01:00
Mike Greiling 08c513b6d9 fix rubocop violations 👮 2017-07-31 18:19:18 -05:00
Mike Greiling 1b9b6974fd fix mysql syntax for date INTERVAL arithmatic 2017-07-31 17:36:47 -05:00
Mike Greiling d1f5e81e8b adjust timezone for date grouping in contributions calendar 2017-07-29 01:50:17 -05:00
Mike Greiling be77d76e73 use timezone-aware Date.current instead of Date.today in ContributionsCalendar class 2017-07-29 00:36:54 -05:00
Grzegorz Bizon 0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
Sean McGivern ed6f6cf2fc Fix memoization in ContributionsCalendar#activity_dates
This doesn't appear to be actually called twice, but having it appear to work
but not would be a problem if it was.
2017-06-07 14:29:49 +01:00
Rémy Coutable 4f51e1fad0
Add comment events to contributions calendar
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-13 18:59:13 +01:00
Robert Speicher b0088b527e
Merge branch '23403-fix-events-for-private-project-features' into 'security'
Respect project visibility settings in the contributions calendar

This MR fixes a number of bugs relating to access controls and date selection of events for the contributions calendar

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23403

See merge request !2019

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-09 12:27:41 +01:00
Clement Ho a147b43dcc Replace contributions calendar timezone payload with dates 2016-09-16 14:38:59 -05:00
Clement Ho a15e9f02b8 Reduce contributions calendar data payload 2016-08-25 16:00:39 -05:00
Phil Hughes 18b361cf80 Group the contributing calendar by day
This aligns the boxes correctly with the day on the left side of the calendar
2016-05-16 12:22:17 +01:00
Robert Speicher 1a1113f7c4 Simplify `ContributionsCalendar#starting_year` and `#starting_month` 2016-01-01 22:11:34 -05:00
Guilherme Garnier 59d0263bc8 Fix rubocop warnings in lib 2015-10-03 01:29:58 -05:00
Zhang Sen 0cbafa4d65 Fix contributions calendar empty problem under mysql
When using MySQL as database backend in GitLab, ``date`` in ``date(created_at), count(id) as total_amount``
won't return the ``date`` column (should be ``date(created_at)``), as a result, there's no contribution in the user
profile page.
Adding an ``as date`` can solve this problem.
2015-04-25 20:13:52 +08:00
Dmitriy Zaporozhets 8494170550 Improve contribution calendar per day info 2015-03-22 14:52:44 -07:00
Dmitriy Zaporozhets 54aca18cf8 Contribution calendar will use events instead of commits to count contributions 2015-03-22 14:35:27 -07:00
Dmitriy Zaporozhets 43afe46bbd Refactor contributions events and write tests for calendar 2015-03-22 13:55:00 -07:00
Dmitriy Zaporozhets 64891c6c40 Replace commits calendar with contributions calendar
* count opening of issues and merge requests
* dont trigger git repository - use events from database
* much-much faster since does not affected by repository size
2015-03-21 23:48:08 -07:00