{"action":"created","issue":{"url":"https://api.github.com/repos/zerocracy/farm/issues/1674","repository_url":"https://api.github.com/repos/zerocracy/farm","labels_url":"https://api.github.com/repos/zerocracy/farm/issues/1674/labels{/name}","comments_url":"https://api.github.com/repos/zerocracy/farm/issues/1674/comments","events_url":"https://api.github.com/repos/zerocracy/farm/issues/1674/events","html_url":"https://github.com/zerocracy/farm/issues/1674","id":355442473,"node_id":"MDU6SXNzdWUzNTU0NDI0NzM=","number":1674,"title":"Elections assigns DEV jobs even if # > maxJobsInAgenda","user":{"login":"krzyk","id":105730,"node_id":"MDQ6VXNlcjEwNTczMA==","avatar_url":"https://avatars1.githubusercontent.com/u/105730?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyk","html_url":"https://github.com/krzyk","followers_url":"https://api.github.com/users/krzyk/followers","following_url":"https://api.github.com/users/krzyk/following{/other_user}","gists_url":"https://api.github.com/users/krzyk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyk/subscriptions","organizations_url":"https://api.github.com/users/krzyk/orgs","repos_url":"https://api.github.com/users/krzyk/repos","events_url":"https://api.github.com/users/krzyk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-30T06:29:49Z","updated_at":"2018-08-30T18:30:47Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Recently (last few days) I was given few DEV jobs even when my number of jobs is higher than maxJobsInAgenda.\r\n\r\n`elect_performer` has correct code (the max shouldn't be used if it is a REV job):\r\n```\r\n(new VsSafe(new VsOptionsMaxJobs(pmo)))                    : role == 'REV' ? 0 : -100,\r\n```\r\n\r\nSo somewhere else there is a bug that assigns jobs regardless of the limit.\r\nMaybe the `role` is set to REV, even for DEV jobs?\r\n\r\n\r\nExampe:\r\n1. https://www.0crat.com/footprint/C3NDPUA8L/2420255490\r\n2. https://www.0crat.com/footprint/C3NDPUA8L/2420254470\r\n\r\nEDIT:\r\nSame issue is with `VsNoRoom`, which uses exaclty the same ternary: `role == 'REV' ? 0 : -100`.\r\n\r\nHere's a part from election messages:\r\n```\r\n  +0.00=0.00x0 14 jobs out of 24\r\n  +0.00=1.00x0 14 job(s) already, maxJobsInAgenda option is 4\r\n```\r\n\r\nBut it should be (e.g. in https://www.0crat.com/footprint/C3NDPUA8L/2360533730):\r\n```\r\n  +0.00=0.00x-100 14 jobs out of 24\r\n  +0.00=1.00x-100 14 job(s) already, maxJobsInAgenda option is 4\r\n```"},"comment":{"url":"https://api.github.com/repos/zerocracy/farm/issues/comments/417421911","html_url":"https://github.com/zerocracy/farm/issues/1674#issuecomment-417421911","issue_url":"https://api.github.com/repos/zerocracy/farm/issues/1674","id":417421911,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzQyMTkxMQ==","user":{"login":"krzyk","id":105730,"node_id":"MDQ6VXNlcjEwNTczMA==","avatar_url":"https://avatars1.githubusercontent.com/u/105730?v=4","gravatar_id":"","url":"https://api.github.com/users/krzyk","html_url":"https://github.com/krzyk","followers_url":"https://api.github.com/users/krzyk/followers","following_url":"https://api.github.com/users/krzyk/following{/other_user}","gists_url":"https://api.github.com/users/krzyk/gists{/gist_id}","starred_url":"https://api.github.com/users/krzyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzyk/subscriptions","organizations_url":"https://api.github.com/users/krzyk/orgs","repos_url":"https://api.github.com/users/krzyk/repos","events_url":"https://api.github.com/users/krzyk/events{/privacy}","received_events_url":"https://api.github.com/users/krzyk/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T18:30:47Z","updated_at":"2018-08-30T18:30:47Z","author_association":"CONTRIBUTOR","body":"@g4s8 this one is very annoying, unfortunately I couldn't find the root cause"}}
{"actor":{"display_login":"krzyk"}}