summaryrefslogtreecommitdiff
path: root/app/models/milestone.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42Robert Speicher2021-01-201-0/+1
|
* Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42GitLab Bot2020-12-171-0/+4
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-191-2/+2
|
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-211-0/+4
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-44/+5
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-177/+18
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-281-5/+12
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-141-3/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-051-0/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-291-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-141-2/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-031-0/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-101-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-031-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-151-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-071-1/+1
|
* Add #to_ability_name to Project & MilestoneDylan Griffith2019-10-231-0/+4
| | | | This will be used later for search filtering.
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-171-2/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-161-6/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Use delete_all for deleting eventsevents-delete-allJan Provaznik2019-09-071-1/+1
| | | | | | Because we don't have any destroy callbacks (or other logic triggered on event destroy), there is no reason for deleting events inefficiently one by one, instead we can use :delete_all.
* Add service to transfer group milestonesEugenia Grieff2019-09-041-0/+1
| | | | | | | | | | | - Add new service that transfers milestones from a group to a project - Include new service in Projects transfer service - Include FromUnion module in Milestone model to use in transfer service - Add specs for new milestones service - Add specs for transferring milestones in project transfer service
* Create an event on epic actionsJan Provaznik2019-09-031-0/+1
| | | | | Creates new event when an epic is created, closed, reopened or commented.
* Added relationships between Release and MilestoneEtienne Baqué2019-09-031-0/+7
| | | | | | Modified schema via migrations. Added one-to-one relationship between the two models. Added changelog file
* Revert "Merge branch ↵Winnie Hellmann2019-08-091-2/+2
| | | | | | '4221-board-milestone-should-persist-any-none-properly-ce' into 'master'" This reverts merge request !30613
* Port CE changes from EEcharlie ablett2019-07-311-2/+2
| | | | | - DB migration of board milestone values - issue finder & spec updates
* Further remove code branches by database typeAndreas Brandl2019-07-291-23/+4
| | | | | | | | 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.
* Change query to work on mysql as well. Also set entire date because setting ↵Luke Picciau2019-05-311-0/+11
| | | | only the year can trip 'start_date_should_be_less_than_due_date'
* Externalize strings in app/modelsMartin Wortschack2019-04-121-5/+5
| | | | - Update PO file
* Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas2019-03-281-1/+1
|
* Only count active milestones as startedSean McGivern2019-03-191-0/+1
| | | | | The Upcoming milestone filter only considers active milestones, but the Started one included closed milestones, too. This was inconsistent.
* Fix upcoming milestone for far-future due datesSean McGivern2019-03-061-2/+2
| | | | | | | | | | | | | | | `NOW()` is a timestamp, with a maximum year (in Postgres) 294276 AD. `milestones.due_date` is a date with a maximum year (again, in Postgres) of 5874897 AD. If there is a due date past the limit for the timestamp, comparing the two will fail with: ERROR: date out of range for timestamp We also need to add validations to keep the due dates sensible, but for now we can simply use `CURRENT_DATE` instead of `NOW()`, so the types match with no coercion needed.
* Merge branch '54905-milestone-search' into 'master'Sean McGivern2019-01-251-1/+12
|\ | | | | | | | | | | | | Resolve "Milestone search" Closes #54905 See merge request gitlab-org/gitlab-ce!24265
| * Adds milestone searchJacopo2019-01-241-1/+12
| | | | | | | | | | | | | | Adds to search ILIKE search for milestones title in: - Milestones dashboard - Group milestones page - Project milestones page
* | Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-241-1/+1
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix MilestonesFinder to pass relations to scopeHeinrich Lee Yu2019-01-121-4/+3
| | | | | | | Instead of querying relations into ids we just pass them to the model scope because the scope supports it now. Also changes other calls to `Milestone.for_projects_and_groups`
* Merge branch '53431-fix-upcoming-milestone-filter-for-groups' into 'master'Sean McGivern2019-01-111-13/+26
|\ | | | | | | | | | | | | Add group milestones in upcoming filter Closes #53431 See merge request gitlab-org/gitlab-ce!23098
| * Refactor Milestone.for_projects_and_groupsHeinrich Lee Yu2018-12-311-6/+7
| | | | | | | | | | Refactored to use Rails 5 ActiveRecord `or` so that it can handle ids, objects, array of objects, or relations properly.
| * Add group milestones in upcoming filterHeinrich Lee Yu2018-12-311-8/+20
| |
* | Merge branch 'ccr/49289_milestone_link' into 'master'Mike Greiling2019-01-021-1/+5
|\ \ | |/ |/| | | | | | | | | Add project milestone link Closes #49289 See merge request gitlab-org/gitlab-ce!22552
| * Add project milestone link to dashboard milestonesccr/49289_milestone_linkFatih Acet2018-12-201-1/+5
| | | | | | | | | | | | One of the steps to deprecate dashboard milestones. Links do dashboard milestone are replaced with links for each project milestone
* | Add % prefix to milestone reference link textHeinrich Lee Yu2018-12-211-1/+1
|/ | | | Also update banzai tests to use reference_link_text
* Merge branch 'rails5-deprecated-uniq' into 'master'Robert Speicher2018-10-291-1/+1
|\ | | | | | | | | Replace deprecated uniq on a Relation with distinct See merge request gitlab-org/gitlab-ce!22625
| * Replace deprecated uniq on a Relation with distinctJasper Maes2018-10-261-1/+1
| |
* | Moving state_count to Milestone model and related testsEagllus2018-10-171-0/+16
|/ | | | | By moving and improving state_count the functions in GlobalMilestone are no longer used.
* Don't use MilestoneFinder for group milestonesDouglas Barbosa Alexandre2018-09-181-1/+4
| | | | | | This refactors the DashboardGroupMilestone model so that it no longer uses the MilestoneFinder, instead using methods defined on the Milestone model directly.
* Fix missing and duplicates on project milestone listing pageOswaldo Ferreira2018-08-071-16/+19
|
* Merge branch 'frozen-string-enable-app-models' into 'master'Rémy Coutable2018-08-021-0/+2
|\ | | | | | | | | Enable frozen string in app/models/*.rb See merge request gitlab-org/gitlab-ce!20851