{"action":"created","issue":{"url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/issues/29","repository_url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails","labels_url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/issues/29/comments","events_url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/issues/29/events","html_url":"https://github.com/jbox-web/ajax-datatables-rails/issues/29","id":39036690,"number":29,"title":"Search does not work for model relations","user":{"login":"amanbop","id":6539112,"avatar_url":"https://avatars3.githubusercontent.com/u/6539112?v=4","gravatar_id":"","url":"https://api.github.com/users/amanbop","html_url":"https://github.com/amanbop","followers_url":"https://api.github.com/users/amanbop/followers","following_url":"https://api.github.com/users/amanbop/following{/other_user}","gists_url":"https://api.github.com/users/amanbop/gists{/gist_id}","starred_url":"https://api.github.com/users/amanbop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amanbop/subscriptions","organizations_url":"https://api.github.com/users/amanbop/orgs","repos_url":"https://api.github.com/users/amanbop/repos","events_url":"https://api.github.com/users/amanbop/events{/privacy}","received_events_url":"https://api.github.com/users/amanbop/received_events","type":"User","site_admin":false},"labels":[{"id":3560611,"url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/labels/bug","name":"bug","color":"fc2929","default":true},{"id":3560613,"url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/milestones/1","html_url":"https://github.com/jbox-web/ajax-datatables-rails/milestone/1","labels_url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/milestones/1/labels","id":739937,"number":1,"title":"v. 0.2.1","description":"Bug fixes and enhancements","creator":{"login":"antillas21","id":333671,"avatar_url":"https://avatars0.githubusercontent.com/u/333671?v=4","gravatar_id":"","url":"https://api.github.com/users/antillas21","html_url":"https://github.com/antillas21","followers_url":"https://api.github.com/users/antillas21/followers","following_url":"https://api.github.com/users/antillas21/following{/other_user}","gists_url":"https://api.github.com/users/antillas21/gists{/gist_id}","starred_url":"https://api.github.com/users/antillas21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antillas21/subscriptions","organizations_url":"https://api.github.com/users/antillas21/orgs","repos_url":"https://api.github.com/users/antillas21/repos","events_url":"https://api.github.com/users/antillas21/events{/privacy}","received_events_url":"https://api.github.com/users/antillas21/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"closed","created_at":"2014-08-01T16:16:27Z","updated_at":"2018-02-17T22:45:54Z","due_on":null,"closed_at":"2014-12-03T03:34:30Z"},"comments":20,"created_at":"2014-07-29T21:17:56Z","updated_at":"2018-02-17T22:45:54Z","closed_at":"2018-02-17T22:45:53Z","author_association":"NONE","body":"1. This only works efficiently for a flat one model rendering. e.g. Client.all\n2. This does not work for anything more complicated where you have model relations using has_many and belongs_to involved and you want to search or sort on child table.\n\ne.g. the follow scenario does not work\nclass Client < ActiveRecord::Base\nhas_many :orders\nhas_many :addresses\nend\n\nYou want to show the following view\n\nClient            Address                    Orders\nABC               Street1                     3\n                       Street2\n1. There is no easy way to form the query without using :include or :join\n2. Even if you use :include, searching on Address does not work.\n3. Order on Orders does not work.\n\nIs there any plan to make it more useful by adding support for these scenarios?\n"},"comment":{"url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/issues/comments/366477004","html_url":"https://github.com/jbox-web/ajax-datatables-rails/issues/29#issuecomment-366477004","issue_url":"https://api.github.com/repos/jbox-web/ajax-datatables-rails/issues/29","id":366477004,"user":{"login":"n-rodriguez","id":3433835,"avatar_url":"https://avatars3.githubusercontent.com/u/3433835?v=4","gravatar_id":"","url":"https://api.github.com/users/n-rodriguez","html_url":"https://github.com/n-rodriguez","followers_url":"https://api.github.com/users/n-rodriguez/followers","following_url":"https://api.github.com/users/n-rodriguez/following{/other_user}","gists_url":"https://api.github.com/users/n-rodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/n-rodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-rodriguez/subscriptions","organizations_url":"https://api.github.com/users/n-rodriguez/orgs","repos_url":"https://api.github.com/users/n-rodriguez/repos","events_url":"https://api.github.com/users/n-rodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/n-rodriguez/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T22:45:53Z","updated_at":"2018-02-17T22:45:53Z","author_association":"OWNER","body":"https://github.com/jbox-web/ajax-datatables-rails/issues/159#issuecomment-301194631"}}
{"actor":{"display_login":"n-rodriguez"}}