{"action":"opened","issue":{"url":"https://api.github.com/repos/locomotivecms/steam/issues/123","repository_url":"https://api.github.com/repos/locomotivecms/steam","labels_url":"https://api.github.com/repos/locomotivecms/steam/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/locomotivecms/steam/issues/123/comments","events_url":"https://api.github.com/repos/locomotivecms/steam/issues/123/events","html_url":"https://github.com/locomotivecms/steam/issues/123","id":388866754,"node_id":"MDU6SXNzdWUzODg4NjY3NTQ=","number":123,"title":"with_scope on site.pages drops slug finder ","user":{"login":"boie0025","id":1087623,"node_id":"MDQ6VXNlcjEwODc2MjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1087623?v=4","gravatar_id":"","url":"https://api.github.com/users/boie0025","html_url":"https://github.com/boie0025","followers_url":"https://api.github.com/users/boie0025/followers","following_url":"https://api.github.com/users/boie0025/following{/other_user}","gists_url":"https://api.github.com/users/boie0025/gists{/gist_id}","starred_url":"https://api.github.com/users/boie0025/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boie0025/subscriptions","organizations_url":"https://api.github.com/users/boie0025/orgs","repos_url":"https://api.github.com/users/boie0025/repos","events_url":"https://api.github.com/users/boie0025/events{/privacy}","received_events_url":"https://api.github.com/users/boie0025/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-08T01:01:36Z","updated_at":"2018-12-08T01:01:36Z","closed_at":null,"author_association":"MEMBER","body":"Finding a page via {% with_scope %} does not honor the `slug` finder, instead overrides with `\"slug.en\"=>{\"$ne\"=>\"404\"}`\r\n\r\nExample query:\r\n```liquid\r\n{% with_scope listed.ne: false, published.ne: false, is_layout.ne: true, slug: 'index' %}\r\n```\r\n\r\nThis works locally with Wagon, but on Engine, looking through the logs, it's clear that the slug finder is dropped.  However, I was able to find a workaround:\r\n\r\n``` liquid\r\n{% with_scope listed.ne: false, published.ne: false, is_layout.ne: true, slug: { '$eq' => 'index'} %}\r\n```\r\n\r\nwhich is properly interpreted into a Mongo query as: `\"slug.en\"=>{\"$eq\"=>\"index\", \"$ne\"=>\"404\"}`\r\n\r\nI suspect what's happening is when the `\"$ne\" => \"404\"` is added, it overrides whatever's there. (perhaps something with how this is added: https://github.com/locomotivecms/steam/blob/master/lib/locomotive/steam/liquid/drops/site.rb#L30 )"}}
{"actor":{"display_login":"boie0025"}}