{"action":"created","comment":{"url":"https://api.github.com/repos/pretix/pretix/pulls/comments/150205715","pull_request_review_id":75722231,"id":150205715,"diff_hunk":"@@ -106,6 +106,132 @@ Endpoints\n    :statuscode 401: Authentication failure\n    :statuscode 403: The requested organizer/event does not exist **or** you have no permission to view this resource.\n \n+.. http:post:: /api/v1/organizers/(organizer)/events/(event)/quotas/\n+\n+   Creates a new quota\n+\n+   **Example request**:\n+\n+   .. sourcecode:: http\n+\n+      POST /api/v1/organizers/bigevents/events/sampleconf/quotas/1/ HTTP/1.1","path":"doc/api/resources/quotas.rst","position":21,"original_position":21,"commit_id":"2055de6a8eb2fa69bd6e6fd96f97fcea74bc8dae","original_commit_id":"2055de6a8eb2fa69bd6e6fd96f97fcea74bc8dae","user":{"login":"turegjorup","id":5631988,"avatar_url":"https://avatars2.githubusercontent.com/u/5631988?v=4","gravatar_id":"","url":"https://api.github.com/users/turegjorup","html_url":"https://github.com/turegjorup","followers_url":"https://api.github.com/users/turegjorup/followers","following_url":"https://api.github.com/users/turegjorup/following{/other_user}","gists_url":"https://api.github.com/users/turegjorup/gists{/gist_id}","starred_url":"https://api.github.com/users/turegjorup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turegjorup/subscriptions","organizations_url":"https://api.github.com/users/turegjorup/orgs","repos_url":"https://api.github.com/users/turegjorup/repos","events_url":"https://api.github.com/users/turegjorup/events{/privacy}","received_events_url":"https://api.github.com/users/turegjorup/received_events","type":"User","site_admin":false},"body":"Correct - and body shouldn't contain `\"id\": 1,` - I'll have a word with the copy-paste monkey 🙈 ","created_at":"2017-11-10T10:51:29Z","updated_at":"2017-11-10T10:51:29Z","html_url":"https://github.com/pretix/pretix/pull/657#discussion_r150205715","pull_request_url":"https://api.github.com/repos/pretix/pretix/pulls/657","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/pretix/pretix/pulls/comments/150205715"},"html":{"href":"https://github.com/pretix/pretix/pull/657#discussion_r150205715"},"pull_request":{"href":"https://api.github.com/repos/pretix/pretix/pulls/657"}},"in_reply_to_id":150055867},"pull_request":{"url":"https://api.github.com/repos/pretix/pretix/pulls/657","id":149572307,"html_url":"https://github.com/pretix/pretix/pull/657","diff_url":"https://github.com/pretix/pretix/pull/657.diff","patch_url":"https://github.com/pretix/pretix/pull/657.patch","issue_url":"https://api.github.com/repos/pretix/pretix/issues/657","number":657,"state":"open","locked":false,"title":"[WIP] Added quotas API write methods","user":{"login":"turegjorup","id":5631988,"avatar_url":"https://avatars2.githubusercontent.com/u/5631988?v=4","gravatar_id":"","url":"https://api.github.com/users/turegjorup","html_url":"https://github.com/turegjorup","followers_url":"https://api.github.com/users/turegjorup/followers","following_url":"https://api.github.com/users/turegjorup/following{/other_user}","gists_url":"https://api.github.com/users/turegjorup/gists{/gist_id}","starred_url":"https://api.github.com/users/turegjorup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turegjorup/subscriptions","organizations_url":"https://api.github.com/users/turegjorup/orgs","repos_url":"https://api.github.com/users/turegjorup/repos","events_url":"https://api.github.com/users/turegjorup/events{/privacy}","received_events_url":"https://api.github.com/users/turegjorup/received_events","type":"User","site_admin":false},"body":"Thank you for your advice in #654. \r\n\r\nThis is my first attempt at implementing create/update/delete for the `quotas` endpoint. There are a couple of things I'm unsure of, so I have marked the PR as WIP:\r\n\r\n* I haven't found any validation rules for quotas besides the model validation - is this correct?\r\n* I have added a couple of tests, but I'm unsure of what the edge cases would be, so this could definitely be expanded upon.\r\n\r\nCode checks and unit tests _should_ pass.\r\n","created_at":"2017-10-30T16:31:17Z","updated_at":"2017-11-10T10:51:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bfdba12e6d464d018856dcf2d708c100e51ac59","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pretix/pretix/pulls/657/commits","review_comments_url":"https://api.github.com/repos/pretix/pretix/pulls/657/comments","review_comment_url":"https://api.github.com/repos/pretix/pretix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pretix/pretix/issues/657/comments","statuses_url":"https://api.github.com/repos/pretix/pretix/statuses/2055de6a8eb2fa69bd6e6fd96f97fcea74bc8dae","head":{"label":"aakb:feature/quatas_api_write","ref":"feature/quatas_api_write","sha":"2055de6a8eb2fa69bd6e6fd96f97fcea74bc8dae","user":{"login":"aakb","id":111706,"avatar_url":"https://avatars2.githubusercontent.com/u/111706?v=4","gravatar_id":"","url":"https://api.github.com/users/aakb","html_url":"https://github.com/aakb","followers_url":"https://api.github.com/users/aakb/followers","following_url":"https://api.github.com/users/aakb/following{/other_user}","gists_url":"https://api.github.com/users/aakb/gists{/gist_id}","starred_url":"https://api.github.com/users/aakb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakb/subscriptions","organizations_url":"https://api.github.com/users/aakb/orgs","repos_url":"https://api.github.com/users/aakb/repos","events_url":"https://api.github.com/users/aakb/events{/privacy}","received_events_url":"https://api.github.com/users/aakb/received_events","type":"Organization","site_admin":false},"repo":{"id":108266732,"name":"pretix","full_name":"aakb/pretix","owner":{"login":"aakb","id":111706,"avatar_url":"https://avatars2.githubusercontent.com/u/111706?v=4","gravatar_id":"","url":"https://api.github.com/users/aakb","html_url":"https://github.com/aakb","followers_url":"https://api.github.com/users/aakb/followers","following_url":"https://api.github.com/users/aakb/following{/other_user}","gists_url":"https://api.github.com/users/aakb/gists{/gist_id}","starred_url":"https://api.github.com/users/aakb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakb/subscriptions","organizations_url":"https://api.github.com/users/aakb/orgs","repos_url":"https://api.github.com/users/aakb/repos","events_url":"https://api.github.com/users/aakb/events{/privacy}","received_events_url":"https://api.github.com/users/aakb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aakb/pretix","description":"Ticket shop application for conferences, festivals, concerts, tech events, shows, exhibitions, workshops, barcamps, etc.","fork":true,"url":"https://api.github.com/repos/aakb/pretix","forks_url":"https://api.github.com/repos/aakb/pretix/forks","keys_url":"https://api.github.com/repos/aakb/pretix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aakb/pretix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aakb/pretix/teams","hooks_url":"https://api.github.com/repos/aakb/pretix/hooks","issue_events_url":"https://api.github.com/repos/aakb/pretix/issues/events{/number}","events_url":"https://api.github.com/repos/aakb/pretix/events","assignees_url":"https://api.github.com/repos/aakb/pretix/assignees{/user}","branches_url":"https://api.github.com/repos/aakb/pretix/branches{/branch}","tags_url":"https://api.github.com/repos/aakb/pretix/tags","blobs_url":"https://api.github.com/repos/aakb/pretix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aakb/pretix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aakb/pretix/git/refs{/sha}","trees_url":"https://api.github.com/repos/aakb/pretix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aakb/pretix/statuses/{sha}","languages_url":"https://api.github.com/repos/aakb/pretix/languages","stargazers_url":"https://api.github.com/repos/aakb/pretix/stargazers","contributors_url":"https://api.github.com/repos/aakb/pretix/contributors","subscribers_url":"https://api.github.com/repos/aakb/pretix/subscribers","subscription_url":"https://api.github.com/repos/aakb/pretix/subscription","commits_url":"https://api.github.com/repos/aakb/pretix/commits{/sha}","git_commits_url":"https://api.github.com/repos/aakb/pretix/git/commits{/sha}","comments_url":"https://api.github.com/repos/aakb/pretix/comments{/number}","issue_comment_url":"https://api.github.com/repos/aakb/pretix/issues/comments{/number}","contents_url":"https://api.github.com/repos/aakb/pretix/contents/{+path}","compare_url":"https://api.github.com/repos/aakb/pretix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aakb/pretix/merges","archive_url":"https://api.github.com/repos/aakb/pretix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aakb/pretix/downloads","issues_url":"https://api.github.com/repos/aakb/pretix/issues{/number}","pulls_url":"https://api.github.com/repos/aakb/pretix/pulls{/number}","milestones_url":"https://api.github.com/repos/aakb/pretix/milestones{/number}","notifications_url":"https://api.github.com/repos/aakb/pretix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aakb/pretix/labels{/name}","releases_url":"https://api.github.com/repos/aakb/pretix/releases{/id}","deployments_url":"https://api.github.com/repos/aakb/pretix/deployments","created_at":"2017-10-25T12:27:21Z","updated_at":"2017-10-25T12:27:24Z","pushed_at":"2017-11-09T08:57:10Z","git_url":"git://github.com/aakb/pretix.git","ssh_url":"git@github.com:aakb/pretix.git","clone_url":"https://github.com/aakb/pretix.git","svn_url":"https://github.com/aakb/pretix","homepage":"https://pretix.eu","size":16342,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"pretix:master","ref":"master","sha":"f3221e6e76889767d67c5781db5e2e217bb18941","user":{"login":"pretix","id":8465417,"avatar_url":"https://avatars0.githubusercontent.com/u/8465417?v=4","gravatar_id":"","url":"https://api.github.com/users/pretix","html_url":"https://github.com/pretix","followers_url":"https://api.github.com/users/pretix/followers","following_url":"https://api.github.com/users/pretix/following{/other_user}","gists_url":"https://api.github.com/users/pretix/gists{/gist_id}","starred_url":"https://api.github.com/users/pretix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pretix/subscriptions","organizations_url":"https://api.github.com/users/pretix/orgs","repos_url":"https://api.github.com/users/pretix/repos","events_url":"https://api.github.com/users/pretix/events{/privacy}","received_events_url":"https://api.github.com/users/pretix/received_events","type":"Organization","site_admin":false},"repo":{"id":23791087,"name":"pretix","full_name":"pretix/pretix","owner":{"login":"pretix","id":8465417,"avatar_url":"https://avatars0.githubusercontent.com/u/8465417?v=4","gravatar_id":"","url":"https://api.github.com/users/pretix","html_url":"https://github.com/pretix","followers_url":"https://api.github.com/users/pretix/followers","following_url":"https://api.github.com/users/pretix/following{/other_user}","gists_url":"https://api.github.com/users/pretix/gists{/gist_id}","starred_url":"https://api.github.com/users/pretix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pretix/subscriptions","organizations_url":"https://api.github.com/users/pretix/orgs","repos_url":"https://api.github.com/users/pretix/repos","events_url":"https://api.github.com/users/pretix/events{/privacy}","received_events_url":"https://api.github.com/users/pretix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pretix/pretix","description":"Ticket shop application for conferences, festivals, concerts, tech events, shows, exhibitions, workshops, barcamps, etc.","fork":false,"url":"https://api.github.com/repos/pretix/pretix","forks_url":"https://api.github.com/repos/pretix/pretix/forks","keys_url":"https://api.github.com/repos/pretix/pretix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pretix/pretix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pretix/pretix/teams","hooks_url":"https://api.github.com/repos/pretix/pretix/hooks","issue_events_url":"https://api.github.com/repos/pretix/pretix/issues/events{/number}","events_url":"https://api.github.com/repos/pretix/pretix/events","assignees_url":"https://api.github.com/repos/pretix/pretix/assignees{/user}","branches_url":"https://api.github.com/repos/pretix/pretix/branches{/branch}","tags_url":"https://api.github.com/repos/pretix/pretix/tags","blobs_url":"https://api.github.com/repos/pretix/pretix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pretix/pretix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pretix/pretix/git/refs{/sha}","trees_url":"https://api.github.com/repos/pretix/pretix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pretix/pretix/statuses/{sha}","languages_url":"https://api.github.com/repos/pretix/pretix/languages","stargazers_url":"https://api.github.com/repos/pretix/pretix/stargazers","contributors_url":"https://api.github.com/repos/pretix/pretix/contributors","subscribers_url":"https://api.github.com/repos/pretix/pretix/subscribers","subscription_url":"https://api.github.com/repos/pretix/pretix/subscription","commits_url":"https://api.github.com/repos/pretix/pretix/commits{/sha}","git_commits_url":"https://api.github.com/repos/pretix/pretix/git/commits{/sha}","comments_url":"https://api.github.com/repos/pretix/pretix/comments{/number}","issue_comment_url":"https://api.github.com/repos/pretix/pretix/issues/comments{/number}","contents_url":"https://api.github.com/repos/pretix/pretix/contents/{+path}","compare_url":"https://api.github.com/repos/pretix/pretix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pretix/pretix/merges","archive_url":"https://api.github.com/repos/pretix/pretix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pretix/pretix/downloads","issues_url":"https://api.github.com/repos/pretix/pretix/issues{/number}","pulls_url":"https://api.github.com/repos/pretix/pretix/pulls{/number}","milestones_url":"https://api.github.com/repos/pretix/pretix/milestones{/number}","notifications_url":"https://api.github.com/repos/pretix/pretix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pretix/pretix/labels{/name}","releases_url":"https://api.github.com/repos/pretix/pretix/releases{/id}","deployments_url":"https://api.github.com/repos/pretix/pretix/deployments","created_at":"2014-09-08T13:10:38Z","updated_at":"2017-11-09T23:19:55Z","pushed_at":"2017-11-09T21:09:29Z","git_url":"git://github.com/pretix/pretix.git","ssh_url":"git@github.com:pretix/pretix.git","clone_url":"https://github.com/pretix/pretix.git","svn_url":"https://github.com/pretix/pretix","homepage":"https://pretix.eu","size":16165,"stargazers_count":316,"watchers_count":316,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":133,"mirror_url":null,"archived":false,"open_issues_count":109,"forks":133,"open_issues":109,"watchers":316,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pretix/pretix/pulls/657"},"html":{"href":"https://github.com/pretix/pretix/pull/657"},"issue":{"href":"https://api.github.com/repos/pretix/pretix/issues/657"},"comments":{"href":"https://api.github.com/repos/pretix/pretix/issues/657/comments"},"review_comments":{"href":"https://api.github.com/repos/pretix/pretix/pulls/657/comments"},"review_comment":{"href":"https://api.github.com/repos/pretix/pretix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pretix/pretix/pulls/657/commits"},"statuses":{"href":"https://api.github.com/repos/pretix/pretix/statuses/2055de6a8eb2fa69bd6e6fd96f97fcea74bc8dae"}},"author_association":"NONE"}}
{"actor":{"display_login":"turegjorup"}}