{"action":"closed","issue":{"url":"https://api.github.com/repos/contentful/contentful-management.rb/issues/160","repository_url":"https://api.github.com/repos/contentful/contentful-management.rb","labels_url":"https://api.github.com/repos/contentful/contentful-management.rb/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/contentful/contentful-management.rb/issues/160/comments","events_url":"https://api.github.com/repos/contentful/contentful-management.rb/issues/160/events","html_url":"https://github.com/contentful/contentful-management.rb/issues/160","id":323193101,"number":160,"title":"Problems with fetching entries by content type (bug?)","user":{"login":"a-lehdet","id":34674432,"avatar_url":"https://avatars3.githubusercontent.com/u/34674432?v=4","gravatar_id":"","url":"https://api.github.com/users/a-lehdet","html_url":"https://github.com/a-lehdet","followers_url":"https://api.github.com/users/a-lehdet/followers","following_url":"https://api.github.com/users/a-lehdet/following{/other_user}","gists_url":"https://api.github.com/users/a-lehdet/gists{/gist_id}","starred_url":"https://api.github.com/users/a-lehdet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-lehdet/subscriptions","organizations_url":"https://api.github.com/users/a-lehdet/orgs","repos_url":"https://api.github.com/users/a-lehdet/repos","events_url":"https://api.github.com/users/a-lehdet/events{/privacy}","received_events_url":"https://api.github.com/users/a-lehdet/received_events","type":"User","site_admin":false},"labels":[{"id":98052652,"url":"https://api.github.com/repos/contentful/contentful-management.rb/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"dlitvakb","id":1032706,"avatar_url":"https://avatars1.githubusercontent.com/u/1032706?v=4","gravatar_id":"","url":"https://api.github.com/users/dlitvakb","html_url":"https://github.com/dlitvakb","followers_url":"https://api.github.com/users/dlitvakb/followers","following_url":"https://api.github.com/users/dlitvakb/following{/other_user}","gists_url":"https://api.github.com/users/dlitvakb/gists{/gist_id}","starred_url":"https://api.github.com/users/dlitvakb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlitvakb/subscriptions","organizations_url":"https://api.github.com/users/dlitvakb/orgs","repos_url":"https://api.github.com/users/dlitvakb/repos","events_url":"https://api.github.com/users/dlitvakb/events{/privacy}","received_events_url":"https://api.github.com/users/dlitvakb/received_events","type":"User","site_admin":false},"assignees":[{"login":"dlitvakb","id":1032706,"avatar_url":"https://avatars1.githubusercontent.com/u/1032706?v=4","gravatar_id":"","url":"https://api.github.com/users/dlitvakb","html_url":"https://github.com/dlitvakb","followers_url":"https://api.github.com/users/dlitvakb/followers","following_url":"https://api.github.com/users/dlitvakb/following{/other_user}","gists_url":"https://api.github.com/users/dlitvakb/gists{/gist_id}","starred_url":"https://api.github.com/users/dlitvakb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlitvakb/subscriptions","organizations_url":"https://api.github.com/users/dlitvakb/orgs","repos_url":"https://api.github.com/users/dlitvakb/repos","events_url":"https://api.github.com/users/dlitvakb/events{/privacy}","received_events_url":"https://api.github.com/users/dlitvakb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-05-15T12:20:48Z","updated_at":"2018-05-15T14:04:33Z","closed_at":"2018-05-15T14:04:33Z","author_association":"NONE","body":"Hi,\r\n\r\nI've noticed some weird behaviour when attempting to fetch entries by content type like this:\r\n\r\n```\r\nrequire \"contentful/management\"\r\n\r\nclient = Contentful::Management::Client.new(\"<TOKEN>\")\r\nenvironment = client.environments(\"<SPACE-ID>\").find(\"master\")\r\n\r\nenvironment.entries.all(content_type: \"theme\", limit: 10).each do |theme|\r\n  puts theme.id\r\nend\r\n```\r\n\r\nI can determine from the entry IDs printed out, that the entries in question are of *ALL* content types, not of \"theme\" as requested. Furthermore, the limit is fixed to 100, no matter what I set as the `limit:` parameter value.\r\n\r\nBefore environments where introduced, the comparable functionality would work just fine like this:\r\n\r\n`space.entries.all(content_type: \"theme\", limit: 10)`\r\n\r\nI can get it to work like this, but I didn't figure out how to set a limit.\r\n\r\n```\r\nenvironment.content_types.find(\"theme\").entries.all.each do |theme|\r\n  puts theme.id\r\nend\r\n```\r\n\r\nAm I doing something wrong or is this a genuine bug?\r\n\r\n"}}
{"actor":{"display_login":"dlitvakb"}}