{"action":"created","issue":{"url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/issues/50","repository_url":"https://api.github.com/repos/GolosMovement/StatElectGenerator","labels_url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/issues/50/comments","events_url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/issues/50/events","html_url":"https://github.com/GolosMovement/StatElectGenerator/issues/50","id":358006688,"node_id":"MDU6SXNzdWUzNTgwMDY2ODg=","number":50,"title":"Предварительный расчет вычисляемых значений по пресетам","user":{"login":"ybinzu","id":1109847,"node_id":"MDQ6VXNlcjExMDk4NDc=","avatar_url":"https://avatars3.githubusercontent.com/u/1109847?v=4","gravatar_id":"","url":"https://api.github.com/users/ybinzu","html_url":"https://github.com/ybinzu","followers_url":"https://api.github.com/users/ybinzu/followers","following_url":"https://api.github.com/users/ybinzu/following{/other_user}","gists_url":"https://api.github.com/users/ybinzu/gists{/gist_id}","starred_url":"https://api.github.com/users/ybinzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybinzu/subscriptions","organizations_url":"https://api.github.com/users/ybinzu/orgs","repos_url":"https://api.github.com/users/ybinzu/repos","events_url":"https://api.github.com/users/ybinzu/events{/privacy}","received_events_url":"https://api.github.com/users/ybinzu/received_events","type":"User","site_admin":false},"labels":[{"id":1043795759,"node_id":"MDU6TGFiZWwxMDQzNzk1NzU5","url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/labels/preset","name":"preset","color":"0059bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/milestones/1","html_url":"https://github.com/GolosMovement/StatElectGenerator/milestone/1","labels_url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/milestones/1/labels","id":3564461,"node_id":"MDk6TWlsZXN0b25lMzU2NDQ2MQ==","number":1,"title":"0.0.1","description":"Новая структура БД, импортер, тестовая страница","creator":{"login":"ybinzu","id":1109847,"node_id":"MDQ6VXNlcjExMDk4NDc=","avatar_url":"https://avatars3.githubusercontent.com/u/1109847?v=4","gravatar_id":"","url":"https://api.github.com/users/ybinzu","html_url":"https://github.com/ybinzu","followers_url":"https://api.github.com/users/ybinzu/followers","following_url":"https://api.github.com/users/ybinzu/following{/other_user}","gists_url":"https://api.github.com/users/ybinzu/gists{/gist_id}","starred_url":"https://api.github.com/users/ybinzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybinzu/subscriptions","organizations_url":"https://api.github.com/users/ybinzu/orgs","repos_url":"https://api.github.com/users/ybinzu/repos","events_url":"https://api.github.com/users/ybinzu/events{/privacy}","received_events_url":"https://api.github.com/users/ybinzu/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":20,"state":"open","created_at":"2018-08-13T09:06:15Z","updated_at":"2018-09-11T11:01:45Z","due_on":"2018-08-21T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-09-07T10:14:27Z","updated_at":"2018-09-11T14:04:14Z","closed_at":null,"author_association":"COLLABORATOR","body":"Кнопка в интерфейсе \"Preset Manager\" - \"Рассчитать пресеты\".\r\n\r\nВычисляемые значения будут храниться в `LineCalculatedValue`.\r\n\r\n`LineCalculatedValue`:\r\n\r\n 1. `double Value`\r\n 1. `int ProtocolId`\r\n 1. `int PresetId`\r\n\r\nНужно будет добавить флаг: `ProtocolSet.ShouldRecalculatePresets` (default - false). Который выставлять, если добавляли/удаляли/редактировали `Preset`. Сбрасывать флаг после расчета пресетов.\r\n\r\nПерерасчет:\r\n 1. Удалить старые `LineCalculatedValue` выбранного `ProtocolSet`.\r\n 1. Для всех конечных (на которые ссылаются `LineNumber`) `Protocol` создать вычисленные через `Core.Preset.Calculator` записи в `LineCalculatedValue`.\r\n 1. Сбросить флаг `ProtocolSet.ShouldRecalculatePresets`.\r\n\r\n`LineCalculatedValue` хранит ссылку на `Preset`, в будущем можно будет реализовать перерасчет конкретного пресета, если добавили/изменили/удалили только один пресет, если это потребуется."},"comment":{"url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/issues/comments/420286069","html_url":"https://github.com/GolosMovement/StatElectGenerator/issues/50#issuecomment-420286069","issue_url":"https://api.github.com/repos/GolosMovement/StatElectGenerator/issues/50","id":420286069,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDI4NjA2OQ==","user":{"login":"ybinzu","id":1109847,"node_id":"MDQ6VXNlcjExMDk4NDc=","avatar_url":"https://avatars3.githubusercontent.com/u/1109847?v=4","gravatar_id":"","url":"https://api.github.com/users/ybinzu","html_url":"https://github.com/ybinzu","followers_url":"https://api.github.com/users/ybinzu/followers","following_url":"https://api.github.com/users/ybinzu/following{/other_user}","gists_url":"https://api.github.com/users/ybinzu/gists{/gist_id}","starred_url":"https://api.github.com/users/ybinzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybinzu/subscriptions","organizations_url":"https://api.github.com/users/ybinzu/orgs","repos_url":"https://api.github.com/users/ybinzu/repos","events_url":"https://api.github.com/users/ybinzu/events{/privacy}","received_events_url":"https://api.github.com/users/ybinzu/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T14:04:14Z","updated_at":"2018-09-11T14:04:14Z","author_association":"COLLABORATOR","body":"Все это хозяйство надо будет запускать в фоне. См #63, #57."}}
{"actor":{"display_login":"ybinzu"}}