{"action":"created","issue":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/4085","repository_url":"https://api.github.com/repos/fossasia/open-event-orga-server","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/4085/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/4085/comments","events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/4085/events","html_url":"https://github.com/fossasia/open-event-orga-server/pull/4085","id":243597405,"number":4085,"title":"Add multiple kwargs support in permission manager","user":{"login":"poush","id":1812082,"avatar_url":"https://avatars0.githubusercontent.com/u/1812082?v=4","gravatar_id":"","url":"https://api.github.com/users/poush","html_url":"https://github.com/poush","followers_url":"https://api.github.com/users/poush/followers","following_url":"https://api.github.com/users/poush/following{/other_user}","gists_url":"https://api.github.com/users/poush/gists{/gist_id}","starred_url":"https://api.github.com/users/poush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poush/subscriptions","organizations_url":"https://api.github.com/users/poush/orgs","repos_url":"https://api.github.com/users/poush/repos","events_url":"https://api.github.com/users/poush/events{/privacy}","received_events_url":"https://api.github.com/users/poush/received_events","type":"User","site_admin":false},"labels":[{"id":634335239,"url":"https://api.github.com/repos/fossasia/open-event-orga-server/labels/ready-to-ship","name":"ready-to-ship","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":{"login":"poush","id":1812082,"avatar_url":"https://avatars0.githubusercontent.com/u/1812082?v=4","gravatar_id":"","url":"https://api.github.com/users/poush","html_url":"https://github.com/poush","followers_url":"https://api.github.com/users/poush/followers","following_url":"https://api.github.com/users/poush/following{/other_user}","gists_url":"https://api.github.com/users/poush/gists{/gist_id}","starred_url":"https://api.github.com/users/poush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poush/subscriptions","organizations_url":"https://api.github.com/users/poush/orgs","repos_url":"https://api.github.com/users/poush/repos","events_url":"https://api.github.com/users/poush/events{/privacy}","received_events_url":"https://api.github.com/users/poush/received_events","type":"User","site_admin":false},"assignees":[{"login":"poush","id":1812082,"avatar_url":"https://avatars0.githubusercontent.com/u/1812082?v=4","gravatar_id":"","url":"https://api.github.com/users/poush","html_url":"https://github.com/poush","followers_url":"https://api.github.com/users/poush/followers","following_url":"https://api.github.com/users/poush/following{/other_user}","gists_url":"https://api.github.com/users/poush/gists{/gist_id}","starred_url":"https://api.github.com/users/poush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poush/subscriptions","organizations_url":"https://api.github.com/users/poush/orgs","repos_url":"https://api.github.com/users/poush/repos","events_url":"https://api.github.com/users/poush/events{/privacy}","received_events_url":"https://api.github.com/users/poush/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-07-18T04:35:20Z","updated_at":"2017-07-18T14:01:38Z","closed_at":"2017-07-18T12:50:51Z","pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/4085","html_url":"https://github.com/fossasia/open-event-orga-server/pull/4085","diff_url":"https://github.com/fossasia/open-event-orga-server/pull/4085.diff","patch_url":"https://github.com/fossasia/open-event-orga-server/pull/4085.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 #\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 `nextgen` 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- [x] All the functions created/modified in this PR contain relevant docstrings.\r\n\r\n#### Short description of what this resolves:\r\n\r\n**How it works?**\r\nIt works simply by checking model value, i.e, if **model** option is array of model classes instead of just one class then multiple mode boots up in permission manager. Also for support we have one more option **fetch_key_url** which can be string with comma separated values.\r\nexample,\r\n\r\n**fetch_key_url**=\"notification_id,event_id\"\r\n**model**=[Notification, Event]\r\n\r\n**Please note the values will matched at same index i.e, for the model at second index, the value of second index of fetch_key_url will be taken**\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/comments/316073084","html_url":"https://github.com/fossasia/open-event-orga-server/pull/4085#issuecomment-316073084","issue_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/4085","id":316073084,"user":{"login":"poush","id":1812082,"avatar_url":"https://avatars0.githubusercontent.com/u/1812082?v=4","gravatar_id":"","url":"https://api.github.com/users/poush","html_url":"https://github.com/poush","followers_url":"https://api.github.com/users/poush/followers","following_url":"https://api.github.com/users/poush/following{/other_user}","gists_url":"https://api.github.com/users/poush/gists{/gist_id}","starred_url":"https://api.github.com/users/poush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poush/subscriptions","organizations_url":"https://api.github.com/users/poush/orgs","repos_url":"https://api.github.com/users/poush/repos","events_url":"https://api.github.com/users/poush/events{/privacy}","received_events_url":"https://api.github.com/users/poush/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T14:01:38Z","updated_at":"2017-07-18T14:01:38Z","body":"@SaptakS I thought it is convenient and neat to provide them as string. Please let me know if it should be array of string instead."}}
{"actor":{"display_login":"poush"}}