{"action":"created","issue":{"url":"https://api.github.com/repos/magento/graphql-ce/issues/92","repository_url":"https://api.github.com/repos/magento/graphql-ce","labels_url":"https://api.github.com/repos/magento/graphql-ce/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/magento/graphql-ce/issues/92/comments","events_url":"https://api.github.com/repos/magento/graphql-ce/issues/92/events","html_url":"https://github.com/magento/graphql-ce/pull/92","id":331616372,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MzAyMjY3","number":92,"title":"[WIP] Get stock count and stock status via graphQL - Added stock_count for …","user":{"login":"minesh93","id":3218936,"node_id":"MDQ6VXNlcjMyMTg5MzY=","avatar_url":"https://avatars0.githubusercontent.com/u/3218936?v=4","gravatar_id":"","url":"https://api.github.com/users/minesh93","html_url":"https://github.com/minesh93","followers_url":"https://api.github.com/users/minesh93/followers","following_url":"https://api.github.com/users/minesh93/following{/other_user}","gists_url":"https://api.github.com/users/minesh93/gists{/gist_id}","starred_url":"https://api.github.com/users/minesh93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minesh93/subscriptions","organizations_url":"https://api.github.com/users/minesh93/orgs","repos_url":"https://api.github.com/users/minesh93/repos","events_url":"https://api.github.com/users/minesh93/events{/privacy}","received_events_url":"https://api.github.com/users/minesh93/received_events","type":"User","site_admin":false},"labels":[{"id":928142401,"node_id":"MDU6TGFiZWw5MjgxNDI0MDE=","url":"https://api.github.com/repos/magento/graphql-ce/labels/in-progress","name":"in-progress","color":"dd58a6","default":false},{"id":941453694,"node_id":"MDU6TGFiZWw5NDE0NTM2OTQ=","url":"https://api.github.com/repos/magento/graphql-ce/labels/requires-documentation","name":"requires-documentation","color":"f79a04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-12T14:36:36Z","updated_at":"2018-06-19T22:10:51Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/magento/graphql-ce/pulls/92","html_url":"https://github.com/magento/graphql-ce/pull/92","diff_url":"https://github.com/magento/graphql-ce/pull/92.diff","patch_url":"https://github.com/magento/graphql-ce/pull/92.patch"},"body":"### Description\r\nReturning stock data for product as that is not currently returned, done in the form of two attributes.\r\n`quantity_and_stock_status` returns the product data of quantity_and_stock_status.\r\nWhile stock_count returns the quantity from the Stock Item for that product. \r\n\r\nThis is still a work in progress so this could change in the future for more data to be exposed. Since stock_count is accessing the stockItem itself so more data can be accessed such as min_sale_qty or max_sale_qty. \r\n\r\n### Fixed Issues\r\n<!---\r\n    If relevant, please provide a list of fixed issues in the format magento/magento2#<issue_number>.\r\n    There could be 1 or more issues linked here and it will help us find some more information about the reasoning behind this change.\r\n-->\r\n1. magento/graphql-ce/#23: Return product stock data\r\n\r\n### Manual testing scenarios\r\n1. Adding quantity_and_stock_status or stock_count to the schema when running a query, it should return stock_count and quantity_and_stock_status as 1 or 0 if the product is in stock or out of stock.\r\n\r\n### Contribution checklist\r\n - [ ] Pull request has a meaningful description of its purpose\r\n - [ ] All commits are accompanied by meaningful commit messages\r\n - [ ] All new or changed code is covered with unit/integration tests (if applicable)\r\n - [ ] All automated tests passed successfully (all builds on Travis CI are green)\r\n"},"comment":{"url":"https://api.github.com/repos/magento/graphql-ce/issues/comments/398562609","html_url":"https://github.com/magento/graphql-ce/pull/92#issuecomment-398562609","issue_url":"https://api.github.com/repos/magento/graphql-ce/issues/92","id":398562609,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODU2MjYwOQ==","user":{"login":"paliarush","id":10828073,"node_id":"MDQ6VXNlcjEwODI4MDcz","avatar_url":"https://avatars0.githubusercontent.com/u/10828073?v=4","gravatar_id":"","url":"https://api.github.com/users/paliarush","html_url":"https://github.com/paliarush","followers_url":"https://api.github.com/users/paliarush/followers","following_url":"https://api.github.com/users/paliarush/following{/other_user}","gists_url":"https://api.github.com/users/paliarush/gists{/gist_id}","starred_url":"https://api.github.com/users/paliarush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paliarush/subscriptions","organizations_url":"https://api.github.com/users/paliarush/orgs","repos_url":"https://api.github.com/users/paliarush/repos","events_url":"https://api.github.com/users/paliarush/events{/privacy}","received_events_url":"https://api.github.com/users/paliarush/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T22:10:51Z","updated_at":"2018-06-19T22:10:51Z","author_association":"CONTRIBUTOR","body":"@minesh93 please remember to run web API functional tests for GraphQL and ensure that all fields you are touching, are covered with some assertions."}}
{"actor":{"display_login":"paliarush"}}