{"action":"created","issue":{"url":"https://api.github.com/repos/infinitered/rmq/issues/274","labels_url":"https://api.github.com/repos/infinitered/rmq/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/infinitered/rmq/issues/274/comments","events_url":"https://api.github.com/repos/infinitered/rmq/issues/274/events","html_url":"https://github.com/infinitered/rmq/issues/274","id":89772249,"number":274,"title":"Update/Clarify rmq.all versus rmq(view).all","user":{"login":"squidpunch","id":682263,"avatar_url":"https://avatars.githubusercontent.com/u/682263?v=3","gravatar_id":"","url":"https://api.github.com/users/squidpunch","html_url":"https://github.com/squidpunch","followers_url":"https://api.github.com/users/squidpunch/followers","following_url":"https://api.github.com/users/squidpunch/following{/other_user}","gists_url":"https://api.github.com/users/squidpunch/gists{/gist_id}","starred_url":"https://api.github.com/users/squidpunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squidpunch/subscriptions","organizations_url":"https://api.github.com/users/squidpunch/orgs","repos_url":"https://api.github.com/users/squidpunch/repos","events_url":"https://api.github.com/users/squidpunch/events{/privacy}","received_events_url":"https://api.github.com/users/squidpunch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-20T13:45:47Z","updated_at":"2015-06-20T16:20:04Z","closed_at":null,"body":"when I build a new app `rmq create blah` then add `rmq.append(UIView).tag(:stuff).append(UIButton)`\r\n\r\n```\r\n(main)> rmq.all.count\r\n=> 3\r\n(main)> rmq(:stuff).count\r\n=> 1\r\n(main)> rmq(:stuff).all.count\r\n# I really wouldnt expect \"all\" to go outside of the filtered scope but here is the result\r\n=> 3\r\n(main)>\r\n```\r\n\r\nThe view has the following appended: \r\n- 1 UILabel (from the template)\r\n- 1 UIView (tagged :stuff)`\r\n- 1 UIButton (inside the UIView appended)\r\n\r\nI would expect this to actually report as:\r\n```\r\n(main)> rmq.all.count\r\n=> 3 - because there are 3 views appended to the root - and this is correct today\r\n(main)> rmq(:stuff).count\r\n=> 1 - also correct, there is only one tagged with that tag/style\r\n(main)> rmq(:stuff).all.count\r\n=> 1 - the view that i selected only contains 1 item (or should it be 2 to include self by default?)\r\n(main)>\r\n```\r\nwe can get the expected results by using `rmq(:stuff).find.count` but `.all` in a filtered context is confusing to me to return all ignoring the filter\r\n\r\nwhat do others think?\r\n"},"comment":{"url":"https://api.github.com/repos/infinitered/rmq/issues/comments/113787425","html_url":"https://github.com/infinitered/rmq/issues/274#issuecomment-113787425","issue_url":"https://api.github.com/repos/infinitered/rmq/issues/274","id":113787425,"user":{"login":"GantMan","id":997157,"avatar_url":"https://avatars.githubusercontent.com/u/997157?v=3","gravatar_id":"","url":"https://api.github.com/users/GantMan","html_url":"https://github.com/GantMan","followers_url":"https://api.github.com/users/GantMan/followers","following_url":"https://api.github.com/users/GantMan/following{/other_user}","gists_url":"https://api.github.com/users/GantMan/gists{/gist_id}","starred_url":"https://api.github.com/users/GantMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GantMan/subscriptions","organizations_url":"https://api.github.com/users/GantMan/orgs","repos_url":"https://api.github.com/users/GantMan/repos","events_url":"https://api.github.com/users/GantMan/events{/privacy}","received_events_url":"https://api.github.com/users/GantMan/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T16:20:04Z","updated_at":"2015-06-20T16:20:04Z","body":"O!  Makes sense.  I didn't think of nested views.  good call."}}