{"action":"created","issue":{"url":"https://api.github.com/repos/local-ch/lhs/issues/8","labels_url":"https://api.github.com/repos/local-ch/lhs/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/local-ch/lhs/issues/8/comments","events_url":"https://api.github.com/repos/local-ch/lhs/issues/8/events","html_url":"https://github.com/local-ch/lhs/issues/8","id":50976681,"number":8,"title":"Includes over multiple levels with find_by is not working properly","user":{"login":"skaestle","id":247081,"avatar_url":"https://avatars.githubusercontent.com/u/247081?v=3","gravatar_id":"","url":"https://api.github.com/users/skaestle","html_url":"https://github.com/skaestle","followers_url":"https://api.github.com/users/skaestle/followers","following_url":"https://api.github.com/users/skaestle/following{/other_user}","gists_url":"https://api.github.com/users/skaestle/gists{/gist_id}","starred_url":"https://api.github.com/users/skaestle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skaestle/subscriptions","organizations_url":"https://api.github.com/users/skaestle/orgs","repos_url":"https://api.github.com/users/skaestle/repos","events_url":"https://api.github.com/users/skaestle/events{/privacy}","received_events_url":"https://api.github.com/users/skaestle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-04T13:45:14Z","updated_at":"2016-01-04T11:57:40Z","closed_at":"2016-01-04T11:57:40Z","body":"```ruby\r\nmodule Services\r\n  class TermsAndConditions < LHS::Service\r\n    endpoint \"#{LCL[:datastore_service]}/v2/agbs/active?agb_type=CC_TOU\"\r\n\r\n    map :pdf_url, ->(agb) { agb[\"binary_url_pdf_#{I18n.locale}\"] }\r\n  end\r\nend\r\n```\r\n\r\nfind_by:\r\n```ruby\r\n2.1.2 :019 > Services::TermsAndConditions.includes(preceding_agb: :preceding_agb).find_by\r\n => nil \r\n```\r\n\r\nwhere:\r\n```ruby\r\nServices::TermsAndConditions.includes(preceding_agb: :preceding_agb).where\r\nLHC::NotFound: get http://silo2:8082/v2/agbs/547f0b461c266c4830ea6cea/preceding\r\nParams: {:url=>\"http://silo2:8082/v2/agbs/547f0b461c266c4830ea6cea/preceding\"}\r\nOptions: {:url=>\"http://silo2:8082/v2/agbs/547f0b461c266c4830ea6cea/preceding\"}\r\n404\r\n{\r\n  \"success\" : false,\r\n  \"code\" : 404,\r\n  \"messages\" : [ {\r\n    \"text\" : \"Preceding AgbVersion not found\",\r\n    \"field\" : \"id\",\r\n    \"value\" : \"547f0b461c266c4830ea6cea\"\r\n  }, {\r\n    \"text\" : \"Preceding AgbVersion not found\",\r\n    \"field\" : \"class\",\r\n    \"value\" : \"ch.local.userrepository.model.AgbVersion\"\r\n  } ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/local-ch/lhs/issues/comments/168658662","html_url":"https://github.com/local-ch/lhs/issues/8#issuecomment-168658662","issue_url":"https://api.github.com/repos/local-ch/lhs/issues/8","id":168658662,"user":{"login":"pape-io","id":851393,"avatar_url":"https://avatars.githubusercontent.com/u/851393?v=3","gravatar_id":"","url":"https://api.github.com/users/pape-io","html_url":"https://github.com/pape-io","followers_url":"https://api.github.com/users/pape-io/followers","following_url":"https://api.github.com/users/pape-io/following{/other_user}","gists_url":"https://api.github.com/users/pape-io/gists{/gist_id}","starred_url":"https://api.github.com/users/pape-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pape-io/subscriptions","organizations_url":"https://api.github.com/users/pape-io/orgs","repos_url":"https://api.github.com/users/pape-io/repos","events_url":"https://api.github.com/users/pape-io/events{/privacy}","received_events_url":"https://api.github.com/users/pape-io/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T11:57:40Z","updated_at":"2016-01-04T11:57:40Z","body":"Looks like the backend linked stuff that is not around anymore. That got fixed here: https://github.com/local-ch/lhs/issues/49\r\nMultilevel includes got fixed here: https://github.com/local-ch/lhs/releases/tag/v2.0.5"}}