{"action":"closed","number":2327,"pull_request":{"url":"https://api.github.com/repos/cakephp/docs/pulls/2327","id":28038700,"html_url":"https://github.com/cakephp/docs/pull/2327","diff_url":"https://github.com/cakephp/docs/pull/2327.diff","patch_url":"https://github.com/cakephp/docs/pull/2327.patch","issue_url":"https://api.github.com/repos/cakephp/docs/issues/2327","number":2327,"state":"closed","locked":false,"title":"Add Flash message and redirect in case delete fails","user":{"login":"hakermania","id":131824,"avatar_url":"https://avatars.githubusercontent.com/u/131824?v=3","gravatar_id":"","url":"https://api.github.com/users/hakermania","html_url":"https://github.com/hakermania","followers_url":"https://api.github.com/users/hakermania/followers","following_url":"https://api.github.com/users/hakermania/following{/other_user}","gists_url":"https://api.github.com/users/hakermania/gists{/gist_id}","starred_url":"https://api.github.com/users/hakermania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakermania/subscriptions","organizations_url":"https://api.github.com/users/hakermania/orgs","repos_url":"https://api.github.com/users/hakermania/repos","events_url":"https://api.github.com/users/hakermania/events{/privacy}","received_events_url":"https://api.github.com/users/hakermania/received_events","type":"User","site_admin":false},"body":"With the current tutorial, if a delete operation fails you are met with a cakePHP error message informing you about the delete action not having its own View (because in case of failure not redirection takes place).\r\n\r\nInstead, you should be shown a corresponding flash message and be redirected to the index page.\r\n\r\nThe simplest case to reproduce this is to open the posts/index page in 2 tabs and delete one post from the one tab and then try to delete the same post from the other tab.","created_at":"2015-01-26T16:21:43Z","updated_at":"2015-01-26T18:04:47Z","closed_at":"2015-01-26T18:04:46Z","merged_at":"2015-01-26T18:04:46Z","merge_commit_sha":"cc74fc3aa90bfaa28d7a4d08f6c1c8777952fda4","assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/docs/milestones/2","labels_url":"https://api.github.com/repos/cakephp/docs/milestones/2/labels","id":748921,"number":2,"title":"2.x","description":null,"creator":{"login":"ravage84","id":625761,"avatar_url":"https://avatars.githubusercontent.com/u/625761?v=3","gravatar_id":"","url":"https://api.github.com/users/ravage84","html_url":"https://github.com/ravage84","followers_url":"https://api.github.com/users/ravage84/followers","following_url":"https://api.github.com/users/ravage84/following{/other_user}","gists_url":"https://api.github.com/users/ravage84/gists{/gist_id}","starred_url":"https://api.github.com/users/ravage84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravage84/subscriptions","organizations_url":"https://api.github.com/users/ravage84/orgs","repos_url":"https://api.github.com/users/ravage84/repos","events_url":"https://api.github.com/users/ravage84/events{/privacy}","received_events_url":"https://api.github.com/users/ravage84/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":138,"state":"open","created_at":"2014-08-10T19:12:23Z","updated_at":"2015-01-26T18:04:47Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/docs/pulls/2327/commits","review_comments_url":"https://api.github.com/repos/cakephp/docs/pulls/2327/comments","review_comment_url":"https://api.github.com/repos/cakephp/docs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cakephp/docs/issues/2327/comments","statuses_url":"https://api.github.com/repos/cakephp/docs/statuses/10a472051f010595f4d26bccaff42c269fea9108","head":{"label":"hakermania:master","ref":"master","sha":"10a472051f010595f4d26bccaff42c269fea9108","user":{"login":"hakermania","id":131824,"avatar_url":"https://avatars.githubusercontent.com/u/131824?v=3","gravatar_id":"","url":"https://api.github.com/users/hakermania","html_url":"https://github.com/hakermania","followers_url":"https://api.github.com/users/hakermania/followers","following_url":"https://api.github.com/users/hakermania/following{/other_user}","gists_url":"https://api.github.com/users/hakermania/gists{/gist_id}","starred_url":"https://api.github.com/users/hakermania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakermania/subscriptions","organizations_url":"https://api.github.com/users/hakermania/orgs","repos_url":"https://api.github.com/users/hakermania/repos","events_url":"https://api.github.com/users/hakermania/events{/privacy}","received_events_url":"https://api.github.com/users/hakermania/received_events","type":"User","site_admin":false},"repo":{"id":29868608,"name":"docs","full_name":"hakermania/docs","owner":{"login":"hakermania","id":131824,"avatar_url":"https://avatars.githubusercontent.com/u/131824?v=3","gravatar_id":"","url":"https://api.github.com/users/hakermania","html_url":"https://github.com/hakermania","followers_url":"https://api.github.com/users/hakermania/followers","following_url":"https://api.github.com/users/hakermania/following{/other_user}","gists_url":"https://api.github.com/users/hakermania/gists{/gist_id}","starred_url":"https://api.github.com/users/hakermania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakermania/subscriptions","organizations_url":"https://api.github.com/users/hakermania/orgs","repos_url":"https://api.github.com/users/hakermania/repos","events_url":"https://api.github.com/users/hakermania/events{/privacy}","received_events_url":"https://api.github.com/users/hakermania/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hakermania/docs","description":"CakePHP CookBook","fork":true,"url":"https://api.github.com/repos/hakermania/docs","forks_url":"https://api.github.com/repos/hakermania/docs/forks","keys_url":"https://api.github.com/repos/hakermania/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hakermania/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hakermania/docs/teams","hooks_url":"https://api.github.com/repos/hakermania/docs/hooks","issue_events_url":"https://api.github.com/repos/hakermania/docs/issues/events{/number}","events_url":"https://api.github.com/repos/hakermania/docs/events","assignees_url":"https://api.github.com/repos/hakermania/docs/assignees{/user}","branches_url":"https://api.github.com/repos/hakermania/docs/branches{/branch}","tags_url":"https://api.github.com/repos/hakermania/docs/tags","blobs_url":"https://api.github.com/repos/hakermania/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hakermania/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hakermania/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/hakermania/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hakermania/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/hakermania/docs/languages","stargazers_url":"https://api.github.com/repos/hakermania/docs/stargazers","contributors_url":"https://api.github.com/repos/hakermania/docs/contributors","subscribers_url":"https://api.github.com/repos/hakermania/docs/subscribers","subscription_url":"https://api.github.com/repos/hakermania/docs/subscription","commits_url":"https://api.github.com/repos/hakermania/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/hakermania/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/hakermania/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/hakermania/docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/hakermania/docs/contents/{+path}","compare_url":"https://api.github.com/repos/hakermania/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hakermania/docs/merges","archive_url":"https://api.github.com/repos/hakermania/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hakermania/docs/downloads","issues_url":"https://api.github.com/repos/hakermania/docs/issues{/number}","pulls_url":"https://api.github.com/repos/hakermania/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/hakermania/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/hakermania/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hakermania/docs/labels{/name}","releases_url":"https://api.github.com/repos/hakermania/docs/releases{/id}","created_at":"2015-01-26T16:00:39Z","updated_at":"2015-01-26T16:14:15Z","pushed_at":"2015-01-26T16:14:15Z","git_url":"git://github.com/hakermania/docs.git","ssh_url":"git@github.com:hakermania/docs.git","clone_url":"https://github.com/hakermania/docs.git","svn_url":"https://github.com/hakermania/docs","homepage":"http://book.cakephp.org","size":47866,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"747ba60aef7e7605b4f05bce12886fde12000752","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":1514950,"name":"docs","full_name":"cakephp/docs","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/docs","description":"CakePHP CookBook","fork":false,"url":"https://api.github.com/repos/cakephp/docs","forks_url":"https://api.github.com/repos/cakephp/docs/forks","keys_url":"https://api.github.com/repos/cakephp/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/docs/teams","hooks_url":"https://api.github.com/repos/cakephp/docs/hooks","issue_events_url":"https://api.github.com/repos/cakephp/docs/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/docs/events","assignees_url":"https://api.github.com/repos/cakephp/docs/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/docs/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/docs/tags","blobs_url":"https://api.github.com/repos/cakephp/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/docs/languages","stargazers_url":"https://api.github.com/repos/cakephp/docs/stargazers","contributors_url":"https://api.github.com/repos/cakephp/docs/contributors","subscribers_url":"https://api.github.com/repos/cakephp/docs/subscribers","subscription_url":"https://api.github.com/repos/cakephp/docs/subscription","commits_url":"https://api.github.com/repos/cakephp/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/docs/issues/comments/{number}","contents_url":"https://api.github.com/repos/cakephp/docs/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/docs/merges","archive_url":"https://api.github.com/repos/cakephp/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/docs/downloads","issues_url":"https://api.github.com/repos/cakephp/docs/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/docs/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/docs/releases{/id}","created_at":"2011-03-23T04:54:13Z","updated_at":"2015-01-26T18:04:47Z","pushed_at":"2015-01-26T18:04:47Z","git_url":"git://github.com/cakephp/docs.git","ssh_url":"git@github.com:cakephp/docs.git","clone_url":"https://github.com/cakephp/docs.git","svn_url":"https://github.com/cakephp/docs","homepage":"http://book.cakephp.org","size":47866,"stargazers_count":441,"watchers_count":441,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1043,"mirror_url":null,"open_issues_count":18,"forks":1043,"open_issues":18,"watchers":441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/docs/pulls/2327"},"html":{"href":"https://github.com/cakephp/docs/pull/2327"},"issue":{"href":"https://api.github.com/repos/cakephp/docs/issues/2327"},"comments":{"href":"https://api.github.com/repos/cakephp/docs/issues/2327/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/docs/pulls/2327/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/docs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cakephp/docs/pulls/2327/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/docs/statuses/10a472051f010595f4d26bccaff42c269fea9108"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":21,"deletions":4,"changed_files":3}}