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-09-18Don't use MilestoneFinder for group milestonesDouglas Barbosa Alexandre
This refactors the DashboardGroupMilestone model so that it no longer uses the MilestoneFinder, instead using methods defined on the Milestone model directly.
2018-07-30Fix ordering by name on milestones pageDouglas Barbosa Alexandre
We should sort by title because name is only an alias for the title attribute on the milestone model.
2018-05-14Clarify scope for AtomicInternalId shared specShinya Maeda
2018-04-20Atomic internal ids for all modelsAndreas Brandl
2018-04-19Resolve "Improve tooltips of collapsed sidebars"Dennis Tang
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-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-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-07-27Use described_class when possibleRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-07Native group milestonesFelipe Artur
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-16Remove old specs and add new onesFelipe Artur
2017-05-29Fix: Milestone - Participants list is showing duplicate assigneesValery Sizov
2017-04-07Removed `Milestone#is_empty?`Jacopo
Removed `Milestone#is_empty?` because is not used anymore in the codebase
2017-03-25Fix RSpec/DescribeSymbol cop violationsRobert Speicher
2017-01-27Use `:empty_project` where possible in model specsRobert Speicher
2016-12-15Merge branch 'jej-24637-move-issue-visible_to_user-to-finder' into 'security' Sean McGivern
Issue#visible_to_user moved to IssuesFinder Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/24637. See merge request !2039
2016-12-03Add shorthand support to gitlab markdown referencesOswaldo Ferreira
2016-11-23Add a starting date to milestonesValery Sizov
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-08-09adds second batch of tests changed to active tensetiagonbotelho
2016-07-12Avoid `describe`-ing symbols in specsRobert Speicher
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-05Sanitize milestones and label titlesFelipe Artur
2016-03-18Restrict access for confidential issues on milestone viewDouglas Barbosa Alexandre
2016-03-11Use ILIKE/LIKE for searching milestonesYorick Peterse
2016-03-07Updates from last code review.Rubén Dávila
2016-02-08Validate uniqueness of milestone title per projectZeger-Jan van de Weg
Fixes #3903
2015-12-09Tag model specsDouwe Maan
2015-10-19Improve performance of sorting milestone issuesYorick Peterse
This cuts down the time it takes to sort issues of a milestone by about 10x. In the previous setup the code would run a SQL query for every issue that had to be sorted. The new setup instead runs a single SQL query to update all the given issues at once. The attached benchmark used to run at around 60 iterations per second, using the new setup this hovers around 600 iterations per second. Timing wise a request to update a milestone with 40-something issues would take about 760 ms, in the new setup this only takes about 130 ms. Fixes #3066
2015-10-03Fix rubocop warnings in spec/modelsGuilherme Garnier
2015-06-22Update mock and stub syntax for specsRobert Speicher
2015-05-26Change percent_complete rescue value from 100 to 0Jonah Bishop
The percent_complete method returns a value of 100 when a ZeroDivisionError occurs. That seems like a very strange default for an error case, and results in a bug when a milestone has no corresponding issues (new, empty milestones show 100% completion). This commit changes the rescue value to 0, and subsequently fixes #1656, which reported this problem.
2015-02-12Updated rspec to rspec 3.x syntaxJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2014-06-27Remove mass assgnment specsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-09Re-annotate modelsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-08-21ReannotateDmitriy Zaporozhets
2013-08-21Look for milestone by iid in milestone controllerDmitriy Zaporozhets
2013-07-29Fix typosJohannes Schleifenbaum
2013-06-11cattr_accessor is not threadsafe!Dmitriy Zaporozhets
2013-05-05remove trailing spacesAndrey Kumanyaev
2013-03-15reannotatedDmitriy Zaporozhets
2013-02-18Creating test values moved to beforeAndrew8xx8
2013-02-18Additional tests added to MilestoneAndrew8xx8
2013-02-18Milestone uses StateMachine nowAndrew8xx8