{"action":"created","issue":{"url":"https://api.github.com/repos/crossfilter/universe/issues/6","repository_url":"https://api.github.com/repos/crossfilter/universe","labels_url":"https://api.github.com/repos/crossfilter/universe/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/crossfilter/universe/issues/6/comments","events_url":"https://api.github.com/repos/crossfilter/universe/issues/6/events","html_url":"https://github.com/crossfilter/universe/issues/6","id":141317336,"number":6,"title":"Track and manage queries (groups)","user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crossfilter/universe/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"etimberg","id":6757853,"avatar_url":"https://avatars.githubusercontent.com/u/6757853?v=3","gravatar_id":"","url":"https://api.github.com/users/etimberg","html_url":"https://github.com/etimberg","followers_url":"https://api.github.com/users/etimberg/followers","following_url":"https://api.github.com/users/etimberg/following{/other_user}","gists_url":"https://api.github.com/users/etimberg/gists{/gist_id}","starred_url":"https://api.github.com/users/etimberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etimberg/subscriptions","organizations_url":"https://api.github.com/users/etimberg/orgs","repos_url":"https://api.github.com/users/etimberg/repos","events_url":"https://api.github.com/users/etimberg/events{/privacy}","received_events_url":"https://api.github.com/users/etimberg/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-16T15:56:06Z","updated_at":"2016-03-20T23:18:12Z","closed_at":null,"body":"Right now, dimensions are tracked and managed with easy references in `universe.columns`, but the queries made on those columns are not tracked anywhere.  \r\n\r\n`universe.columns[n].queries` would be a great place to put these query objects.  \r\n\r\nWe could store there:\r\n- the original query object\r\n- crossfilter group\r\n- listeners/callbacks\r\n- post-aggregations (in the future)\r\n- etc.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/crossfilter/universe/issues/comments/199058065","html_url":"https://github.com/crossfilter/universe/issues/6#issuecomment-199058065","issue_url":"https://api.github.com/repos/crossfilter/universe/issues/6","id":199058065,"user":{"login":"tannerlinsley","id":5580297,"avatar_url":"https://avatars.githubusercontent.com/u/5580297?v=3","gravatar_id":"","url":"https://api.github.com/users/tannerlinsley","html_url":"https://github.com/tannerlinsley","followers_url":"https://api.github.com/users/tannerlinsley/followers","following_url":"https://api.github.com/users/tannerlinsley/following{/other_user}","gists_url":"https://api.github.com/users/tannerlinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/tannerlinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannerlinsley/subscriptions","organizations_url":"https://api.github.com/users/tannerlinsley/orgs","repos_url":"https://api.github.com/users/tannerlinsley/repos","events_url":"https://api.github.com/users/tannerlinsley/events{/privacy}","received_events_url":"https://api.github.com/users/tannerlinsley/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T23:18:12Z","updated_at":"2016-03-20T23:18:12Z","body":"Let me remember how it's roughly structured first:\r\n\r\nUniverse\r\n- cf (crossfilter instance)\r\n- columns []\r\n  - column {}\r\n    - key\r\n    - type\r\n    - dimension (crossfilter)\r\n    - listeners\r\n    - etc...\r\n    - queries []?\r\n\r\nOkay, so right now that query array doesn't exist, but the queries do.  They get returned here: https://github.com/crossfilter/universe/blob/master/src/query.js#L81 \r\n\r\nI'm not sure if that would be the correct place to track all of them, but I would start there, since each query is dependent on the column and its dimension.\r\n\r\nRe: first question\r\nI would think that it would most likely be what is currently being returned at https://github.com/crossfilter/universe/blob/master/src/query.js#L81 , plus some extra stuff:\r\n\r\n- queries []\r\n  - query {}\r\n    - originalQueryObject {} (currently not there)\r\n    - crossfilter instance (exists)\r\n    - crossfilter dimension instance (exists)\r\n    - crossfilter group instance (exists)\r\n    - universe instance (exists)\r\n    - listeners ? ...\r\n    - post aggregation api ? ...\r\n\r\nRe: second question\r\noriginal query object === `myQuery` below:\r\n\r\n```javascript\r\nvar myQuery = {groupBy: 'tag', select: {...}}\r\nuniverse.query(myQuery)\r\n\r\n\r\nI feel like this is scattered, let me know if I'm not being ver clear ;)\r\n"}}