{"action":"created","issue":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/2575","repository_url":"https://api.github.com/repos/keystonejs/keystone","labels_url":"https://api.github.com/repos/keystonejs/keystone/issues/2575/labels{/name}","comments_url":"https://api.github.com/repos/keystonejs/keystone/issues/2575/comments","events_url":"https://api.github.com/repos/keystonejs/keystone/issues/2575/events","html_url":"https://github.com/keystonejs/keystone/issues/2575","id":145672067,"number":2575,"title":"dependsOn not working at all in .4.x","user":{"login":"Lemmmy","id":858456,"avatar_url":"https://avatars.githubusercontent.com/u/858456?v=3","gravatar_id":"","url":"https://api.github.com/users/Lemmmy","html_url":"https://github.com/Lemmmy","followers_url":"https://api.github.com/users/Lemmmy/followers","following_url":"https://api.github.com/users/Lemmmy/following{/other_user}","gists_url":"https://api.github.com/users/Lemmmy/gists{/gist_id}","starred_url":"https://api.github.com/users/Lemmmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lemmmy/subscriptions","organizations_url":"https://api.github.com/users/Lemmmy/orgs","repos_url":"https://api.github.com/users/Lemmmy/repos","events_url":"https://api.github.com/users/Lemmmy/events{/privacy}","received_events_url":"https://api.github.com/users/Lemmmy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-04-04T12:36:41Z","updated_at":"2016-04-05T04:54:39Z","closed_at":null,"body":"With the following code, the \"school\" field does not work at all. This also appears to apply to the `String` and `Types.Text` datatypes.\r\n\r\n```\r\npostType: {\r\n\ttype: Types.Select,\r\n\toptions: 'news/update, high school, college',\r\n\tdefault: 'news/update',\r\n\tindex: true\r\n},\r\nschool: {\r\n\ttype: Types.Relationship,\r\n\tref: 'School',\r\n\tindex: true,\r\n\tdependsOn: {   \r\n\t\tpostType: ['high school', 'college']\r\n\t}\r\n},\r\n```\r\n\r\n![](http://shitty.download/numerous_ran_relative.gif)\r\n\r\nAdditionally, saving does not make the field appear."},"comment":{"url":"https://api.github.com/repos/keystonejs/keystone/issues/comments/205643831","html_url":"https://github.com/keystonejs/keystone/issues/2575#issuecomment-205643831","issue_url":"https://api.github.com/repos/keystonejs/keystone/issues/2575","id":205643831,"user":{"login":"snowkeeper","id":6615106,"avatar_url":"https://avatars.githubusercontent.com/u/6615106?v=3","gravatar_id":"","url":"https://api.github.com/users/snowkeeper","html_url":"https://github.com/snowkeeper","followers_url":"https://api.github.com/users/snowkeeper/followers","following_url":"https://api.github.com/users/snowkeeper/following{/other_user}","gists_url":"https://api.github.com/users/snowkeeper/gists{/gist_id}","starred_url":"https://api.github.com/users/snowkeeper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowkeeper/subscriptions","organizations_url":"https://api.github.com/users/snowkeeper/orgs","repos_url":"https://api.github.com/users/snowkeeper/repos","events_url":"https://api.github.com/users/snowkeeper/events{/privacy}","received_events_url":"https://api.github.com/users/snowkeeper/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T04:54:39Z","updated_at":"2016-04-05T04:54:39Z","body":"I was thinking as a separate module that Arrays should be an `$and`, but that obviously didn't match the original use case in Keystone, so I added the option to change the default to `$or`.  I am really interested in how it should work as opposed to how I thought it should work though.  Not sure if it would ever get use outside of Keystone, but I tried to build it under that mindset, while having the option to fit the Keystone use case in 0.3.x if desired."}}