{"action":"created","comment":{"url":"https://api.github.com/repos/meteor/guide/pulls/comments/43465142","id":43465142,"diff_hunk":"@@ -0,0 +1,33 @@\n+# Data Loading and Management\n+\n+1. Publications + Subscriptions\n+  1. What are they? - compare REST endpoint\n+  2. How do they work? - talk about briding collections\n+  3. What's a pub / what's a sub\n+2. Defining a publication on the server\n+  1. Rules around what arguments it should take\n+  2. Where should it go? (which package -- depends on universality)\n+3. Subscribing on the client\n+  1. Subscriptions should be initiated by templates/components that need the data\n+  2. Global required data should be subscribed by an always there \"layout\" template\n+  3. Retrieve the data from the sub at the same point as subscribing, pass down and filter via `cursor-utils`","path":"outlines/data-loading.md","position":13,"original_position":13,"commit_id":"442a30aa3fb7345cfb2d3248bf9186d581306273","original_commit_id":"33aba7aa46ad533ffdea95133615fb9fd86aa56e","user":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"body":"Yeah sgtm.","created_at":"2015-10-30T01:47:36Z","updated_at":"2015-10-30T01:47:36Z","html_url":"https://github.com/meteor/guide/pull/63#discussion_r43465142","pull_request_url":"https://api.github.com/repos/meteor/guide/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/meteor/guide/pulls/comments/43465142"},"html":{"href":"https://github.com/meteor/guide/pull/63#discussion_r43465142"},"pull_request":{"href":"https://api.github.com/repos/meteor/guide/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/meteor/guide/pulls/63","id":48961049,"html_url":"https://github.com/meteor/guide/pull/63","diff_url":"https://github.com/meteor/guide/pull/63.diff","patch_url":"https://github.com/meteor/guide/pull/63.patch","issue_url":"https://api.github.com/repos/meteor/guide/issues/63","number":63,"state":"open","locked":false,"title":"First pass at data loading outline","user":{"login":"tmeasday","id":132554,"avatar_url":"https://avatars.githubusercontent.com/u/132554?v=3","gravatar_id":"","url":"https://api.github.com/users/tmeasday","html_url":"https://github.com/tmeasday","followers_url":"https://api.github.com/users/tmeasday/followers","following_url":"https://api.github.com/users/tmeasday/following{/other_user}","gists_url":"https://api.github.com/users/tmeasday/gists{/gist_id}","starred_url":"https://api.github.com/users/tmeasday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmeasday/subscriptions","organizations_url":"https://api.github.com/users/tmeasday/orgs","repos_url":"https://api.github.com/users/tmeasday/repos","events_url":"https://api.github.com/users/tmeasday/events{/privacy}","received_events_url":"https://api.github.com/users/tmeasday/received_events","type":"User","site_admin":false},"body":"<a href='#crh-start'></a><a href='#crh-data-%7B%22processed%22%3A%20%5B%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43217143%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43217288%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43217353%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43217509%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285715%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285767%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285860%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285985%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43286160%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43286270%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43286325%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43286364%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43334831%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43334845%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43334938%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43334961%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43335025%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43335955%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43346939%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43346969%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43347306%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43347307%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43347308%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43347309%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43347310%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43463728%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23issuecomment-152373997%22%2C%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43465142%22%5D%2C%20%22comments%22%3A%20%7B%22General%20Comment%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23issuecomment-152373997%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Did%20another%20pass%20at%20this%2C%20added%20some%20details.%22%2C%20%22created_at%22%3A%20%222015-10-30T01%3A24%3A08Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%5D%2C%20%22title%22%3A%20%22General%20Comment%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%205%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43217143%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Briding%3F%22%2C%20%22created_at%22%3A%20%222015-10-28T04%3A20%3A03Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22Bridging%22%2C%20%22created_at%22%3A%20%222015-10-28T04%3A24%3A00Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22I%20guess%20I%27m%20not%20really%20sure%20what%20it%20means%20to%20bridge%20collections%20-%20what%20does%20this%20bullet%20represent%3F%22%2C%20%22created_at%22%3A%20%222015-10-28T04%3A25%3A39Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22Oh%2C%20like%20the%20conceptual%20idea%20that%20a%20publication%27s%20purpose%20is%20to%20pump%20data%20from%20a%20server-side%20collection%20into%20the%20client%20side%20collection%20with%20the%20same%20name%20%28typically%29.%20%22%2C%20%22created_at%22%3A%20%222015-10-28T04%3A29%3A59Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22%3A%2B1%3A%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A09%3A13Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%2033%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43286325%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Is%20this%20%60simple%3Arest%60%3F%20Or%20something%20else%3F%20%60http-publish%60%3F%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A09%3A00Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22I%20thought%20it%20was%20%60simple%3Arest%60%22%2C%20%22created_at%22%3A%20%222015-10-29T00%3A00%3A31Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22%3A%2B1%3A%3Ca%20href%3D%27%23crh-update-none%27%3E%3C/a%3E%22%2C%20%22created_at%22%3A%20%222015-10-29T04%3A09%3A46Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%2030%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43286270%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22This%20should%20include%20publishing%20transformed%20data%20from%20Mongo%20into%20a%20differently-named%20collection%20on%20the%20client%2C%20to%20emphasize%20some%20strategies%20for%20decoupling%20your%20backend%20data%20model%20from%20your%20frontend%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A08%3A37Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22%3A%2B1%3A%3Ca%20href%3D%27%23crh-update-none%27%3E%3C/a%3E%22%2C%20%22created_at%22%3A%20%222015-10-29T04%3A09%3A46Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%2024%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285985%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22It%20would%20be%20great%20if%20the%20final%20outline%20had%20a%20list%20of%20the%20misconceptions%20you%20intend%20to%20cover%20here.%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A06%3A31Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22It%27s%20really%20just%20one%20--%20that%20the%20publication%20will%20be%20reactive%20like%20it%20would%20be%20on%20the%20client%20if%20it%20was%20in%20an%20autorun%22%2C%20%22created_at%22%3A%20%222015-10-29T04%3A00%3A03Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22%3A%2B1%3A%3Ca%20href%3D%27%23crh-update-none%27%3E%3C/a%3E%22%2C%20%22created_at%22%3A%20%222015-10-29T04%3A09%3A47Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%2016%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285767%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Is%20this%20about%20how%20subscriptions%20react%20to%20changing%20arguments%20inside%20autoruns%3F%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A05%3A02Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22Yes.%20Sorry%20if%20it%20was%20unclear%2C%20will%20update.%22%2C%20%22created_at%22%3A%20%222015-10-28T23%3A59%3A06Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22%3A%2B1%3A%3Ca%20href%3D%27%23crh-update-none%27%3E%3C/a%3E%22%2C%20%22created_at%22%3A%20%222015-10-29T04%3A09%3A47Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%2017%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285860%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22I%20think%20scoping%20is%20important%20-%20how%20should%20I%20control%20who%20has%20access%20to%20the%20store%27s%20data%3F%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A05%3A43Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22I%27m%20not%20quite%20sure%20what%20you%20mean%20here.%20Do%20you%20mean%20a%20convention%20around%20placing%20stores%20on%20namespaces%20like%20you%20would%20other%20module%20specific%20parts%3F%22%2C%20%22created_at%22%3A%20%222015-10-29T03%3A59%3A21Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%2028%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43286160%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22If%20this%20is%20actually%20impossible%2C%20do%20we%20need%20a%20code%20item%20for%20this%3F%20I%20bet%20it%20can%27t%20be%20that%20hard%20since%20we%20already%20have%20some%20plumbing%20for%20%60userId%60%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A07%3A40Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22Well%20assuming%20my%20idea%20is%20a%20good%20one%2C%20I%27ll%20leave%20it%20with%20you%20as%20to%20how%20hard%20it%20is%20to%20implement%20my%20solution.%20I%20would%20guess%20low/medium%20difficulty.%22%2C%20%22created_at%22%3A%20%222015-10-29T00%3A00%3A04Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22We%20should%20file%20a%20code%20issue%20for%20it%20and%20talk%20there.%22%2C%20%22created_at%22%3A%20%222015-10-29T00%3A01%3A21Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22https%3A//github.com/meteor/guide/issues/70%22%2C%20%22created_at%22%3A%20%222015-10-29T00%3A15%3A06Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22%3A%2B1%3A%3Ca%20href%3D%27%23crh-update-complete%27%3E%3C/a%3E%22%2C%20%22created_at%22%3A%20%222015-10-29T04%3A09%3A47Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%2C%20%22Pull%2033aba7aa46ad533ffdea95133615fb9fd86aa56e%20outlines/data-loading.md%2013%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/meteor/guide/pull/63%23discussion_r43285715%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22Is%20this%20basically%20saying%2C%20all%20of%20your%20subscriptions%20and%20%60find%60%20calls%20should%20be%20in%20the%20same%20file/right%20next%20to%20each%20other%3F%5Cr%5Cn%5Cr%5CnDo%20we%20have%20any%20strategies%20for%20mitigating%20cross-talk%3F%22%2C%20%22created_at%22%3A%20%222015-10-28T17%3A04%3A39Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%2C%20%7B%22body%22%3A%20%22Yes%2C%20that%27s%20what%20I%27m%20basically%20saying.%20It%27s%20probably%20not%20a%20hard%20and%20fast%20rule%20%28e.g.%20%60Meteor.user%28%29%60%29%2C%20but%20a%20good%20rule%20of%20thumb.%5Cr%5Cn%5Cr%5CnCross%20talk%20between%20subscriptions%3F%20At%20this%20point%20I%20think%20it%27s%20just%20%5C%22use%20the%20same%20query%20to%20get%20data%20out%20that%20you%20used%20to%20put%20it%20in%5C%22.%20Something%20like%20%40sachag%27s%20package%20would%20obviously%20help%20with%20this.%22%2C%20%22created_at%22%3A%20%222015-10-28T23%3A58%3A54Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22PS%20%60cursor-utils%60%20isn%27t%20actually%20a%20real%20thing.%20This%20was%20the%20concept%20of%20being%20able%20to%20do%20something%20like%5Cr%5Cn%5Cr%5Cn%60%60%60%5Cr%5Cnconst%20cursor%20%3D%20Posts.find%28%7BuserId%3A%20..%7D%29%3B%5Cr%5Cnconst%20newCursor%20%3D%20CursorUtils.find%28cursor%2C%20%7Bpublished%3A%20%7B%24gt%3A%20new%20Date%7D%7D%2C%20%7Blimit%3A%203%7D%29%3B%5Cr%5Cn%60%60%60%22%2C%20%22created_at%22%3A%20%222015-10-30T01%3A14%3A41Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/132554%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/tmeasday%22%7D%7D%2C%20%7B%22body%22%3A%20%22Yeah%20sgtm.%22%2C%20%22created_at%22%3A%20%222015-10-30T01%3A47%3A36Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/448783%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/stubailo%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20outlines/data-loading.md%3AL1-34%22%7D%7D%7D'></a>\n<a href='https://www.codereviewhub.com/'><img src='http://www.codereviewhub.com/site/github-bar.png' height=40></a>\n- [ ] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 13'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43285715'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> Is this basically saying, all of your subscriptions and `find` calls should be in the same file/right next to each other?\nDo we have any strategies for mitigating cross-talk?\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> Yes, that's what I'm basically saying. It's probably not a hard and fast rule (e.g. `Meteor.user()`), but a good rule of thumb.\nCross talk between subscriptions? At this point I think it's just \"use the same query to get data out that you used to put it in\". Something like @sachag's package would obviously help with this.\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> PS `cursor-utils` isn't actually a real thing. This was the concept of being able to do something like\n```\nconst cursor = Posts.find({userId: ..});\nconst newCursor = CursorUtils.find(cursor, {published: {$gt: new Date}}, {limit: 3});\n```\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> Yeah sgtm.\n- [ ] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 17'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43285860'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> I think scoping is important - how should I control who has access to the store's data?\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> I'm not quite sure what you mean here. Do you mean a convention around placing stores on namespaces like you would other module specific parts?\n- [ ] <a href='#crh-comment-General Comment'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#issuecomment-152373997'>General Comment</a></b>\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> Did another pass at this, added some details.\n- [x] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 5'></a> <img src='http://www.codereviewhub.com/site/github-completed.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43217143'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> Briding?\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> Bridging\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> I guess I'm not really sure what it means to bridge collections - what does this bullet represent?\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> Oh, like the conceptual idea that a publication's purpose is to pump data from a server-side collection into the client side collection with the same name (typically).\n- [x] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 16'></a> <img src='http://www.codereviewhub.com/site/github-completed.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43285767'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> Is this about how subscriptions react to changing arguments inside autoruns?\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> Yes. Sorry if it was unclear, will update.\n- [x] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 24'></a> <img src='http://www.codereviewhub.com/site/github-completed.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43285985'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> It would be great if the final outline had a list of the misconceptions you intend to cover here.\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> It's really just one -- that the publication will be reactive like it would be on the client if it was in an autorun\n- [x] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 28'></a> <img src='http://www.codereviewhub.com/site/github-completed.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43286160'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> If this is actually impossible, do we need a code item for this? I bet it can't be that hard since we already have some plumbing for `userId`\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> Well assuming my idea is a good one, I'll leave it with you as to how hard it is to implement my solution. I would guess low/medium difficulty.\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> We should file a code issue for it and talk there.\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> https://github.com/meteor/guide/issues/70\n- [x] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 30'></a> <img src='http://www.codereviewhub.com/site/github-completed.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43286270'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> This should include publishing transformed data from Mongo into a differently-named collection on the client, to emphasize some strategies for decoupling your backend data model from your frontend\n- [x] <a href='#crh-comment-Pull 33aba7aa46ad533ffdea95133615fb9fd86aa56e outlines/data-loading.md 33'></a> <img src='http://www.codereviewhub.com/site/github-completed.png' height=16 width=60>&nbsp;<b><a href='https://github.com/meteor/guide/pull/63#discussion_r43286325'>File: outlines/data-loading.md:L1-34</a></b>\n- <a href='https://github.com/stubailo'><img border=0 src='https://avatars.githubusercontent.com/u/448783?v=3' height=16 width=16'></a> Is this `simple:rest`? Or something else? `http-publish`?\n- <a href='https://github.com/tmeasday'><img border=0 src='https://avatars.githubusercontent.com/u/132554?v=3' height=16 width=16'></a> I thought it was `simple:rest`\n\n\n<a href='https://www.codereviewhub.com/meteor/guide/pull/63?mark_as_completed=1'><img src='http://www.codereviewhub.com/site/github-mark-as-completed.png' height=26></a>&nbsp;<a href='https://www.codereviewhub.com/meteor/guide/pull/63?approve=1'><img src='http://www.codereviewhub.com/site/github-approve.png' height=26></a>&nbsp;<a href='https://github.com/meteor/guide/pull/63'><img src='http://www.codereviewhub.com/site/github-refresh.png' height=26></a>\n<a href='#crh-end'></a>","created_at":"2015-10-28T03:29:33Z","updated_at":"2015-10-30T01:47:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f05145adc732b1d18a9db84a5169cdfe93153302","assignee":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/meteor/guide/pulls/63/commits","review_comments_url":"https://api.github.com/repos/meteor/guide/pulls/63/comments","review_comment_url":"https://api.github.com/repos/meteor/guide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meteor/guide/issues/63/comments","statuses_url":"https://api.github.com/repos/meteor/guide/statuses/442a30aa3fb7345cfb2d3248bf9186d581306273","head":{"label":"meteor:data-loading-outline","ref":"data-loading-outline","sha":"442a30aa3fb7345cfb2d3248bf9186d581306273","user":{"login":"meteor","id":789528,"avatar_url":"https://avatars.githubusercontent.com/u/789528?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor","html_url":"https://github.com/meteor","followers_url":"https://api.github.com/users/meteor/followers","following_url":"https://api.github.com/users/meteor/following{/other_user}","gists_url":"https://api.github.com/users/meteor/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor/subscriptions","organizations_url":"https://api.github.com/users/meteor/orgs","repos_url":"https://api.github.com/users/meteor/repos","events_url":"https://api.github.com/users/meteor/events{/privacy}","received_events_url":"https://api.github.com/users/meteor/received_events","type":"Organization","site_admin":false},"repo":{"id":43717321,"name":"guide","full_name":"meteor/guide","owner":{"login":"meteor","id":789528,"avatar_url":"https://avatars.githubusercontent.com/u/789528?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor","html_url":"https://github.com/meteor","followers_url":"https://api.github.com/users/meteor/followers","following_url":"https://api.github.com/users/meteor/following{/other_user}","gists_url":"https://api.github.com/users/meteor/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor/subscriptions","organizations_url":"https://api.github.com/users/meteor/orgs","repos_url":"https://api.github.com/users/meteor/repos","events_url":"https://api.github.com/users/meteor/events{/privacy}","received_events_url":"https://api.github.com/users/meteor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meteor/guide","description":"How do I use Meteor?","fork":false,"url":"https://api.github.com/repos/meteor/guide","forks_url":"https://api.github.com/repos/meteor/guide/forks","keys_url":"https://api.github.com/repos/meteor/guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteor/guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteor/guide/teams","hooks_url":"https://api.github.com/repos/meteor/guide/hooks","issue_events_url":"https://api.github.com/repos/meteor/guide/issues/events{/number}","events_url":"https://api.github.com/repos/meteor/guide/events","assignees_url":"https://api.github.com/repos/meteor/guide/assignees{/user}","branches_url":"https://api.github.com/repos/meteor/guide/branches{/branch}","tags_url":"https://api.github.com/repos/meteor/guide/tags","blobs_url":"https://api.github.com/repos/meteor/guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteor/guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteor/guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteor/guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteor/guide/statuses/{sha}","languages_url":"https://api.github.com/repos/meteor/guide/languages","stargazers_url":"https://api.github.com/repos/meteor/guide/stargazers","contributors_url":"https://api.github.com/repos/meteor/guide/contributors","subscribers_url":"https://api.github.com/repos/meteor/guide/subscribers","subscription_url":"https://api.github.com/repos/meteor/guide/subscription","commits_url":"https://api.github.com/repos/meteor/guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteor/guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteor/guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteor/guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteor/guide/contents/{+path}","compare_url":"https://api.github.com/repos/meteor/guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteor/guide/merges","archive_url":"https://api.github.com/repos/meteor/guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteor/guide/downloads","issues_url":"https://api.github.com/repos/meteor/guide/issues{/number}","pulls_url":"https://api.github.com/repos/meteor/guide/pulls{/number}","milestones_url":"https://api.github.com/repos/meteor/guide/milestones{/number}","notifications_url":"https://api.github.com/repos/meteor/guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteor/guide/labels{/name}","releases_url":"https://api.github.com/repos/meteor/guide/releases{/id}","created_at":"2015-10-05T22:26:02Z","updated_at":"2015-10-30T01:26:10Z","pushed_at":"2015-10-30T01:32:46Z","git_url":"git://github.com/meteor/guide.git","ssh_url":"git@github.com:meteor/guide.git","clone_url":"https://github.com/meteor/guide.git","svn_url":"https://github.com/meteor/guide","homepage":"","size":485,"stargazers_count":222,"watchers_count":222,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":55,"forks":13,"open_issues":55,"watchers":222,"default_branch":"master"}},"base":{"label":"meteor:master","ref":"master","sha":"638910fc5e5b735f626b4c77dea4ebcfdce9f01f","user":{"login":"meteor","id":789528,"avatar_url":"https://avatars.githubusercontent.com/u/789528?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor","html_url":"https://github.com/meteor","followers_url":"https://api.github.com/users/meteor/followers","following_url":"https://api.github.com/users/meteor/following{/other_user}","gists_url":"https://api.github.com/users/meteor/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor/subscriptions","organizations_url":"https://api.github.com/users/meteor/orgs","repos_url":"https://api.github.com/users/meteor/repos","events_url":"https://api.github.com/users/meteor/events{/privacy}","received_events_url":"https://api.github.com/users/meteor/received_events","type":"Organization","site_admin":false},"repo":{"id":43717321,"name":"guide","full_name":"meteor/guide","owner":{"login":"meteor","id":789528,"avatar_url":"https://avatars.githubusercontent.com/u/789528?v=3","gravatar_id":"","url":"https://api.github.com/users/meteor","html_url":"https://github.com/meteor","followers_url":"https://api.github.com/users/meteor/followers","following_url":"https://api.github.com/users/meteor/following{/other_user}","gists_url":"https://api.github.com/users/meteor/gists{/gist_id}","starred_url":"https://api.github.com/users/meteor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meteor/subscriptions","organizations_url":"https://api.github.com/users/meteor/orgs","repos_url":"https://api.github.com/users/meteor/repos","events_url":"https://api.github.com/users/meteor/events{/privacy}","received_events_url":"https://api.github.com/users/meteor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/meteor/guide","description":"How do I use Meteor?","fork":false,"url":"https://api.github.com/repos/meteor/guide","forks_url":"https://api.github.com/repos/meteor/guide/forks","keys_url":"https://api.github.com/repos/meteor/guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meteor/guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meteor/guide/teams","hooks_url":"https://api.github.com/repos/meteor/guide/hooks","issue_events_url":"https://api.github.com/repos/meteor/guide/issues/events{/number}","events_url":"https://api.github.com/repos/meteor/guide/events","assignees_url":"https://api.github.com/repos/meteor/guide/assignees{/user}","branches_url":"https://api.github.com/repos/meteor/guide/branches{/branch}","tags_url":"https://api.github.com/repos/meteor/guide/tags","blobs_url":"https://api.github.com/repos/meteor/guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meteor/guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meteor/guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/meteor/guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meteor/guide/statuses/{sha}","languages_url":"https://api.github.com/repos/meteor/guide/languages","stargazers_url":"https://api.github.com/repos/meteor/guide/stargazers","contributors_url":"https://api.github.com/repos/meteor/guide/contributors","subscribers_url":"https://api.github.com/repos/meteor/guide/subscribers","subscription_url":"https://api.github.com/repos/meteor/guide/subscription","commits_url":"https://api.github.com/repos/meteor/guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/meteor/guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/meteor/guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/meteor/guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/meteor/guide/contents/{+path}","compare_url":"https://api.github.com/repos/meteor/guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meteor/guide/merges","archive_url":"https://api.github.com/repos/meteor/guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meteor/guide/downloads","issues_url":"https://api.github.com/repos/meteor/guide/issues{/number}","pulls_url":"https://api.github.com/repos/meteor/guide/pulls{/number}","milestones_url":"https://api.github.com/repos/meteor/guide/milestones{/number}","notifications_url":"https://api.github.com/repos/meteor/guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meteor/guide/labels{/name}","releases_url":"https://api.github.com/repos/meteor/guide/releases{/id}","created_at":"2015-10-05T22:26:02Z","updated_at":"2015-10-30T01:26:10Z","pushed_at":"2015-10-30T01:32:46Z","git_url":"git://github.com/meteor/guide.git","ssh_url":"git@github.com:meteor/guide.git","clone_url":"https://github.com/meteor/guide.git","svn_url":"https://github.com/meteor/guide","homepage":"","size":485,"stargazers_count":222,"watchers_count":222,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":55,"forks":13,"open_issues":55,"watchers":222,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meteor/guide/pulls/63"},"html":{"href":"https://github.com/meteor/guide/pull/63"},"issue":{"href":"https://api.github.com/repos/meteor/guide/issues/63"},"comments":{"href":"https://api.github.com/repos/meteor/guide/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/meteor/guide/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/meteor/guide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meteor/guide/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/meteor/guide/statuses/442a30aa3fb7345cfb2d3248bf9186d581306273"}}}}