{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/5992","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/5992/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/5992/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/5992/events","html_url":"https://github.com/magento/magento2/issues/5992","id":169390660,"node_id":"MDU6SXNzdWUxNjkzOTA2NjA=","number":5992,"title":"Magento\\Catalog\\Model\\Category\\AttributeRepository does not fulfill its service contract","user":{"login":"schmengler","id":367320,"node_id":"MDQ6VXNlcjM2NzMyMA==","avatar_url":"https://avatars1.githubusercontent.com/u/367320?v=4","gravatar_id":"","url":"https://api.github.com/users/schmengler","html_url":"https://github.com/schmengler","followers_url":"https://api.github.com/users/schmengler/followers","following_url":"https://api.github.com/users/schmengler/following{/other_user}","gists_url":"https://api.github.com/users/schmengler/gists{/gist_id}","starred_url":"https://api.github.com/users/schmengler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmengler/subscriptions","organizations_url":"https://api.github.com/users/schmengler/orgs","repos_url":"https://api.github.com/users/schmengler/repos","events_url":"https://api.github.com/users/schmengler/events{/privacy}","received_events_url":"https://api.github.com/users/schmengler/received_events","type":"User","site_admin":false},"labels":[{"id":374038437,"node_id":"MDU6TGFiZWwzNzQwMzg0Mzc=","url":"https://api.github.com/repos/magento/magento2/labels/Component:%20Catalog","name":"Component: Catalog","color":"7fb703","default":false},{"id":851946998,"node_id":"MDU6TGFiZWw4NTE5NDY5OTg=","url":"https://api.github.com/repos/magento/magento2/labels/Event:%20distributed-cd","name":"Event: distributed-cd","color":"fef2c0","default":false},{"id":1080899176,"node_id":"MDU6TGFiZWwxMDgwODk5MTc2","url":"https://api.github.com/repos/magento/magento2/labels/Event:%20squashtoberfest","name":"Event: squashtoberfest","color":"ededed","default":false},{"id":686420665,"node_id":"MDU6TGFiZWw2ODY0MjA2NjU=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Clear%20Description","name":"Issue: Clear Description","color":"0e8a16","default":false},{"id":686476746,"node_id":"MDU6TGFiZWw2ODY0NzY3NDY=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Confirmed","name":"Issue: Confirmed","color":"0e8a16","default":false},{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Format%20is%20valid","name":"Issue: Format is valid","color":"0e8a16","default":false},{"id":21716835,"node_id":"MDU6TGFiZWwyMTcxNjgzNQ==","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Ready%20for%20Work","name":"Issue: Ready for Work","color":"0e8a16","default":false},{"id":686477069,"node_id":"MDU6TGFiZWw2ODY0NzcwNjk=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.1.x","name":"Reproduced on 2.1.x","color":"e99695","default":false},{"id":686477126,"node_id":"MDU6TGFiZWw2ODY0NzcxMjY=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.2.x","name":"Reproduced on 2.2.x","color":"e99695","default":false},{"id":686477167,"node_id":"MDU6TGFiZWw2ODY0NzcxNjc=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.3.x","name":"Reproduced on 2.3.x","color":"e99695","default":false},{"id":147131376,"node_id":"MDU6TGFiZWwxNDcxMzEzNzY=","url":"https://api.github.com/repos/magento/magento2/labels/bug%20report","name":"bug report","color":"d93f0b","default":false},{"id":896738805,"node_id":"MDU6TGFiZWw4OTY3Mzg4MDU=","url":"https://api.github.com/repos/magento/magento2/labels/triage%20wanted","name":"triage wanted","color":"47ef53","default":false}],"state":"open","locked":false,"assignee":{"login":"navarr","id":145128,"node_id":"MDQ6VXNlcjE0NTEyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/145128?v=4","gravatar_id":"","url":"https://api.github.com/users/navarr","html_url":"https://github.com/navarr","followers_url":"https://api.github.com/users/navarr/followers","following_url":"https://api.github.com/users/navarr/following{/other_user}","gists_url":"https://api.github.com/users/navarr/gists{/gist_id}","starred_url":"https://api.github.com/users/navarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navarr/subscriptions","organizations_url":"https://api.github.com/users/navarr/orgs","repos_url":"https://api.github.com/users/navarr/repos","events_url":"https://api.github.com/users/navarr/events{/privacy}","received_events_url":"https://api.github.com/users/navarr/received_events","type":"User","site_admin":false},"assignees":[{"login":"navarr","id":145128,"node_id":"MDQ6VXNlcjE0NTEyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/145128?v=4","gravatar_id":"","url":"https://api.github.com/users/navarr","html_url":"https://github.com/navarr","followers_url":"https://api.github.com/users/navarr/followers","following_url":"https://api.github.com/users/navarr/following{/other_user}","gists_url":"https://api.github.com/users/navarr/gists{/gist_id}","starred_url":"https://api.github.com/users/navarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navarr/subscriptions","organizations_url":"https://api.github.com/users/navarr/orgs","repos_url":"https://api.github.com/users/navarr/repos","events_url":"https://api.github.com/users/navarr/events{/privacy}","received_events_url":"https://api.github.com/users/navarr/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-04T14:39:04Z","updated_at":"2018-10-14T15:02:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--- Provide a general summary of the issue in the Title above -->\n\n<!--- Before adding new issues, please, check this article https://github.com/magento/magento2/wiki/Issue-reporting-guidelines-->\n### Preconditions\n1. Magento 2.1.0\n### Steps to reproduce\n1. Write an integration test case as follows: \n\n```\npublic function testCategoryAttributeExists($attributeCode)\n{\n    $categoryAttributesRepository = \\Magento\\TestFramework\\ObjectManager::getInstance()->get(\n        \\Magento\\Catalog\\Api\\CategoryAttributeRepositoryInterface::class\n    );\n    $this->assertInstanceOf(\n        \\Magento\\Catalog\\Api\\Data\\CategoryAttributeInterface::class,\n        $categoryAttributesRepository->get($attributeCode)\n    );\n}\n```\n1.  Pass an existing attribute code via data provider\n2.  Run the test\n### Expected result\n1.  The test passes, because the contract of `Magento\\Catalog\\Api\\CategoryAttributeRepositoryInterface` states:\n\n```\n    /**\n     * Retrieve specific attribute\n     *\n     * @param string $attributeCode\n     * @return \\Magento\\Catalog\\Api\\Data\\CategoryAttributeInterface\n     */\n    public function get($attributeCode);\n```\n### Actual result\n1. The test fails with a message like this\n\n> Failed asserting that Magento\\Catalog\\Model\\ResourceModel\\Eav\\Attribute\\Interceptor Object (...) is an instance of interface \"Magento\\Catalog\\Api\\Data\\CategoryAttributeInterface\".\n\n<!--- (This may be platform independent comment) -->\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/429633523","html_url":"https://github.com/magento/magento2/issues/5992#issuecomment-429633523","issue_url":"https://api.github.com/repos/magento/magento2/issues/5992","id":429633523,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTYzMzUyMw==","user":{"login":"navarr","id":145128,"node_id":"MDQ6VXNlcjE0NTEyOA==","avatar_url":"https://avatars3.githubusercontent.com/u/145128?v=4","gravatar_id":"","url":"https://api.github.com/users/navarr","html_url":"https://github.com/navarr","followers_url":"https://api.github.com/users/navarr/followers","following_url":"https://api.github.com/users/navarr/following{/other_user}","gists_url":"https://api.github.com/users/navarr/gists{/gist_id}","starred_url":"https://api.github.com/users/navarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navarr/subscriptions","organizations_url":"https://api.github.com/users/navarr/orgs","repos_url":"https://api.github.com/users/navarr/repos","events_url":"https://api.github.com/users/navarr/events{/privacy}","received_events_url":"https://api.github.com/users/navarr/received_events","type":"User","site_admin":false},"created_at":"2018-10-14T15:02:56Z","updated_at":"2018-10-14T15:02:56Z","author_association":"MEMBER","body":"I see why this gained so little traction.  The model that's being returned here is also used for Product attributes, and implements its interface.\r\n\r\nBoth interfaces declare an ENTITY_TYPE_CODE constant and so the interfaces are incompatible for use together.\r\n\r\nA proper fix for this means the creation of a new model"}}
{"actor":{"display_login":"navarr"}}