{"action":"closed","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/1371","repository_url":"https://api.github.com/repos/e-government-ua/i","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/1371/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/1371/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/1371/events","html_url":"https://github.com/e-government-ua/i/issues/1371","id":177109235,"number":1371,"title":"Реализовать новый виртуальный тип поля \"чекбокс\", используя по факту реальный тип \"enum\"","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/test","name":"test","color":"5319e7"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/_central-js","name":"_central-js","color":"009800"},{"url":"https://api.github.com/repos/e-government-ua/i/labels/_dashboard-js","name":"_dashboard-js","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"ijmac","id":17097239,"avatar_url":"https://avatars.githubusercontent.com/u/17097239?v=3","gravatar_id":"","url":"https://api.github.com/users/ijmac","html_url":"https://github.com/ijmac","followers_url":"https://api.github.com/users/ijmac/followers","following_url":"https://api.github.com/users/ijmac/following{/other_user}","gists_url":"https://api.github.com/users/ijmac/gists{/gist_id}","starred_url":"https://api.github.com/users/ijmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ijmac/subscriptions","organizations_url":"https://api.github.com/users/ijmac/orgs","repos_url":"https://api.github.com/users/ijmac/repos","events_url":"https://api.github.com/users/ijmac/events{/privacy}","received_events_url":"https://api.github.com/users/ijmac/received_events","type":"User","site_admin":false},"assignees":[{"login":"ijmac","id":17097239,"avatar_url":"https://avatars.githubusercontent.com/u/17097239?v=3","gravatar_id":"","url":"https://api.github.com/users/ijmac","html_url":"https://github.com/ijmac","followers_url":"https://api.github.com/users/ijmac/followers","following_url":"https://api.github.com/users/ijmac/following{/other_user}","gists_url":"https://api.github.com/users/ijmac/gists{/gist_id}","starred_url":"https://api.github.com/users/ijmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ijmac/subscriptions","organizations_url":"https://api.github.com/users/ijmac/orgs","repos_url":"https://api.github.com/users/ijmac/repos","events_url":"https://api.github.com/users/ijmac/events{/privacy}","received_events_url":"https://api.github.com/users/ijmac/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":29,"closed_issues":381,"state":"open","created_at":"2015-04-11T19:08:57Z","updated_at":"2016-10-03T14:41:00Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-09-15T07:34:47Z","updated_at":"2016-10-03T14:41:00Z","closed_at":"2016-10-03T14:41:00Z","body":"на фронте, третим разделом атрибута name перечисляем(среди прочих, через \";\") параметр sID_CheckboxTrue=first, что будет означать, что данное поле (єнум) является по сути чекбоксом, с двумя вариантами значений, чекнутость при єтом означает выбранность пункта энума, с ИД-ником, указанном в правой части заданного параметра (т.е. “first”)\r\n\r\n**Пример участка в БП:**\r\n```\r\n        <activiti:formProperty id=\"bFavorite\" name=\"Фаворит;Виберіть фаворит-чи це або ні;sID_CheckboxTrue=Favorite\" type=\"enum\" required=\"true\">\r\n          <activiti:value id=\"Favorite\" name=\"Так, фаворит\"></activiti:value>\r\n          <activiti:value id=\"NotFavorite\" name=\"Ні, нефаворит\"></activiti:value>\r\n        </activiti:formProperty>\r\n\r\n        <activiti:formProperty id=\"bFavorite1\" name=\"Фаворит1;Виберіть фаворит-чи це або ні;sID_CheckboxTrue=Favorite1\" type=\"enum\" required=\"true\" default=\"NotFavorite1\">\r\n          <activiti:value id=\"Favorite1\" name=\"Так, фаворит1\"></activiti:value>\r\n          <activiti:value id=\"NotFavorite1\" name=\"Ні, нефаворит1\"></activiti:value>\r\n        </activiti:formProperty>\r\n\r\n```\r\n\r\n**Причем** \r\n- чтоб работали все те-же механизмы что и при обычном Энуме (т.е. дефолтность, обязательность, принятие проставленного значения на дашборде, проставленного с централа и т.д.)\r\n\r\n- если значение еще не проставлено. то проставлять чекбокс в пограничном состоянии (не включено и не выключено)\r\n\r\n**Тестовая услуга:**\r\nhttps://alpha.test.igov.org.ua/service/1550/general\r\n\r\nв ней широкий ассортимент кейсов как для централа так и для дашборда, которые должны четко работать\r\n\r\nКурирует: Дарья Грек"}}
{"actor":{"display_login":"OlgaTurenko"}}