{"action":"created","issue":{"url":"https://api.github.com/repos/eishub/tygron/issues/61","repository_url":"https://api.github.com/repos/eishub/tygron","labels_url":"https://api.github.com/repos/eishub/tygron/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/eishub/tygron/issues/61/comments","events_url":"https://api.github.com/repos/eishub/tygron/issues/61/events","html_url":"https://github.com/eishub/tygron/pull/61","id":157790098,"number":61,"title":"Make custom indicators return values","user":{"login":"JoshCode","id":6254388,"avatar_url":"https://avatars.githubusercontent.com/u/6254388?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshCode","html_url":"https://github.com/JoshCode","followers_url":"https://api.github.com/users/JoshCode/followers","following_url":"https://api.github.com/users/JoshCode/following{/other_user}","gists_url":"https://api.github.com/users/JoshCode/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshCode/subscriptions","organizations_url":"https://api.github.com/users/JoshCode/orgs","repos_url":"https://api.github.com/users/JoshCode/repos","events_url":"https://api.github.com/users/JoshCode/events{/privacy}","received_events_url":"https://api.github.com/users/JoshCode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eishub/tygron/labels/CodeFox","name":"CodeFox","color":"df662f"}],"state":"open","locked":false,"assignee":{"login":"JoshCode","id":6254388,"avatar_url":"https://avatars.githubusercontent.com/u/6254388?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshCode","html_url":"https://github.com/JoshCode","followers_url":"https://api.github.com/users/JoshCode/followers","following_url":"https://api.github.com/users/JoshCode/following{/other_user}","gists_url":"https://api.github.com/users/JoshCode/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshCode/subscriptions","organizations_url":"https://api.github.com/users/JoshCode/orgs","repos_url":"https://api.github.com/users/JoshCode/repos","events_url":"https://api.github.com/users/JoshCode/events{/privacy}","received_events_url":"https://api.github.com/users/JoshCode/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/eishub/tygron/milestones/2","html_url":"https://github.com/eishub/tygron/milestones/Sprint%20Week%206","labels_url":"https://api.github.com/repos/eishub/tygron/milestones/2/labels","id":1792017,"number":2,"title":"Sprint Week 6","description":"","creator":{"login":"JoshCode","id":6254388,"avatar_url":"https://avatars.githubusercontent.com/u/6254388?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshCode","html_url":"https://github.com/JoshCode","followers_url":"https://api.github.com/users/JoshCode/followers","following_url":"https://api.github.com/users/JoshCode/following{/other_user}","gists_url":"https://api.github.com/users/JoshCode/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshCode/subscriptions","organizations_url":"https://api.github.com/users/JoshCode/orgs","repos_url":"https://api.github.com/users/JoshCode/repos","events_url":"https://api.github.com/users/JoshCode/events{/privacy}","received_events_url":"https://api.github.com/users/JoshCode/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2016-05-27T14:03:09Z","updated_at":"2016-06-01T09:13:13Z","due_on":"2016-06-02T22:00:00Z","closed_at":null},"comments":4,"created_at":"2016-05-31T23:06:30Z","updated_at":"2016-06-01T15:17:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eishub/tygron/pulls/61","html_url":"https://github.com/eishub/tygron/pull/61","diff_url":"https://github.com/eishub/tygron/pull/61.diff","patch_url":"https://github.com/eishub/tygron/pull/61.patch"},"body":"For this to work, a new section has to be added to the **EXPLANATION_MAQUETTE** cell (usually in cell **B10**), structured as follows (the newlines after a line may be in the Excel sheet, but they may also be removed. Not meaning the `\"\\n\"`'s by the way, the actual newlines in the code blocks):\r\n\r\n### For indicators that have one target for all zones\r\n\r\n`<ZONE_ID>` has to be replaced by a numeric zone identifier.\r\n`<SCORE_CELL>` has to be replaced by an Excel cell identifier containing the score for that zone.\r\nThe `[...]` indicates that more lines with zone ID's and score cells may follow.\r\n\r\n```\r\n\"<p hidden>\";SCORE_MAQUETTE;\"multiN\";\r\n\"<ZONE_ID>\";\"\\t\";<SCORE_CELL>;\"\\n\";\r\n[...]\r\n\"</p>\"\r\n```\r\n\r\n**Example**\r\n```\r\n\"<p hidden>\";SCORE_MAQUETTE;\"multiN\";\r\n\"0\";\"\\t\";I17;\"\\n\";\r\n\"1\";\"\\t\";I18;\"\\n\";\r\n\"2\";\"\\t\";I19;\"\\n\";\r\n\"3\";\"\\t\";I20;\"\\n\";\r\n\"4\";\"\\t\";I21;\"\\n\";\r\n\"5\";\"\\t\";I22;\"\\n\";\r\n\"6\";\"\\t\";I23;\"\\n\";\r\n\"7\";\"\\t\";I24;\"\\n\";\r\n\"8\";\"\\t\";I25;\"\\n\";\r\n\"9\";\"\\t\";I26;\"\\n\";\r\n\"10\";\"\\t\";I27;\"\\n\";\r\n\"11\";\"\\t\";I28;\"\\n\";\r\n\"12\";\"\\t\";I29;\"\\n\";\r\n\"</p>\"\r\n```\r\n\r\n### For indicators that have different targets depending on the zone\r\n\r\nPay attention to the `multiT` instead of `multiN`.\r\n\r\n\r\n`<ZONE_ID>` has to be replaced by a numeric zone identifier.\r\n`<SCORE_CELL>` has to be replaced by an Excel cell identifier containing the score for that zone.\r\n`<TOTAL_TARGET_CELL>` has to be replaced by an Excel cell identifier containing the target value.\r\n`<TARGET_CELL>` has to be replaced by an Excel cell identifier containing the target value.\r\nThe `[...]` indicates that more lines with zone ID's and score cells may follow.\r\n\r\n```\r\n\"<p hidden>\";SCORE_MAQUETTE;\"\\t\";<TOTAL_TARGET_CELL>;\"multiT\";\r\n\"<ZONE_ID>\";\"\\t\";<SCORE_CELL>;\"\\t\";<TARGET_CELL>;\"\\n\";\r\n[...]\r\n\"</p>\"\r\n```\r\n\r\nor\r\n\r\n```\r\n\"<p hidden>\";SCORE_MAQUETTE;\"\\t\";<TOTAL_TARGET_CELL>;\"multiT\";\r\n\"<ZONE_ID>\";\"\\t\";<TARGET_CELL>;\"\\n\";\r\n[...]\r\n\"</p>\"\r\n```\r\nIn which case the `<TOTAL_TARGET_CELL>` is used as a target for all zones.\r\n**Example**\r\n\r\n```\r\n\"<p hidden>\";SCORE_MAQUETTE;A1;\"multiT\";\r\n\"0\";\"\\t\";I17;\"\\t\";J17;\"\\n\";\r\n\"1\";\"\\t\";I18;\"\\t\";J18;\"\\n\";\r\n\"2\";\"\\t\";I19;\"\\t\";J19;\"\\n\";\r\n\"3\";\"\\t\";I20;\"\\t\";J20;\"\\n\";\r\n\"4\";\"\\t\";I21;\"\\t\";J21;\"\\n\";\r\n\"5\";\"\\t\";I22;\"\\t\";J22;\"\\n\";\r\n\"6\";\"\\t\";I23;\"\\t\";J23;\"\\n\";\r\n\"7\";\"\\t\";I24;\"\\t\";J24;\"\\n\";\r\n\"8\";\"\\t\";I25;\"\\t\";J25;\"\\n\";\r\n\"9\";\"\\t\";I26;\"\\t\";J26;\"\\n\";\r\n\"10\";\"\\t\";I27;\"\\t\";J27;\"\\n\";\r\n\"11\";\"\\t\";I28;\"\\t\";J28;\"\\n\";\r\n\"12\";\"\\t\";I29;\"\\t\";J29;\"\\n\";\r\n\"</p>\"\r\n```\r\n\r\nThe indicator-percept #22 is changed in the following way:\r\n`indicator/4 - indicator(<indID>, <currentValue>, <targetValue>, [zone_link])`\r\n`[zone_link]` - A list of 0 or more zone links\r\n\r\n `zone_link/4 - zone_link(<zoneID>, <indID>, <cur_Val>, <tar_Val>)`\r\nAs described in #13 \r\n\r\n\r\nThis resolves #13, fixed #39 for custom indicators, resolves #53."},"comment":{"url":"https://api.github.com/repos/eishub/tygron/issues/comments/223026322","html_url":"https://github.com/eishub/tygron/pull/61#issuecomment-223026322","issue_url":"https://api.github.com/repos/eishub/tygron/issues/61","id":223026322,"user":{"login":"tvleest","id":9801606,"avatar_url":"https://avatars.githubusercontent.com/u/9801606?v=3","gravatar_id":"","url":"https://api.github.com/users/tvleest","html_url":"https://github.com/tvleest","followers_url":"https://api.github.com/users/tvleest/followers","following_url":"https://api.github.com/users/tvleest/following{/other_user}","gists_url":"https://api.github.com/users/tvleest/gists{/gist_id}","starred_url":"https://api.github.com/users/tvleest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvleest/subscriptions","organizations_url":"https://api.github.com/users/tvleest/orgs","repos_url":"https://api.github.com/users/tvleest/repos","events_url":"https://api.github.com/users/tvleest/events{/privacy}","received_events_url":"https://api.github.com/users/tvleest/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T15:17:48Z","updated_at":"2016-06-01T15:17:48Z","body":"Will test this tonight before approving.\r\n/RAMpestampers"}}
{"actor":{"display_login":"tvleest"}}