{"action":"created","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/1048","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/1048/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/1048/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/1048/events","html_url":"https://github.com/e-government-ua/i/issues/1048","id":123958747,"number":1048,"title":"Реализовать лимитирование одновременной подачи Н-ного числа заявок гражданином по определенной услуге в профиле услуги","user":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/e-government-ua/i/labels/active","name":"active","color":"eb6420"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/question","name":"question","color":"bfe5bf"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/test","name":"test","color":"5319e7"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/_central-js","name":"_central-js","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"maxymshg","id":1504106,"avatar_url":"https://avatars.githubusercontent.com/u/1504106?v=3","gravatar_id":"","url":"https://api.github.com/users/maxymshg","html_url":"https://github.com/maxymshg","followers_url":"https://api.github.com/users/maxymshg/followers","following_url":"https://api.github.com/users/maxymshg/following{/other_user}","gists_url":"https://api.github.com/users/maxymshg/gists{/gist_id}","starred_url":"https://api.github.com/users/maxymshg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxymshg/subscriptions","organizations_url":"https://api.github.com/users/maxymshg/orgs","repos_url":"https://api.github.com/users/maxymshg/repos","events_url":"https://api.github.com/users/maxymshg/events{/privacy}","received_events_url":"https://api.github.com/users/maxymshg/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/e-government-ua/i/milestones/1","html_url":"https://github.com/e-government-ua/i/milestones/FrontEnd_NodeJS","labels_url":"https://api.github.com/repos/e-government-ua/i/milestones/1/labels","id":1063341,"number":1,"title":"FrontEnd_NodeJS","description":"Консолидированный дашборд-портал, изначально кастомный вариант активити-эксплорера, предназначенный для работы в нем именно работников гос-службы (обработка заявок граждан), со временем там-же будут выводиться для \"продвинутых админов\" разные важные показатели и статистика  (и, возможно, появится классический функционал портала для граждан","creator":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":286,"state":"open","created_at":"2015-04-11T19:08:57Z","updated_at":"2016-01-19T16:00:10Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-12-27T03:59:46Z","updated_at":"2016-01-19T20:30:47Z","closed_at":null,"body":"- [x] 1) Сразу после авторизации (шаг 2), при попытке гражданина подать заявку, проверять число поданных НЕ ЗАКРЫТЫХ заявок проверять через сервис  getCountOrders ( https://github.com/e-government-ua/i/issues/1047 ), передавая туда так-же в качестве параметра nLimit значение параметра nOpenedLimit (из сущности Service  ( https://github.com/e-government-ua/i/issues/1046 ) ), и так-же параметр bExcludeClosed = true\r\nВАЖНО: если значение nOpenedLimit = 0, то пропускать эту проверку\r\n\r\n- [x] 2) Если при этом полученное число в nOpened будет равняться исходному в nLimit, то значит уже лимит достигнут, и больше подавать заявок нельзя.\r\nСоответственно, вместо перехода на форму заполнения услуги, писать уведомление(о запрете):\r\n\"Уже достигнуто число одновременно поданных и не закрытых заявок Вами по данной услуге для данного места. Вы можете перейти в закладку \"Статусы\" (https://test.igov.org.ua/order/search) где найдя одну из своих заявок - написать комментарий сотруднику по ней, для ее скорейшей отработке или закрытия.(чтоб разблокировать дельнейшую подачу)\"\r\n(вот задача по этому диалогу: https://github.com/e-government-ua/i/issues/1045 ).\r\n"},"comment":{"url":"https://api.github.com/repos/e-government-ua/i/issues/comments/172976862","html_url":"https://github.com/e-government-ua/i/issues/1048#issuecomment-172976862","issue_url":"https://api.github.com/repos/e-government-ua/i/issues/1048","id":172976862,"user":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T20:30:47Z","updated_at":"2016-01-19T20:30:47Z","body":"как выяснилось - длина поля сохранения истории была маленькой, уже поправили\r\nпрошу перепроверить (в простом варианте)\r\nдолжно, вроде работать\r\n"}}