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
AgeCommit message (Collapse)Author
2021-09-20Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42GitLab Bot
2020-06-18Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot
2019-07-29Further remove code branches by database typeAndreas Brandl
We dropped MySQL support and a lot of mysql specific code has been removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29608. This comes in from the other direction and removes any `if postgresql?` branches.
2019-03-01Eliminate most N+1 queries loading UserController#calendar_activitiesStan Hu
We can reduce a significant number of queries by preloading the associations for events. On GitLab.com, for a date that had 456 events, this brought the load time down from 8.7 to 1.2 s. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58392
2018-10-26Replace deprecated uniq on a Relation with distinctJasper Maes
2018-10-22Enable frozen string for lib/gitlab/*.rbgfyoung
2018-09-17Added FromUnion to easily select from a UNIONYorick Peterse
This commit adds the module `FromUnion`, which provides the class method `from_union`. This simplifies the process of selecting data from the result of a UNION, and reduces the likelihood of making mistakes. As a result, instead of this: union = Gitlab::SQL::Union.new([foo, bar]) Foo.from("(#{union.to_sql}) #{Foo.table_name}") We can now write this instead: Foo.from_union([foo, bar]) This commit also includes some changes to make this new setup work properly. For example, a bug in Rails 4 (https://github.com/rails/rails/issues/24193) would break the use of `from("sub-query-here").includes(:relation)` in certain cases. There was also a CI query which appeared to repeat a lot of conditions from an outer query on an inner query, which isn't necessary. Finally, we include a RuboCop cop to ensure developers use this new module, instead of using Gitlab::SQL::Union directly. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
2018-09-11Disable existing offenses for the CodeReuse copsYorick Peterse
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-07Include private contributions in user contribution graphGeorge Tsiolis
2018-05-30Replace .having with .where in calendar queryJan Provaznik
the current syntax doesn't work properly in Rails 5, the resulting query looks like: HAVING "events"."project_id" IN (0) instead of: HAVING "events"."project_id" IN (SELECT "projects"."id" FROM... Also we should not use ActiveRecord internal methods. In this case we can filter projects in WHERE clause instead of doing this in HAVING clause. Usage of WHERE should be also more efficient because grouping is then done on much smaller subset of records.
2018-03-07Count discussions on issues and merge requests as contributions for the ↵Riccardo Padovani
contributions calendar
2018-03-05#43691: DiffNotes not counted by ContributionsCalendarRiccardo Padovani
2018-02-22Port `read_cross_project` ability from EEBob Van Landuyt
2017-08-01fix rubocop violations 👮Mike Greiling
2017-08-01fix mysql syntax for date INTERVAL arithmaticMike Greiling
2017-07-29adjust timezone for date grouping in contributions calendarMike Greiling
2017-07-29use timezone-aware Date.current instead of Date.today in ↵Mike Greiling
ContributionsCalendar class
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-07Fix memoization in ContributionsCalendar#activity_datesSean McGivern
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-02-13Add comment events to contributions calendarRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-09Merge branch '23403-fix-events-for-private-project-features' into 'security'Robert Speicher
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-09-16Replace contributions calendar timezone payload with datesClement Ho
2016-08-26Reduce contributions calendar data payloadClement Ho
2016-05-16Group the contributing calendar by dayPhil Hughes
This aligns the boxes correctly with the day on the left side of the calendar
2016-01-02Simplify `ContributionsCalendar#starting_year` and `#starting_month`Robert Speicher
2015-10-03Fix rubocop warnings in libGuilherme Garnier
2015-04-25Fix contributions calendar empty problem under mysqlZhang Sen
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-03-23Improve contribution calendar per day infoDmitriy Zaporozhets
2015-03-23Contribution calendar will use events instead of commits to count contributionsDmitriy Zaporozhets
2015-03-22Refactor contributions events and write tests for calendarDmitriy Zaporozhets
2015-03-22Replace commits calendar with contributions calendarDmitriy Zaporozhets
* 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