{"action":"created","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8794","repository_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8794/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8794/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8794/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/8794","id":156693075,"number":8794,"title":"Unable to stop current pledge","user":{"login":"QuincyLarson","id":985197,"avatar_url":"https://avatars.githubusercontent.com/u/985197?v=3","gravatar_id":"","url":"https://api.github.com/users/QuincyLarson","html_url":"https://github.com/QuincyLarson","followers_url":"https://api.github.com/users/QuincyLarson/followers","following_url":"https://api.github.com/users/QuincyLarson/following{/other_user}","gists_url":"https://api.github.com/users/QuincyLarson/gists{/gist_id}","starred_url":"https://api.github.com/users/QuincyLarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuincyLarson/subscriptions","organizations_url":"https://api.github.com/users/QuincyLarson/orgs","repos_url":"https://api.github.com/users/QuincyLarson/repos","events_url":"https://api.github.com/users/QuincyLarson/events{/privacy}","received_events_url":"https://api.github.com/users/QuincyLarson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-25T08:37:34Z","updated_at":"2016-05-25T20:50:10Z","closed_at":null,"body":"Campers used to be able to delete pledges, but this important functionality somehow recently broke.\r\n\r\nSteps to reproduce:\r\n1. Go to https://www.freecodecamp.com/commit and create a pledge\r\n2. Return to https://www.freecodecamp.com/commit and attempt to end your pledge by clicking \"stop my current pledge\"\r\nYou will get an error.\r\n\r\n![](https://www.evernote.com/l/Ar-Ni4Q38ypFL7varpW4Ma_ujSSVMqGcyQoB/image.png)\r\n\r\nThe way we are fixing this manually is by adding a \"formerUserId\" property set to the value of \"userId\", and then setting \"userId\" itself null.\r\n\r\n```\r\n{\r\n  \"_id\": ObjectId(\"5744f9ab97db93a979*******\"),\r\n  \"amount\": 5,\r\n  \"dateStarted\": new Date(1464138155991),\r\n  \"isCompleted\": false,\r\n  \"isOrphaned\": true,\r\n  \"formerUserId\": ObjectId(\"55e1d89a11ab92c579******\"),\r\n  \"userId\": null,\r\n  \"goal\": \"Front End Development Certification\",\r\n  \"name\": \"women who code\",\r\n  \"displayName\": \"Women Who Code\",\r\n  \"donateUrl\": \"https://www.womenwhocode.com/donate\",\r\n  \"description\": \"Women Who Code (WWCode) is a global leader in propelling women in the tech industry.\",\r\n  \"imgAlt\": \"Four women sitting in a classroom together learning to code.\",\r\n  \"imgUrl\": \"//i.imgur.com/tKUi6Rf.jpg\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/comments/221703144","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/8794#issuecomment-221703144","issue_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/8794","id":221703144,"user":{"login":"gasperno","id":7889179,"avatar_url":"https://avatars.githubusercontent.com/u/7889179?v=3","gravatar_id":"","url":"https://api.github.com/users/gasperno","html_url":"https://github.com/gasperno","followers_url":"https://api.github.com/users/gasperno/followers","following_url":"https://api.github.com/users/gasperno/following{/other_user}","gists_url":"https://api.github.com/users/gasperno/gists{/gist_id}","starred_url":"https://api.github.com/users/gasperno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasperno/subscriptions","organizations_url":"https://api.github.com/users/gasperno/orgs","repos_url":"https://api.github.com/users/gasperno/repos","events_url":"https://api.github.com/users/gasperno/events{/privacy}","received_events_url":"https://api.github.com/users/gasperno/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T20:50:10Z","updated_at":"2016-05-25T20:50:10Z","body":"I need a clarification regarding the stop-commit functionality. I am consolidating the two steps. Correct me if I am wrong.\r\nStep 1: When I hit stop my current pledge, the database table modifies a particular document in 'pledge' collection. Modified fields would be formerUserId and [few other fields](https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/server/boot/commit.js#L212).\r\nand then throw a flash message that displays\r\n\r\nStep 2:\r\n+ You have successfully unpledged and flash message comes after redirect to freecodecamp/<username>\r\n+ Error message/ Failure Message and flash message comes after redirect(? or not) to freecodecamp/<username>\r\n"}}
{"actor":{"display_login":"gasperno"}}