{"action":"created","issue":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/917","labels_url":"https://api.github.com/repos/keystonejs/keystone/issues/917/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/keystone/issues/917/comments","events_url":"https://api.github.com/repos/keystonejs/keystone/issues/917/events","html_url":"https://github.com/keystonejs/keystone/pull/917","id":54651085,"number":917,"title":"Add support for cross-referencing relationships across update files","user":{"login":"webteckie","id":5872515,"avatar_url":"https://avatars.githubusercontent.com/u/5872515?v=3","gravatar_id":"","url":"https://api.github.com/users/webteckie","html_url":"https://github.com/webteckie","followers_url":"https://api.github.com/users/webteckie/followers","following_url":"https://api.github.com/users/webteckie/following{/other_user}","gists_url":"https://api.github.com/users/webteckie/gists{/gist_id}","starred_url":"https://api.github.com/users/webteckie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webteckie/subscriptions","organizations_url":"https://api.github.com/users/webteckie/orgs","repos_url":"https://api.github.com/users/webteckie/repos","events_url":"https://api.github.com/users/webteckie/events{/privacy}","received_events_url":"https://api.github.com/users/webteckie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-17T05:09:49Z","updated_at":"2015-01-18T10:01:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/keystonejs/keystone/pulls/917","html_url":"https://github.com/keystonejs/keystone/pull/917","diff_url":"https://github.com/keystonejs/keystone/pull/917.diff","patch_url":"https://github.com/keystonejs/keystone/pull/917.patch"},"body":"This is useful when you want to stack updates across different files.  For example, setup a base updates file and have custom updates files reference base list items."},"comment":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/comments/70402406","html_url":"https://github.com/keystonejs/keystone/pull/917#issuecomment-70402406","issue_url":"https://api.github.com/repos/keystonejs/keystone/issues/917","id":70402406,"user":{"login":"JedWatson","id":872310,"avatar_url":"https://avatars.githubusercontent.com/u/872310?v=3","gravatar_id":"","url":"https://api.github.com/users/JedWatson","html_url":"https://github.com/JedWatson","followers_url":"https://api.github.com/users/JedWatson/followers","following_url":"https://api.github.com/users/JedWatson/following{/other_user}","gists_url":"https://api.github.com/users/JedWatson/gists{/gist_id}","starred_url":"https://api.github.com/users/JedWatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JedWatson/subscriptions","organizations_url":"https://api.github.com/users/JedWatson/orgs","repos_url":"https://api.github.com/users/JedWatson/repos","events_url":"https://api.github.com/users/JedWatson/events{/privacy}","received_events_url":"https://api.github.com/users/JedWatson/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T10:01:14Z","updated_at":"2015-01-18T10:01:14Z","body":"@webteckie my concern is that although the scripts will always run in order, they may not run in the same process. e.g.\r\n\r\n* `0.0.0-updates-base.js` runs successfully, then the process quits for some reason.\r\n* `0.0.1-updates-custom.js` runs when keystone is started again, but because it's in a different process, the refs from `0.0.0-updates-base.js` are not available so it fails.\r\n\r\nWe would need to ensure that both scripts ran sequentially _in the same process_ for this enhancement to be safe.\r\n\r\n> My project now depends on this behavior :-)\r\n\r\nNo problem, we'll work it out. I'll come back to you with some ideas shortly."}}