{"action":"created","issue":{"url":"https://api.github.com/repos/meteor-velocity/velocity/issues/309","labels_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/309/comments","events_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/309/events","html_url":"https://github.com/meteor-velocity/velocity/issues/309","id":67505564,"number":309,"title":"Refactor collections to Velocity object","user":{"login":"alanning","id":749324,"avatar_url":"https://avatars.githubusercontent.com/u/749324?v=3","gravatar_id":"","url":"https://api.github.com/users/alanning","html_url":"https://github.com/alanning","followers_url":"https://api.github.com/users/alanning/followers","following_url":"https://api.github.com/users/alanning/following{/other_user}","gists_url":"https://api.github.com/users/alanning/gists{/gist_id}","starred_url":"https://api.github.com/users/alanning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanning/subscriptions","organizations_url":"https://api.github.com/users/alanning/orgs","repos_url":"https://api.github.com/users/alanning/repos","events_url":"https://api.github.com/users/alanning/events{/privacy}","received_events_url":"https://api.github.com/users/alanning/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-10T04:17:58Z","updated_at":"2015-04-16T20:59:03Z","closed_at":null,"body":"**For Discussion:**\r\n\r\nWe are exporting every collection.  Better to namespace the collections under the `Velocity` object.\r\n\r\n*NOTE: This would be a breaking change!*\r\n\r\n\r\n*Current*\r\n```\r\n  // Package Exports\r\n  api.export('Velocity', BOTH);\r\n  api.export('VelocityTestFiles', BOTH);\r\n  api.export('VelocityFixtureFiles', BOTH);\r\n  api.export('VelocityTestReports', BOTH);\r\n  api.export('VelocityAggregateReports', BOTH);\r\n  api.export('VelocityLogs', BOTH);\r\n  api.export('VelocityMirrors', BOTH);\r\n  api.export('VelocityOptions', BOTH);\r\n```\r\n\r\n*Proposed* \r\n```\r\n  // Package Exports\r\n  api.export('Velocity', BOTH);\r\n\r\n  // New `collections` object on `Velocity`\r\n  Velocity.collections = {\r\n    TestFiles: new Mongo.Collection(...),\r\n    FixtureFiles: new Mongo.Collection(...),\r\n    TestReports: new Mongo.Collection(...),\r\n    AggregateReports: new Mongo.Collection(...),\r\n    Logs: new Mongo.Collection(...),\r\n    Mirrors: new Mongo.Collection(...),\r\n    Options: new Mongo.Collection(...)\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/meteor-velocity/velocity/issues/comments/93838329","html_url":"https://github.com/meteor-velocity/velocity/issues/309#issuecomment-93838329","issue_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/309","id":93838329,"user":{"login":"samhatoum","id":2021955,"avatar_url":"https://avatars.githubusercontent.com/u/2021955?v=3","gravatar_id":"","url":"https://api.github.com/users/samhatoum","html_url":"https://github.com/samhatoum","followers_url":"https://api.github.com/users/samhatoum/followers","following_url":"https://api.github.com/users/samhatoum/following{/other_user}","gists_url":"https://api.github.com/users/samhatoum/gists{/gist_id}","starred_url":"https://api.github.com/users/samhatoum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samhatoum/subscriptions","organizations_url":"https://api.github.com/users/samhatoum/orgs","repos_url":"https://api.github.com/users/samhatoum/repos","events_url":"https://api.github.com/users/samhatoum/events{/privacy}","received_events_url":"https://api.github.com/users/samhatoum/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T20:59:03Z","updated_at":"2015-04-16T20:59:03Z","body":":+1: "}}