{"action":"created","issue":{"url":"https://api.github.com/repos/fossasia/open-event-server/issues/4584","repository_url":"https://api.github.com/repos/fossasia/open-event-server","labels_url":"https://api.github.com/repos/fossasia/open-event-server/issues/4584/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/open-event-server/issues/4584/comments","events_url":"https://api.github.com/repos/fossasia/open-event-server/issues/4584/events","html_url":"https://github.com/fossasia/open-event-server/pull/4584","id":285315544,"number":4584,"title":"Add missing min max validation to access-code API","user":{"login":"ritikamotwani","id":22127980,"avatar_url":"https://avatars1.githubusercontent.com/u/22127980?v=4","gravatar_id":"","url":"https://api.github.com/users/ritikamotwani","html_url":"https://github.com/ritikamotwani","followers_url":"https://api.github.com/users/ritikamotwani/followers","following_url":"https://api.github.com/users/ritikamotwani/following{/other_user}","gists_url":"https://api.github.com/users/ritikamotwani/gists{/gist_id}","starred_url":"https://api.github.com/users/ritikamotwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritikamotwani/subscriptions","organizations_url":"https://api.github.com/users/ritikamotwani/orgs","repos_url":"https://api.github.com/users/ritikamotwani/repos","events_url":"https://api.github.com/users/ritikamotwani/events{/privacy}","received_events_url":"https://api.github.com/users/ritikamotwani/received_events","type":"User","site_admin":false},"labels":[{"id":634334822,"url":"https://api.github.com/repos/fossasia/open-event-server/labels/needs-review","name":"needs-review","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"ritikamotwani","id":22127980,"avatar_url":"https://avatars1.githubusercontent.com/u/22127980?v=4","gravatar_id":"","url":"https://api.github.com/users/ritikamotwani","html_url":"https://github.com/ritikamotwani","followers_url":"https://api.github.com/users/ritikamotwani/followers","following_url":"https://api.github.com/users/ritikamotwani/following{/other_user}","gists_url":"https://api.github.com/users/ritikamotwani/gists{/gist_id}","starred_url":"https://api.github.com/users/ritikamotwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritikamotwani/subscriptions","organizations_url":"https://api.github.com/users/ritikamotwani/orgs","repos_url":"https://api.github.com/users/ritikamotwani/repos","events_url":"https://api.github.com/users/ritikamotwani/events{/privacy}","received_events_url":"https://api.github.com/users/ritikamotwani/received_events","type":"User","site_admin":false},"assignees":[{"login":"ritikamotwani","id":22127980,"avatar_url":"https://avatars1.githubusercontent.com/u/22127980?v=4","gravatar_id":"","url":"https://api.github.com/users/ritikamotwani","html_url":"https://github.com/ritikamotwani","followers_url":"https://api.github.com/users/ritikamotwani/followers","following_url":"https://api.github.com/users/ritikamotwani/following{/other_user}","gists_url":"https://api.github.com/users/ritikamotwani/gists{/gist_id}","starred_url":"https://api.github.com/users/ritikamotwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritikamotwani/subscriptions","organizations_url":"https://api.github.com/users/ritikamotwani/orgs","repos_url":"https://api.github.com/users/ritikamotwani/repos","events_url":"https://api.github.com/users/ritikamotwani/events{/privacy}","received_events_url":"https://api.github.com/users/ritikamotwani/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-01-01T16:20:32Z","updated_at":"2018-01-01T16:27:12Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-server/pulls/4584","html_url":"https://github.com/fossasia/open-event-server/pull/4584","diff_url":"https://github.com/fossasia/open-event-server/pull/4584.diff","patch_url":"https://github.com/fossasia/open-event-server/pull/4584.patch"},"body":"<!--\r\n(Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.)\r\n-->\r\n<!-- Add the issue number that is fixed by this PR (In the form Fixes #123) -->\r\n\r\nFixes #4583 \r\n\r\n#### Checklist\r\n\r\n- [x] I have read the [Contribution & Best practices Guide](https://blog.fossasia.org/open-source-developer-guide-and-best-practices-at-fossasia) and my PR follows them.\r\n- [x] My branch is up-to-date with the Upstream `development` branch.\r\n- [x] The unit tests pass locally with my changes <!-- use `nosetests tests/unittests` to run all the tests -->\r\n- [ ] I have added tests that prove my fix is effective or that my feature works\r\n- [ ] I have added necessary documentation (if appropriate)\r\n<!-- If an existing function does not have a docstring, please add one -->\r\n- [ ] All the functions created/modified in this PR contain relevant docstrings.\r\n\r\n#### Short description of what this resolves:\r\nThe min and max validation is added.\r\n\r\n#### Changes proposed in this pull request:\r\n\r\n-The min and max validation similar to the discount code API is added to access-code API. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fossasia/open-event-server/issues/comments/354662108","html_url":"https://github.com/fossasia/open-event-server/pull/4584#issuecomment-354662108","issue_url":"https://api.github.com/repos/fossasia/open-event-server/issues/4584","id":354662108,"user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"created_at":"2018-01-01T16:27:12Z","updated_at":"2018-01-01T16:27:12Z","author_association":"NONE","body":"\n![Codacy](https://www.codacy.com/assets/images/favicon.png) Here is an overview of what got changed by this pull request:\n\n\n```diff\n\nIssues\n======\n- Added 2\n           \n\nComplexity increasing per file\n==============================\n- app/api/schema/access_codes.py  4\n         \n\nClones added\n============\n- app/api/schema/discount_codes.py  2\n         \n\nClones removed\n==============\n+ app/api/schema/tickets.py  -2\n+ app/api/schema/access_codes.py  -1\n         \n```\n\n\nSee the complete overview on [Codacy](https://www.codacy.com/app/fossasia/open-event-orga-server/pullRequest?prid=1197915&bid=6156225)\n        "}}
{"actor":{"display_login":"codacy-bot"}}