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
2018-04-20Atomic internal ids for all modelsAndreas Brandl
2018-04-18Revert the addition of goldiloaderYorick Peterse
This reverts the addition of the "goldiloader" Gem and all use of it. While this Gem is very promising it's causing a variety of problems on GitLab.com due to it eager-loading too much data in places where we don't expect/can handle this. At least for the time being this means we have to go back to manually fixing N+1 query problems, but at least those should not cause a negative impact on availability.
2018-04-09Add cop for has_many :through without disabled autoloadingSean McGivern
Goldiloader is great, but has several issues with has_many :through relations: * https://github.com/salsify/goldiloader/issues/12 * https://github.com/salsify/goldiloader/issues/14 * https://github.com/salsify/goldiloader/issues/18 Rather than try to figure out which applies in each case, we should just do the drudge work of manually disabling autoloading for all relations of this type. We can always use regular preloading for specific cases, but this way we avoid generating invalid queries through Goldiloader's magic.
2018-04-05Fix specsFelipe Artur
2018-04-04[Rails5] Rename `sort` methods to `sort_by_attribute`blackst0ne
2018-03-16Deprecate InternalId concern and rename.Andreas Brandl
2017-12-05[CE-Backport] Fix board filter when milestone is predefinedFelipe Artur
2017-11-27Use fuzzy search with minimum length of 3 characters where appropriateDouwe Maan
2017-11-24Use Gitlab::SQL::Pattern where appropriateDouwe Maan
2017-11-23Fix link text from group contextJarka Kadlecova
2017-11-18Changed validation error message on wrong milestone datesXurxo Méndez Pérez
2017-09-20Fix rewriting issue references with group milestonesGrzegorz Bizon
2017-08-29replace `is_group_milestone?` with `group_milestone?`Maxim Rydkin
2017-08-29replace `is_project_milestone?` with `project_milestone?`Maxim Rydkin
2017-08-07Support references to group milestonesSean McGivern
Group milestones can only be referred to by name, not IID. They also do not support cross-project references.
2017-07-07Native group milestonesFelipe Artur
2017-07-06Added Cop to blacklist the use of `dependent:`Yorick Peterse
This is allowed for existing instances so we don't end up 76 offenses right away, but for new code one should _only_ use this if they _have_ to remove non database data. Even then it's usually better to do this in a service class as this gives you more control over how to remove the data (e.g. in bulk).
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-16Improve method names and add more specsFelipe Artur
2017-06-16Order merge requests by priorityFelipe Artur
2017-06-16Remove Drag and drop and sorting from milestone viewFelipe Artur
2017-05-29Fix: Milestone - Participants list is showing duplicate assigneesValery Sizov
2017-05-04Backport of multiple_assignees_feature [ci skip]Valery Sizov
2017-04-07Removed `Milestone#is_empty?`Jacopo
Removed `Milestone#is_empty?` because is not used anymore in the codebase
2017-04-02Enable Style/Proc cop for rubocopmhasbini
2017-03-24Add dropdown sort to project milestonesGeorge Andrinopoulos
2017-03-15Allow filtering by all started milestonesSean McGivern
2017-01-06Speed up group milestone index by passing group_id to IssuesFinderAdam Niedzielski
2017-01-03Fix cross-project references copy to include the project referenceJames Lopez
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
2016-12-20Milestoneish SQL performance partially improved and memoizedJames Edwards-Jones
Memoize Milestoneish#issues_visible_to_user and counts to reduce lookups Milstoneish SQL optimised with project, but still slow on GlobalMilestone
2016-12-03Add shorthand support to gitlab markdown referencesOswaldo Ferreira
2016-11-23Add a starting date to milestonesValery Sizov
2016-10-07Add markdown cache columns to the database, but don't use them yetNick Thomas
This commit adds a number of _html columns and, with the exception of Note, starts updating them whenever the content of their partner fields changes. Note has a collision with the note_html attr_accessor; that will be fixed later A background worker for clearing these cache columns is also introduced - use `rake cache:clear` to set it off. You can clear the database or Redis caches separately by running `rake cache:clear:db` or `rake cache:clear:redis`, respectively.
2016-09-30Allowing ">" to be used for Milestone models's title and storing the value ↵Makoto Scott-Hinkle
in db as unescaped. Updating test value for milestone title Adding API test for title with reserved HTML characters. Updating changelog Adding the MR number for fixing bug #22452. removing duplicate line Updating MR number.
2016-07-01use has_many relationship with eventsJames Lopez
2016-06-29fixing events for import/exportJames Lopez
2016-05-19Address Yorick's feedbackRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-19Merge remote-tracking branch 'origin/master' into ↵Rémy Coutable
eReGeBe/gitlab-ce-feature/milestone-md Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-05-16Return a relation with PostgresSean McGivern
Postgres only needs to select a single column, so that can used as a sub-query where `Milestone.upcoming_ids_by_projects` is actually used in `IssuableFinder`. MySQL needs to select the `due_date` column because it's used in the `HAVING` clause, so it has to return an array of IDs.
2016-05-16Make upcoming milestone work across projectsSean McGivern
Before: we took the next milestone due across all projects in the search and found issues whose milestone title matched that one. Problems: 1. The milestone could be closed. 2. Different projects have milestones with different schedules. 3. Different projects have milestones with different titles. 4. Different projects can have milestones with different schedules, but the _same_ title. That means we could show issues from a past milestone, or one that's far in the future. After: gather the ID of the next milestone on each project we're looking at, and find issues with those milestone IDs. Problems: 1. For a lot of projects, this can return a lot of IDs. 2. The SQL query has to be different between Postgres and MySQL, because MySQL is much more lenient with HAVING: as well as the columns appearing in GROUP BY or in aggregate clauses, MySQL allows them to appear in the SELECT list (un-aggregated).
2016-05-10Merge branch 'remove-annotate-gem' into 'master' Yorick Peterse
Remove the annotate gem and delete old annotations In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382 /cc @yorickpeterse See merge request !4099
2016-05-09Remove the annotate gem and delete old annotationsJeroen van Baarsen
In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
2016-05-09Merge branch 'issue_15394' into 'master' Rémy Coutable
Sanitize milestones and labels titles fixes #15394 See merge request !4046
2016-05-09Make model sanitization methods one linersFelipe Artur
2016-05-06Annotate the modelsZeger-Jan van de Weg
2016-05-05Sanitize milestones and label titlesFelipe Artur
2016-04-21Matching version-like expressions as `milestone_name`s instead of ↵Alejandro Rodríguez
`milestone_iid`s The changes also account for %2.1. being matched as milestone_name = "2.1" without the word-separating dot.
2016-04-21Consistently using iid when treating milestones as referrablesAlejandro Rodríguez
Also, addint a suffix to the reference text when the milestone is in another project
2016-04-21Implementing special GitLab markdown reference for milestonesAlejandro Rodríguez
Using the syntax proposed in #13829 [project_reference]%(milestone_id | milestone_name) to get a link to the referred milestone.
2016-04-01Merge branch 'routing' into 'master' Robert Speicher
Added & use Gitlab::Routing for URL helpers Extracted from !3389 See merge request !3486