{"action":"created","issue":{"url":"https://api.github.com/repos/Wikia/app/issues/12931","repository_url":"https://api.github.com/repos/Wikia/app","labels_url":"https://api.github.com/repos/Wikia/app/issues/12931/labels{/name}","comments_url":"https://api.github.com/repos/Wikia/app/issues/12931/comments","events_url":"https://api.github.com/repos/Wikia/app/issues/12931/events","html_url":"https://github.com/Wikia/app/pull/12931","id":229271854,"number":12931,"title":"WikiaApiQueryDomains: do not allow requests with wkfrom > wkto","user":{"login":"macbre","id":1929317,"avatar_url":"https://avatars3.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-17T08:17:31Z","updated_at":"2017-05-22T13:51:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Wikia/app/pulls/12931","html_url":"https://github.com/Wikia/app/pull/12931","diff_url":"https://github.com/Wikia/app/pull/12931.diff","patch_url":"https://github.com/Wikia/app/pull/12931.patch"},"body":"https://wikia-inc.atlassian.net/browse/SUS-2022\r\n\r\nReturn this in such cases:\r\n\r\n```json\r\n{\r\n\tservedby: \"dev-kopytko\",\r\n\terror: {\r\n\t\tcode: \"wk\",\r\n\t\tinfo: \"wkto should be greater than wkfrom\"\r\n\t}\r\n}\r\n```\r\n\r\ninstead of DB error exception (negative value was passed to `LIMIT`)."},"comment":{"url":"https://api.github.com/repos/Wikia/app/issues/comments/303105946","html_url":"https://github.com/Wikia/app/pull/12931#issuecomment-303105946","issue_url":"https://api.github.com/repos/Wikia/app/issues/12931","id":303105946,"user":{"login":"WikiaTech","id":13279985,"avatar_url":"https://avatars0.githubusercontent.com/u/13279985?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiaTech","html_url":"https://github.com/WikiaTech","followers_url":"https://api.github.com/users/WikiaTech/followers","following_url":"https://api.github.com/users/WikiaTech/following{/other_user}","gists_url":"https://api.github.com/users/WikiaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiaTech/subscriptions","organizations_url":"https://api.github.com/users/WikiaTech/orgs","repos_url":"https://api.github.com/users/WikiaTech/repos","events_url":"https://api.github.com/users/WikiaTech/events{/privacy}","received_events_url":"https://api.github.com/users/WikiaTech/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T13:51:29Z","updated_at":"2017-05-22T13:51:29Z","body":"SonarQube analysis reported 11 issues\n* ![MAJOR][MAJOR] 7 major\n* ![MINOR][MINOR] 3 minor\n* ![INFO][INFO] 1 info\n\nWatch the comments in this conversation to review them.\n\n#### 10 extra issues\n\nNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:\n\n1. ![MAJOR][MAJOR] [WikiaApiQueryDomains.php#L50](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L50): Add curly braces around the nested statement(s). [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS121)\n1. ![MAJOR][MAJOR] [WikiaApiQueryDomains.php#L51](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L51): Add curly braces around the nested statement(s). [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS121)\n1. ![MAJOR][MAJOR] [WikiaApiQueryDomains.php#L55](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L55): Merge this if statement with the enclosing one. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1066)\n1. ![MAJOR][MAJOR] [WikiaApiQueryDomains.php#L61](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L61): Merge this if statement with the enclosing one. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1066)\n1. ![MAJOR][MAJOR] [WikiaApiQueryDomains.php#L61](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L61): Add curly braces around the nested statement(s). [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS121)\n1. ![MAJOR][MAJOR] [WikiaApiQueryDomains.php#L87](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L87): Take the required action to fix the issue indicated by this \"FIXME\" comment. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1134)\n1. ![MINOR][MINOR] [WikiaApiQueryDomains.php#L50](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L50): 2 statements were found on this line. Reformat the code to have only one statement per line. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS122)\n1. ![MINOR][MINOR] [WikiaApiQueryDomains.php#L51](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L51): 2 statements were found on this line. Reformat the code to have only one statement per line. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS122)\n1. ![MINOR][MINOR] [WikiaApiQueryDomains.php#L61](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L61): 2 statements were found on this line. Reformat the code to have only one statement per line. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS122)\n1. ![INFO][INFO] [WikiaApiQueryDomains.php#L8](https://github.com/Wikia/app/blob/18a6104ce9348bccd9a224d5f5d12b716b29feef/extensions/wikia/WikiaApi/WikiaApiQueryDomains.php#L8): Complete the task associated to this \"TODO\" comment. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1135)\n\n[INFO]: https://sonarsource.github.io/sonar-github/severity-info.png 'Severity: INFO'\n[MAJOR]: https://sonarsource.github.io/sonar-github/severity-major.png 'Severity: MAJOR'\n[MINOR]: https://sonarsource.github.io/sonar-github/severity-minor.png 'Severity: MINOR'"}}
{"actor":{"display_login":"WikiaTech"}}