{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9616","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9616/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9616/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9616/events","html_url":"https://github.com/ManageIQ/manageiq/pull/9616","id":163927775,"number":9616,"title":"Preparation work to block duplicated events","user":{"login":"bzwei","id":7047579,"avatar_url":"https://avatars.githubusercontent.com/u/7047579?v=3","gravatar_id":"","url":"https://api.github.com/users/bzwei","html_url":"https://github.com/bzwei","followers_url":"https://api.github.com/users/bzwei/followers","following_url":"https://api.github.com/users/bzwei/following{/other_user}","gists_url":"https://api.github.com/users/bzwei/gists{/gist_id}","starred_url":"https://api.github.com/users/bzwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bzwei/subscriptions","organizations_url":"https://api.github.com/users/bzwei/orgs","repos_url":"https://api.github.com/users/bzwei/repos","events_url":"https://api.github.com/users/bzwei/events{/privacy}","received_events_url":"https://api.github.com/users/bzwei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers","name":"providers","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"durandom","id":161888,"avatar_url":"https://avatars.githubusercontent.com/u/161888?v=3","gravatar_id":"","url":"https://api.github.com/users/durandom","html_url":"https://github.com/durandom","followers_url":"https://api.github.com/users/durandom/followers","following_url":"https://api.github.com/users/durandom/following{/other_user}","gists_url":"https://api.github.com/users/durandom/gists{/gist_id}","starred_url":"https://api.github.com/users/durandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durandom/subscriptions","organizations_url":"https://api.github.com/users/durandom/orgs","repos_url":"https://api.github.com/users/durandom/repos","events_url":"https://api.github.com/users/durandom/events{/privacy}","received_events_url":"https://api.github.com/users/durandom/received_events","type":"User","site_admin":false},"assignees":[{"login":"durandom","id":161888,"avatar_url":"https://avatars.githubusercontent.com/u/161888?v=3","gravatar_id":"","url":"https://api.github.com/users/durandom","html_url":"https://github.com/durandom","followers_url":"https://api.github.com/users/durandom/followers","following_url":"https://api.github.com/users/durandom/following{/other_user}","gists_url":"https://api.github.com/users/durandom/gists{/gist_id}","starred_url":"https://api.github.com/users/durandom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durandom/subscriptions","organizations_url":"https://api.github.com/users/durandom/orgs","repos_url":"https://api.github.com/users/durandom/repos","events_url":"https://api.github.com/users/durandom/events{/privacy}","received_events_url":"https://api.github.com/users/durandom/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-07-05T19:32:23Z","updated_at":"2016-07-18T20:31:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/9616","html_url":"https://github.com/ManageIQ/manageiq/pull/9616","diff_url":"https://github.com/ManageIQ/manageiq/pull/9616.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/9616.patch"},"body":"Purpose or Intent\r\n-----------------\r\nThis is a replacement for closed #3227.\r\n\r\nThe purpose is to block provider events when too many duplicates are received in a short time. The particular method we monitored is `queue_event`. Duplicated events will not be placed to the queue.\r\n\r\nWhat defines \"too many\" and \"short time\" is configured in settings. The committed settings initially are just a placeholder. They are not optimized for real use.\r\n    \r\nAlso the feature is turned off in the settings by default. This work only reads the settings in base_manager. Each provider still needs to turn on the feature and define how to identify duplicates.\r\n\r\nLinks\r\n-----\r\n> #3227\r\n\r\n\r\nSteps for Testing/QA\r\n--------------------\r\n"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/233449343","html_url":"https://github.com/ManageIQ/manageiq/pull/9616#issuecomment-233449343","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/9616","id":233449343,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T20:31:49Z","updated_at":"2016-07-18T20:31:49Z","body":"<rubocop />Checked commits https://github.com/bzwei/manageiq/compare/f038789d1cb78811fca731f7c598e33ffdf5373f~...58c617fc31d42df422faae1ae58ca4fb1e6e4d0e with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1\n1 file checked, 1 offense detected\n\n**app/models/manageiq/providers/base_manager/event_catcher/runner.rb**\n- [ ] :grey_exclamation: - [Line 32](https://github.com/bzwei/manageiq/blob/58c617fc31d42df422faae1ae58ca4fb1e6e4d0e/app/models/manageiq/providers/base_manager/event_catcher/runner.rb#L32), Col 3 - [Metrics/AbcSize](http://rubydoc.info/gems/rubocop/0.37.2/RuboCop/Cop/Metrics/AbcSize) - Assignment Branch Condition size for configure_event_flooding_prevention is too high. [32.28/15]\n"}}
{"actor":{"display_login":"miq-bot"}}