summaryrefslogtreecommitdiff
path: root/app/models/milestone.rb
Commit message (Collapse)AuthorAgeFilesLines
* Native group milestonesFelipe Artur2017-07-071-3/+69
|
* Added Cop to blacklist the use of `dependent:`Yorick Peterse2017-07-061-1/+1
| | | | | | | | 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).
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-5/+5
|
* Improve method names and add more specsFelipe Artur2017-06-161-1/+1
|
* Order merge requests by priorityFelipe Artur2017-06-161-1/+1
|
* Remove Drag and drop and sorting from milestone viewFelipe Artur2017-06-161-32/+0
|
* Fix: Milestone - Participants list is showing duplicate assigneesfix_duplicated_assignees_on_milestone_pageValery Sizov2017-05-291-1/+1
|
* Backport of multiple_assignees_feature [ci skip]Valery Sizov2017-05-041-1/+4
|
* Removed `Milestone#is_empty?`Jacopo2017-04-071-4/+0
| | | | Removed `Milestone#is_empty?` because is not used anymore in the codebase
* Enable Style/Proc cop for rubocopmhasbini2017-04-021-1/+1
|
* Add dropdown sort to project milestonesGeorge Andrinopoulos2017-03-241-0/+15
|
* Allow filtering by all started milestonesbetter-priority-sortingSean McGivern2017-03-151-0/+1
|
* Speed up group milestone index by passing group_id to IssuesFinderAdam Niedzielski2017-01-061-0/+4
|
* Fix cross-project references copy to include the project referencefix/cross-project-ref-pathJames Lopez2017-01-031-2/+2
| | | | Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
* Milestoneish SQL performance partially improved and memoizedjej-memoize-milestoneish-visible-to-userJames Edwards-Jones2016-12-201-0/+4
| | | | Memoize Milestoneish#issues_visible_to_user and counts to reduce lookups Milstoneish SQL optimised with project, but still slow on GlobalMilestone
* Add shorthand support to gitlab markdown referencesOswaldo Ferreira2016-12-021-8/+5
|
* Add a starting date to milestonesmilestone_start_dateValery Sizov2016-11-231-18/+7
|
* Add markdown cache columns to the database, but don't use them yetNick Thomas2016-10-071-0/+4
| | | | | | | | | | | | 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.
* Allowing ">" to be used for Milestone models's title and storing the value ↵Makoto Scott-Hinkle2016-09-291-1/+5
| | | | | | | | | | | | | | | | 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.
* use has_many relationship with eventsJames Lopez2016-07-011-1/+1
|
* fixing events for import/exportJames Lopez2016-06-291-0/+1
|
* Address Yorick's feedbackeReGeBe/gitlab-ce-feature/milestone-mdRémy Coutable2016-05-181-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge remote-tracking branch 'origin/master' into ↵Rémy Coutable2016-05-181-17/+16
|\ | | | | | | | | | | eReGeBe/gitlab-ce-feature/milestone-md Signed-off-by: Rémy Coutable <remy@rymai.me>
| * Return a relation with Postgres17227-upcoming-milestone-is-confusing-when-projects-have-different-milestonesSean McGivern2016-05-161-1/+1
| | | | | | | | | | | | | | | | | | 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.
| * Make upcoming milestone work across projectsSean McGivern2016-05-161-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
| * Merge branch 'remove-annotate-gem' into 'master' Yorick Peterse2016-05-101-15/+0
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Merge branch 'issue_15394' into 'master' Rémy Coutable2016-05-091-0/+4
| |\ \ | | |/ | |/| | | | | | | | | | | | | Sanitize milestones and labels titles fixes #15394 See merge request !4046
| | * Make model sanitization methods one linersFelipe Artur2016-05-091-3/+2
| | |
| | * Sanitize milestones and label titlesissue_15394Felipe Artur2016-05-051-0/+5
| | |
| * | Annotate the modelsZeger-Jan van de Weg2016-05-061-2/+2
| |/
* | Matching version-like expressions as `milestone_name`s instead of ↵Alejandro Rodríguez2016-04-201-3/+8
| | | | | | | | | | | | | | `milestone_iid`s The changes also account for %2.1. being matched as milestone_name = "2.1" without the word-separating dot.
* | Consistently using iid when treating milestones as referrablesAlejandro Rodríguez2016-04-201-7/+18
| | | | | | | | Also, addint a suffix to the reference text when the milestone is in another project
* | Implementing special GitLab markdown reference for milestonesAlejandro Rodríguez2016-04-201-7/+35
|/ | | | | Using the syntax proposed in #13829 [project_reference]%(milestone_id | milestone_name) to get a link to the referred milestone.
* Merge branch 'routing' into 'master' Robert Speicher2016-04-011-1/+1
|\ | | | | | | | | | | | | Added & use Gitlab::Routing for URL helpers Extracted from !3389 See merge request !3486
| * Added & use Gitlab::Routing for URL helpersroutingYorick Peterse2016-04-011-1/+1
| | | | | | | | | | | | | | Rails' "url_helpers" method creates an anonymous Module (which a bunch of methods) on every call. By caching the output of this method in a dedicated method we can shave off about 10 seconds of loading time for an issue with around 200 comments.
* | Memoize reference_pattern/link_reference_patternmemoize-pattern-methodsYorick Peterse2016-04-011-1/+1
|/ | | | | These methods are called quite often in loops so by memoizing their output we can reduce timings a bit.
* Fix Milestone.upcomingDouwe Maan2016-03-231-1/+1
|
* Restrict access for confidential issues on milestone viewDouglas Barbosa Alexandre2016-03-171-2/+2
|
* fixes issuestiagonbotelho2016-03-121-3/+2
|
* fixes issues for mr acceptancetiagonbotelho2016-03-121-1/+6
|
* implements upcoming filter in milstonestiagonbotelho2016-03-121-0/+1
|
* Use ILIKE/LIKE for searching milestonesYorick Peterse2016-03-111-2/+11
|
* Updates from last code review.issue_13621_2Rubén Dávila2016-03-061-25/+2
|
* Little refactor for milestone_remaining_days helper from last code review.issue_13623Rubén Dávila2016-03-011-2/+1
|
* Show days remaining instead of elapsed time for Milestone.Rubén Dávila2016-03-011-10/+4
|
* Don't repeat labels listed on Labels tab.issue_13621Rubén Dávila2016-02-221-1/+1
|
* Merge branch 'issue_3276' into 'master' Jacob Schatz2016-02-191-0/+14
|\ | | | | | | | | | | | | Labels should be visible in milestone view Closes #3276 See merge request !2599
| * Some refactor for CSS after code review.Rubén Dávila2016-02-031-0/+3
| |
| * Add specs.Rubén Dávila2016-02-021-0/+1
| |