summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Extract code into IssueBoardEntity"revert_issue_board_entityThong Kuah2018-11-091-0/+14
| | | | This reverts commit 8c126525faba40032244328187ba73a53b6eaf4c.
* Extract code into IssueBoardEntityBrett Walker2018-11-061-14/+0
|
* Rename to assignable_labels_endpoint51620-cannot-add-label-to-issue-from-boardBrett Walker2018-10-311-1/+1
|
* Dynamically store the valid label endpointBrett Walker2018-10-311-1/+2
| | | | | | In order to ensure we have the right endpoint to query for an issue's possible valid labels, we store that url in the issue object that gets passed to the frontend.
* Move issue related_branches to serviceFelipe Artur2018-10-041-18/+0
| | | | | Moves the related_branches method from Issue model to RelatedBranchesService
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+4
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Move Issue#{referenced,closed_by}_merge_requests to serviceSean McGivern2018-08-211-42/+5
| | | | | | | | These methods don't really need to be on the Issue model. Issue#related_branches can also be moved to a service, but we can do that in a separate commit. This commit does not change any behaviour; it just moves code around, renames the service, and refactors the specs.
* Merge branch 'group-todos' into 'master'Sean McGivern2018-08-071-4/+0
|\ | | | | | | | | Group todos See merge request gitlab-org/gitlab-ce!20675
| * Revert "Revert "Merge branch 'ee-5481-epic-todos' into 'master'""Jarka Kadlecová2018-08-021-4/+0
| | | | | | | | This reverts commit 8717c7dad9b5a8fa21ec9a652c54718a6b4c2175.
* | 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
| * Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-modelsgfyoung2018-07-261-0/+2
| | | | | | | | Partially addresses #47424.
* | Resource event modelJan Provaznik2018-08-011-0/+1
|/
* Revert "Merge branch 'ee-5481-epic-todos' into 'master'"Jarka Kadlecová2018-07-111-0/+4
| | | | | This reverts commit 4d9a3f42f1fd3be21555e19872b7121cca65015e, reversing changes made to ecf9c145f6e4d170cd059df88743393d9e63c489.
* [backend] Addressed review commentsJan Provaznik2018-07-031-4/+0
| | | | | | | * Group filtering now includes also issues/MRs from subgroups/subprojects * fixed due_date * Also DRYed todo controller specs
* Fix ambiguous due_date column for Issue scopesImre Farkas2018-06-291-2/+2
|
* Changes tab VUE refactoringFelipe Artur2018-06-211-0/+4
|
* Merge branch 'master' into per-project-pipeline-iidShinya Maeda2018-06-011-6/+11
|\
| * Merge branch '41587-osw-mr-metrics-migration-take-two' into 'master'Grzegorz Bizon2018-05-311-0/+1
| |\ | | | | | | | | | | | | Take two for MR metrics population background migration See merge request gitlab-org/gitlab-ce!19097
| | * Ensure metrics regardless of being imported on MRs41587-osw-mr-metrics-migration-take-twoOswaldo Ferreira2018-05-301-0/+1
| | |
| * | Export assigned issues in iCalendar feedImre Farkas2018-05-311-6/+10
| |/
* | Fix static analysysShinya Maeda2018-05-111-1/+1
| |
* | Decouple to_params from AtomicInternalId concernShinya Maeda2018-05-081-0/+1
|/
* Moves Uniquify counter in the initializerJacopo2018-04-191-1/+1
|
* Uses Uniquify to calculate Issue#suggested_branch_nameJacopo2018-04-191-4/+4
|
* Shows new branch/mr button even when branch existsJacopo2018-04-191-5/+11
|
* Revert the addition of goldiloaderYorick Peterse2018-04-181-1/+1
| | | | | | | | | 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.
* Merge branch 'master' into 'stuartnelson3/gitlab-ce-stn/issue-due-email'Sean McGivern2018-04-101-5/+17
|\ | | | | | | # Conflicts: # db/schema.rb
| * Use Goldiloader for handling N+1 queriesYorick Peterse2018-04-091-1/+1
| | | | | | | | | | | | | | Goldiloader (https://github.com/salsify/goldiloader) can eager load associations automatically. This removes the need for adding "includes" calls in a variety of different places. This also comes with the added benefit of not having to eager load data if it's not used.
| * Show issues of subgroups in group-level issue boardFelipe Artur2018-04-051-3/+9
| |
| * [Rails5] Rename `sort` methods to `sort_by_attribute`blackst0ne2018-04-041-1/+1
| |
| * Merge branch '41967_issue_api_closed_by_info' into 'master'Sean McGivern2018-03-301-0/+6
| |\ | | | | | | | | | | | | Add closed by information to issue API See merge request gitlab-org/gitlab-ce!17042
| | * changed the way of nullifying columshaseeb2018-03-051-0/+5
| | |
| | * closed by field addedhaseeb2018-02-281-0/+1
| | |
* | | Send emails for issues due tomorrowSean McGivern2018-03-301-0/+1
|/ / | | | | | | | | | | Also, refactor the mail sending slightly: instead of one worker sending all emails, create a worker per project with issues due, which will send all emails for that project.
* | Refactor, extract class and improve comments.Andreas Brandl2018-03-161-1/+1
| |
* | More flexible way of internal id generation.Andreas Brandl2018-03-161-0/+2
| |
* | Atomic generation of internal ids for issues.Andreas Brandl2018-03-161-1/+1
| |
* | Deprecate InternalId concern and rename.Andreas Brandl2018-03-161-1/+1
|/
* Port `read_cross_project` ability from EEBob Van Landuyt2018-02-221-1/+12
|
* Remove soft removals related codeYorick Peterse2018-01-081-3/+1
| | | | | | | | | | | | | | This removes all usage of soft removals except for the "pending delete" system implemented for projects. This in turn simplifies all the query plans of the models that used soft removals. Since we don't really use soft removals for anything useful there's no point in keeping it around. This _does_ mean that hard removals of issues (which only admins can do if I'm not mistaken) can influence the "iid" values, but that code is broken to begin with. More on this (and how to fix it) can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/31114. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
* Refactor matchers for background migrationsce-backport=reorder-issuesJarka Kadlecová2018-01-051-1/+1
|
* Refactor RelativePositioning so that it can be used by other classesJarka Kadlecová2018-01-051-0/+6
|
* Cache merged and closed events data in merge_request_metrics tableOswaldo Ferreira2018-01-021-0/+5
|
* Fix migration that removes issues.branch_namefix-remove-branch-name-migrationYorick Peterse2017-12-111-1/+1
|
* Add spec for removing issues.assignee_idSean McGivern2017-12-111-0/+3
| | | | | This migration also needs to be a post-deployment migration, as it removes a column.
* Throttle the number of UPDATEs triggered by touchYorick Peterse2017-12-061-0/+1
| | | | | | | This throttles the number of UPDATE queries that can be triggered by calling "touch" on a Note, Issue, or MergeRequest. For Note objects we also take care of updating the associated "noteable" relation in a smarter way than Rails does by default.
* Create issue and merge request destroy servicesGeorge Andrinopoulos2017-11-251-1/+0
|
* Add issue sidebar and toggle_subscription endpoint in board issues dataOswaldo Ferreira2017-11-201-1/+6
|
* Move update_project_counter_caches? out of issue and merge requestGeorge Andrinopoulos2017-11-111-4/+0
|
* Refactor issuables index actionsJarka Kadlecova2017-11-071-2/+0
|