summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
Commit message (Collapse)AuthorAgeFilesLines
* Do not allow to move issue if it has not been persistedmove-issue-section-should-not-be-displayed-in-the-new-issue-form-14489Grzegorz Bizon2016-03-231-1/+2
|
* Merge branch 'master' into issue_12658Douwe Maan2016-03-211-3/+18
|\ | | | | | | | | | | | | | | | | # Conflicts: # app/models/issue.rb # app/views/projects/_home_panel.html.haml # app/views/shared/projects/_project.html.haml # db/schema.rb # spec/models/project_spec.rb
| * Merge branch 'issues-show-performance' into 'master' Robert Speicher2016-03-211-3/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve performance of viewing individual issues This MR does two things: 1. `Issue#related_branches` no longer performs Git operations that aren't needed 2. The output of `Repository#exists?` is now cached and flushed properly Combined these two changes should further cut down the amount of Git operations performed when viewing individual issues (and possibly other pages). See merge request !3296
| | * Tweaked performance of Issue#related_branchesYorick Peterse2016-03-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Requesting the branch names of a repository works even when it's empty, thus there's no need to explicitly check for an empty repository. Removing this check cuts down the amount of Git operations which in turn cuts down request timings a bit. The regular expression used to compare branches was also moved out of the loop so it's created only once.
| * | Merge branch 'master' into feature/issue-moveGrzegorz Bizon2016-03-201-4/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Fix bug where wrong commit ID was being used in a merge request diff to show old image Remove CHANGELOG item that was added during merge resolution Improve the "easy WIP & un-WIP from link" feature Fix specs \#to_branch_name now uses the iid as postfix Add label description in tooltip to labels in issue index and sidebar Easily (un)mark merge request as WIP using link Use specialized system notes when MR is (un)marked as WIP another attempt to fix oauth issue attempting to fix omniauth problem Conflicts: app/assets/javascripts/issuable_form.js.coffee
| * | Merge branch 'master' into feature/issue-moveGrzegorz Bizon2016-03-191-5/+33
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (121 commits) Dedupe labels in labels selector in Dashboard pages Refactor colors and lists Add a safeguard in MergeRequest#compute_diverged_commits_count Fix an issue when the target branch of a MR had been deleted Add avatar to issue and MR pages header Cleanup somce css colors Re-group scss variables Refactor `Todo#target` Fixes issue with filter label missing on labels & milestones Rename `Todo#to_reference` to `Todo#target_reference` Fixed failing tests Updated controller with before_action Fixed other issues based on feedback Fixes issue on dashboard issues Full labels data in JSON Fixed issue with labels dropdown getting wrong labels Update CHANGELOG Use `Note#for_project_snippet?` to skip notes on project snippet Use `Commit#short_id` instead of `Commit.truncate_sha` Reuse `for_commit?` on conditional validations Update schema info comment on todo related files ... Conflicts: app/models/issue.rb db/schema.rb spec/models/issue_spec.rb
| * | | Prevent issue move if issue has been already movedGrzegorz Bizon2016-03-171-0/+12
| | | |
| * | | Add field that references issue this issue has been moved toGrzegorz Bizon2016-03-171-0/+3
| | | |
* | | | Fix group project selection in IssuableFinderDouwe Maan2016-03-201-4/+1
| |_|/ |/| |
* | | \#to_branch_name now uses the iid as postfixissue-branch-iid-postfixZeger-Jan van de Weg2016-03-181-4/+3
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Given the branch name 'mep-mep' with an iid being 1, the current way, master's way, would yield a branch name of 1-mep-mep. The problem for larger projects however would be that a developer might forget what iid the issue was. When this developer would try to tab complete it would: - Or result in 20+ branches possibly - Or start with the wrong digit, try again with digit++ - Would see 20 branches, repeat Thus the obvious way of solving this is letting the dev tab complete on the issue title, which is easier to remember.
* | Restrict access to confidential issuesDouglas Barbosa Alexandre2016-03-171-0/+7
| |
* | Fix specsZeger-Jan van de Weg2016-03-171-0/+1
| | | | | | | | Spinach was right, I was a fool..
* | Incorporate the review and update specZeger-Jan van de Weg2016-03-151-11/+11
| | | | | | | | The feature spec now also tests the absence of the new branch button
* | Incorporate reviewZeger-Jan van de Weg2016-03-151-7/+12
| |
* | Enhance new branch button on an issueZeger-Jan van de Weg2016-03-151-5/+6
| |
* | new-branch-buttonZeger-Jan van de Weg2016-03-151-0/+14
|/
* Backport some changes from EEes_backportValery Sizov2016-01-221-0/+1
|
* Show referenced MRs & Issues only when the current viewer can access themRémy Coutable2016-01-131-2/+2
|
* Removed ORDER BY in "of_group" scopesgroup-issues-sortingYorick Peterse2016-01-071-1/+3
| | | | | These scopes don't care about the order. Removing the explicit "ORDER BY" can speed up the queries by a little bit.
* Don't pluck IDs when getting issues/MRs per groupYorick Peterse2016-01-071-1/+1
| | | | | | | This replaces plucking of IDs with a sub-query, saving the overhead of loading the data in Ruby and then mapping the rows to an Array of IDs. This also scales much better when dealing with a large amount of IDs that would be involved.
* Fix issue related cross-project MRsfix-issue-related-mrsDouwe Maan2015-12-211-1/+1
|
* Use lazy reference extractor to get issue's MRslazy-reference-extractorDouwe Maan2015-12-151-5/+5
|
* Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan2015-12-151-1/+1
|
* display referenced merge requests in issue description with CI statusgsmethells/gitlab-ce-mr-statusesGreg Smethells2015-12-111-0/+8
|
* Autolink first so we don't pick up numeric anchors as issue references.Douwe Maan2015-12-011-5/+2
|
* Recognize issue/MR/snippet/commit links as references.Douwe Maan2015-11-301-2/+9
|
* Only accept open issues and merge requestsZeger-Jan van de Weg2015-10-161-5/+5
|
* Show merge requests which close current issueZeger-Jan van de Weg2015-10-161-0/+10
|
* Re-annotate modelsStan Hu2015-09-061-13/+14
|
* Surround Project.reference_pattern in parenthesis inside other patternsRobert Speicher2015-05-261-1/+1
|
* Add `reference_pattern` to Referable modelsRobert Speicher2015-05-261-2/+12
|
* Implement gfm_reference directly in MentionableRobert Speicher2015-05-261-6/+0
| | | | Except for Note, which still overrides it.
* Add `to_reference` for models that support referencesRobert Speicher2015-05-261-3/+18
| | | | | Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
* Remove old team scopes.Douwe Maan2015-03-151-1/+0
|
* Fix method overlap for issue sortingDmitriy Zaporozhets2015-02-051-0/+1
|
* Add task lists to issues and merge requestsVinnie Okada2014-10-051-0/+1
| | | | | | | | Make the Markdown parser recognize "[x]" or "[ ]" at the beginning of a list item and turn it into a checkbox input. Users who can modify the issue or MR can toggle the checkboxes directly or edit the Markdown to manage the tasks. Task status is also displayed in the MR and issue lists.
* Merge pull request #7754 from Bugagazavr/hooksDmitriy Zaporozhets2014-10-031-0/+4
|\ | | | | More information in merge request hook
| * Hook attributesKirill Zaitsev2014-10-021-0/+4
| |
* | Factor issue and edit MR form label field and submit.Ciro Santilli2014-09-221-0/+5
|/
* Annotate modelsDmitriy Zaporozhets2014-08-251-1/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Migrate issue/mr labels from act_as_taggable to own labelsDmitriy Zaporozhets2014-07-291-3/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Moved some behaviour to one placeJeroen van Baarsen2014-07-251-3/+1
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Remove protected_atrributes gem and start moving to strong paramsDmitriy Zaporozhets2014-06-261-3/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Implements drag and drop upload in creating issuesEarle Bunao & Neil Calabroso2014-05-231-0/+4
|
* Re-annotate modelsDmitriy Zaporozhets2014-04-091-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove author_id_of_changes from appDmitriy Zaporozhets2014-03-251-2/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Feature: reopen closed merge requestDmitriy Zaporozhets2014-02-281-4/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Duplicate opened scope for issueAlexey Elizarov2013-12-171-4/+1
| | | Was it correct?
* Fix dashboard event cachingDrew Blessing2013-12-131-0/+14
|
* Issue-4769 - Unable to update case of labelDrew Blessing2013-10-021-0/+2
| | | | | | | | | | | | | | | | Labels are saved in the database with the case they were originally created with. Before this change if a user created a label with the same text but different case the label would use the original case and no new label would be created in the database. With this change, labels are now case-sensitive. Steps to test: 1. Before this change, create a new issue with a new label "FIxMe" 2. Edit the issue and change the label to "FixMe" 3. Note that the label reverted to "FIxMe" 4. Apply this change 5. Edit the issue again and change the label to "FixMe" Note that the new case was preserved. If you also look in the database in the "tags" table you will see that both labels are present - "FIxMe" and "FixMe".