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
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
2013-02-18Merge Request uses StateMachine nowAndrew8xx8
2013-01-03Rspec models Milestone, Commit, UsersProjectDmitriy Zaporozhets
2013-01-03Fixed tests. added test for gitlab_ci_service modelDmitriy Zaporozhets
2012-11-19Annotated. schema updatedDmitriy Zaporozhets
2012-11-13Remove backward compatibility of factories.Vincent Bonmalais
2012-10-09AnnotatedDmitriy Zaporozhets
2012-10-09tests fixAndrey Kumanyaev
2012-09-26set activerecord whitelist_attributes to trueNihad Abbasov
2012-09-05add validations for boolean attributesNihad Abbasov
2012-08-29Remove annotations from specsRobert Speicher
2012-08-29Simple model spec changes made possible by new factoriesRobert Speicher
2012-08-25Minor cleanup to Milestone model and specRobert Speicher
Back-ported from my still-in-progress major cleanup.
2012-08-11Fully embrace Ruby 1.9 hash syntaxRobert Speicher
Didn't bother with files in db/, config/, or features/
2012-06-26Reannotatedrandx
2012-04-09first pack of tests for milestonesDmitriy Zaporozhets
2012-04-09Milestone basic scaffoldDmitriy Zaporozhets