{"action":"created","issue":{"url":"https://api.github.com/repos/domagojk/redux-orchestrate/issues/7","repository_url":"https://api.github.com/repos/domagojk/redux-orchestrate","labels_url":"https://api.github.com/repos/domagojk/redux-orchestrate/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/domagojk/redux-orchestrate/issues/7/comments","events_url":"https://api.github.com/repos/domagojk/redux-orchestrate/issues/7/events","html_url":"https://github.com/domagojk/redux-orchestrate/pull/7","id":240231402,"number":7,"title":"Add ability to define rules dynamically","user":{"login":"mkuklis","id":63545,"avatar_url":"https://avatars1.githubusercontent.com/u/63545?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuklis","html_url":"https://github.com/mkuklis","followers_url":"https://api.github.com/users/mkuklis/followers","following_url":"https://api.github.com/users/mkuklis/following{/other_user}","gists_url":"https://api.github.com/users/mkuklis/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuklis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuklis/subscriptions","organizations_url":"https://api.github.com/users/mkuklis/orgs","repos_url":"https://api.github.com/users/mkuklis/repos","events_url":"https://api.github.com/users/mkuklis/events{/privacy}","received_events_url":"https://api.github.com/users/mkuklis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-03T17:33:41Z","updated_at":"2017-07-03T18:27:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/domagojk/redux-orchestrate/pulls/7","html_url":"https://github.com/domagojk/redux-orchestrate/pull/7","diff_url":"https://github.com/domagojk/redux-orchestrate/pull/7.diff","patch_url":"https://github.com/domagojk/redux-orchestrate/pull/7.patch"},"body":"Hi @domagojk I really like `redux-orchestrate` and its simplicity. I ran into a situation where I need to define rules dynamically (the `processManager` is empty when the middleware is configured). This PR introduces a way to add rules in a dynamic fashion:\r\n````js\r\nconst store = createStore(reducer, applyMiddleware(orchestrate()))\r\n\r\n// ...\r\n\r\nconst rules = [{\r\n    case: 'TEST',\r\n    dispatch: ['FIRST', 'SECOND']\r\n}]\r\n\r\norchestrate.addRules(rules)\r\n\r\n````\r\n\r\nWould you consider adding it? \r\n\r\nThank you again for this great lib!"},"comment":{"url":"https://api.github.com/repos/domagojk/redux-orchestrate/issues/comments/312709517","html_url":"https://github.com/domagojk/redux-orchestrate/pull/7#issuecomment-312709517","issue_url":"https://api.github.com/repos/domagojk/redux-orchestrate/issues/7","id":312709517,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars3.githubusercontent.com/u/8655789?v=3","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T18:27:27Z","updated_at":"2017-07-03T18:27:27Z","body":"# [Codecov](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=h1) Report\n> Merging [#7](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=desc) into [master](https://codecov.io/gh/domagojk/redux-orchestrate/commit/724cef3f965754faa559775b6234ea4faae57146?src=pr&el=desc) will **decrease** coverage by `0.46%`.\n> The diff coverage is `91.35%`.\n\n[![Impacted file tree graph](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7/graphs/tree.svg?height=150&width=650&token=ZF8NLcvl4o&src=pr)](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff             @@\n##           master       #7      +/-   ##\n==========================================\n- Coverage   94.11%   93.65%   -0.47%     \n==========================================\n  Files           3        3              \n  Lines         119      126       +7     \n  Branches       22       24       +2     \n==========================================\n+ Hits          112      118       +6     \n+ Misses          7        6       -1     \n- Partials        0        2       +2\n```\n\n\n| [Impacted Files](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [src/index.js](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=tree#diff-c3JjL2luZGV4Lmpz) | `92% <91.35%> (-0.48%)` | :arrow_down: |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=footer). Last update [724cef3...011aba1](https://codecov.io/gh/domagojk/redux-orchestrate/pull/7?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov-io"}}