{"action":"created","issue":{"url":"https://api.github.com/repos/candlepin/candlepin/issues/1056","labels_url":"https://api.github.com/repos/candlepin/candlepin/issues/1056/labels{/name}","comments_url":"https://api.github.com/repos/candlepin/candlepin/issues/1056/comments","events_url":"https://api.github.com/repos/candlepin/candlepin/issues/1056/events","html_url":"https://github.com/candlepin/candlepin/pull/1056","id":126025837,"number":1056,"title":"Storage Band Implementation Backport to candlepin-0.9.51-HOTFIX","user":{"login":"mstead","id":218800,"avatar_url":"https://avatars.githubusercontent.com/u/218800?v=3","gravatar_id":"","url":"https://api.github.com/users/mstead","html_url":"https://github.com/mstead","followers_url":"https://api.github.com/users/mstead/followers","following_url":"https://api.github.com/users/mstead/following{/other_user}","gists_url":"https://api.github.com/users/mstead/gists{/gist_id}","starred_url":"https://api.github.com/users/mstead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstead/subscriptions","organizations_url":"https://api.github.com/users/mstead/orgs","repos_url":"https://api.github.com/users/mstead/repos","events_url":"https://api.github.com/users/mstead/events{/privacy}","received_events_url":"https://api.github.com/users/mstead/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-11T20:08:42Z","updated_at":"2016-01-11T20:35:42Z","closed_at":"2016-01-11T20:35:41Z","pull_request":{"url":"https://api.github.com/repos/candlepin/candlepin/pulls/1056","html_url":"https://github.com/candlepin/candlepin/pull/1056","diff_url":"https://github.com/candlepin/candlepin/pull/1056.diff","patch_url":"https://github.com/candlepin/candlepin/pull/1056.patch"},"body":"DO NOT MERGE YET\r\n---------------------------------\r\nWe probably should branch for prod since CDK will be released soon.\r\n\r\nImplemented storage band counting. Each entitlement\r\nwill equate to 1TB of coverage and marketing products\r\nwill use the multiplier such that sub quantity purchased\r\n* multiplier will yeild pool quantity (total capacity in TB).\r\n\r\nFor example:\r\npool_quanity = sub_qty_bought * (storage_band_attr * multiplier)\r\n             = 1 * (1 * 256)\r\n             = 256\r\n\r\nThe resulting pool will have a quantity of 256, which can\r\ncover 256TB of storage.\r\n\r\nThe rules will calculate a system's coverage based on a\r\nband.storage.usage fact.\r\n\r\nConsider a system is using 128TB:\r\n- a quantity of 128 entitlements will cover the system (green).\r\n- a quantity < 128 entitlements will partially cover the\r\n  system (yellow)\r\n- no entitlements (red)\r\n\r\nMarketing Product (requirements)\r\n---------------------------------\r\nThe marketing product should define a multiplier that is equal\r\nto the total capacity in TBs. It must be stackable and must\r\ndefine the storage_band attribute (should be set to 1).\r\n\r\n- stacking_id: \"product_stack_id\"\r\n- mutli-entitlement: \"yes\"\r\n- storage_band: 1\r\n\r\nConsumer Requirements\r\n-------------------------\r\nThe consumer must have the band.storage.usage fact set to\r\nthe total TB that it is using.\r\n\r\nNOTE: If this fact is not set, the rules will assume a value\r\n      of 1TB.\r\n\r\n- band.storage.usage: 128"},"comment":{"url":"https://api.github.com/repos/candlepin/candlepin/issues/comments/170682107","html_url":"https://github.com/candlepin/candlepin/pull/1056#issuecomment-170682107","issue_url":"https://api.github.com/repos/candlepin/candlepin/issues/1056","id":170682107,"user":{"login":"mstead","id":218800,"avatar_url":"https://avatars.githubusercontent.com/u/218800?v=3","gravatar_id":"","url":"https://api.github.com/users/mstead","html_url":"https://github.com/mstead","followers_url":"https://api.github.com/users/mstead/followers","following_url":"https://api.github.com/users/mstead/following{/other_user}","gists_url":"https://api.github.com/users/mstead/gists{/gist_id}","starred_url":"https://api.github.com/users/mstead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstead/subscriptions","organizations_url":"https://api.github.com/users/mstead/orgs","repos_url":"https://api.github.com/users/mstead/repos","events_url":"https://api.github.com/users/mstead/events{/privacy}","received_events_url":"https://api.github.com/users/mstead/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T20:35:41Z","updated_at":"2016-01-11T20:35:41Z","body":"Creating new branch - closing for now."}}