gitlab-org--gitlab-foss/app/controllers/projects
Douwe Maan d5c715c9cc Merge branch 'lock_for_issuable' into 'master'
Optimistic locking for Issue and Merge Requests

## What does this MR do?

It implements Optimistic Locking http://api.rubyonrails.org/classes/ActiveRecord/Locking/Optimistic.html for Issues and MRs but in a bit custom way. We use it for cases when either title or description field is involved in the change.

## Why was this MR needed?

We have to prevent data losing.

## What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab-ce/issues/12940

## Screenshots (if relevant)

![Screen_Shot_2016-07-09_at_15.33.02](/uploads/2efbe547a12fda93bce347fa711438d7/Screen_Shot_2016-07-09_at_15.33.02.png)


See merge request !5146
2016-07-12 17:52:51 +00:00
..
application_controller.rb Unify check branch name exist 2016-06-20 21:44:21 +02:00
artifacts_controller.rb Just give regular 404, feedback: 2016-07-11 20:04:46 +08:00
avatars_controller.rb Add workhorse controller and API helpers 2016-06-06 13:16:30 +02:00
badges_controller.rb Use default branch when displaying list of badges 2016-04-06 19:56:35 +02:00
blame_controller.rb Move blame group logic to dedicated class 2016-01-28 14:49:21 +01:00
blob_controller.rb Represent DiffRefs as proper class instead of tuple array 2016-07-06 18:50:58 -04:00
branches_controller.rb Update tests to match new Code tab logic 2016-06-03 10:13:40 +03:00
builds_controller.rb Remove keep_artifacts from BuildsController 2016-06-13 11:03:30 +01:00
commit_controller.rb DRY up diff_for_path actions 2016-07-08 13:53:51 +01:00
commits_controller.rb API support for the 'since' and 'until' operators on commit requests 2016-04-29 09:26:52 +02:00
compare_controller.rb DRY up diff_for_path actions 2016-07-08 13:53:51 +01:00
container_registry_controller.rb Verify if registry is enabled in registry 2016-05-18 12:28:48 -05:00
deploy_keys_controller.rb Project deploy keys updated UI 2016-04-25 16:26:41 +01:00
environments_controller.rb Improve forms and specs 2016-06-15 12:07:06 +02:00
find_file_controller.rb Enable Style/EndOfLine Rubocop style cop 2016-05-30 10:35:37 +02:00
forks_controller.rb Use the configured Kaminari "per page" default 2016-03-19 17:37:54 -04:00
git_http_controller.rb Correct access control flow for Git HTTP requests. 2016-07-05 16:54:22 -05:00
graphs_controller.rb API support for the 'since' and 'until' operators on commit requests 2016-04-29 09:26:52 +02:00
group_links_controller.rb Use guard clause to check ability to share project 2016-04-19 12:15:56 +02:00
hooks_controller.rb Add Admin UI to enable Wiki Page events webhook in projects 2016-05-30 16:12:50 -03:00
imports_controller.rb removed transaction stuff 2016-05-13 13:12:21 +02:00
issues_controller.rb Optimistic locking for Issue and Merge Requests 2016-07-12 19:52:14 +03:00
labels_controller.rb add :set_priorities to :authorize_admin_labels! 2016-06-06 11:59:49 -05:00
merge_requests_controller.rb Optimistic locking for Issue and Merge Requests 2016-07-12 19:52:14 +03:00
milestones_controller.rb Merge branch 'meinac/gitlab-ce-change_deprecated_render_usage' 2016-05-18 12:48:23 -05:00
network_controller.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
notes_controller.rb Display new diff notes and allow creation through the web interface 2016-07-06 18:51:00 -04:00
pipelines_controller.rb Rename commit_data in Pipeline to commit 2016-06-21 14:43:37 +02:00
project_members_controller.rb Exclude requesters from Project#members, Group#members and User#members 2016-07-01 17:44:46 +02:00
protected_branches_controller.rb Use the `GLDropdown` component to select protected branches. 2016-07-07 10:07:05 +05:30
raw_controller.rb Add workhorse controller and API helpers 2016-06-06 13:16:30 +02:00
refs_controller.rb Make it possible to switch ref in badges view 2016-04-06 19:56:34 +02:00
releases_controller.rb Refactor release code a bit 2015-11-09 15:30:50 +01:00
repositories_controller.rb Add workhorse controller and API helpers 2016-06-06 13:16:30 +02:00
runner_projects_controller.rb Use Ability to check pre-requisite. Change back to 403 because: 2016-06-29 19:04:06 +08:00
runners_controller.rb Rename according to: 2016-06-20 16:52:05 +08:00
services_controller.rb add slack notifications for wiki pages 2016-04-20 08:25:40 +08:00
snippets_controller.rb Fix snippets comments not displayed 2016-07-01 18:39:19 +02:00
tags_controller.rb Add sorting dropdown to tag page 2016-06-16 13:33:29 -04:00
todos_controller.rb Cache todos pending/done dashboard query counts 2016-07-12 18:57:52 +02:00
tree_controller.rb Fix specs and behavior for LFS files 2015-12-18 16:14:12 +01:00
triggers_controller.rb Make the CI permission model simpler 2016-02-02 09:18:08 +01:00
uploads_controller.rb Address feedback 2016-03-22 00:09:20 +01:00
variables_controller.rb Project variables UI 2016-05-16 10:21:51 +01:00
wikis_controller.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00