{"action":"closed","issue":{"url":"https://api.github.com/repos/hyperledger/composer/issues/4172","repository_url":"https://api.github.com/repos/hyperledger/composer","labels_url":"https://api.github.com/repos/hyperledger/composer/issues/4172/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/composer/issues/4172/comments","events_url":"https://api.github.com/repos/hyperledger/composer/issues/4172/events","html_url":"https://github.com/hyperledger/composer/issues/4172","id":334149046,"node_id":"MDU6SXNzdWUzMzQxNDkwNDY=","number":4172,"title":"Query unit test should not fail with OR clauses.","user":{"login":"alexvicegrab","id":1575642,"node_id":"MDQ6VXNlcjE1NzU2NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1575642?v=4","gravatar_id":"","url":"https://api.github.com/users/alexvicegrab","html_url":"https://github.com/alexvicegrab","followers_url":"https://api.github.com/users/alexvicegrab/followers","following_url":"https://api.github.com/users/alexvicegrab/following{/other_user}","gists_url":"https://api.github.com/users/alexvicegrab/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvicegrab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvicegrab/subscriptions","organizations_url":"https://api.github.com/users/alexvicegrab/orgs","repos_url":"https://api.github.com/users/alexvicegrab/repos","events_url":"https://api.github.com/users/alexvicegrab/events{/privacy}","received_events_url":"https://api.github.com/users/alexvicegrab/received_events","type":"User","site_admin":false},"labels":[{"id":541838703,"node_id":"MDU6TGFiZWw1NDE4Mzg3MDM=","url":"https://api.github.com/repos/hyperledger/composer/labels/P3","name":"P3","color":"f9d0c4","default":false},{"id":527252486,"node_id":"MDU6TGFiZWw1MjcyNTI0ODY=","url":"https://api.github.com/repos/hyperledger/composer/labels/bug","name":"bug","color":"ee0701","default":true},{"id":586194560,"node_id":"MDU6TGFiZWw1ODYxOTQ1NjA=","url":"https://api.github.com/repos/hyperledger/composer/labels/prereq","name":"prereq","color":"d93f0b","default":false},{"id":904510608,"node_id":"MDU6TGFiZWw5MDQ1MTA2MDg=","url":"https://api.github.com/repos/hyperledger/composer/labels/stale","name":"stale","color":"ffffff","default":false},{"id":527252492,"node_id":"MDU6TGFiZWw1MjcyNTI0OTI=","url":"https://api.github.com/repos/hyperledger/composer/labels/wontfix","name":"wontfix","color":"999999","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-20T16:07:47Z","updated_at":"2018-11-29T19:05:14Z","closed_at":"2018-11-29T19:05:14Z","author_association":"NONE","body":"Some queries using the OR operator work on the REST server but fail during unit testing.\r\n\r\n## Context\r\n\r\nA query using AND and OR intended to be an XOR operation works on the REST server, but fails during unit tests.\r\n\r\n## Expected Behavior\r\n\r\nI expect the unit test to pass.\r\n\r\n## Actual Behavior\r\n\r\nInstead I see this in the pouchdb-selector-core package:\r\n\r\n```\r\n TypeError: userValue.every is not a function\r\n      at Object.$ne (node_modules/pouchdb-selector-core/lib/index.js:501:22)\r\n      at match (node_modules/pouchdb-selector-core/lib/index.js:364:32)\r\n```\r\n\r\n## Possible Fix\r\n\r\nEither fix the way the query is created or update to a pouchdb-selector-core that does not have this issue (if there is one?).\r\n\r\n## Steps to Reproduce\r\n\r\n```\r\nSELECT org.example.trading.Commodity\r\n          WHERE ((quantity == _$quantity AND owner != _$owner) OR (quantity != _$quantity AND owner == _$owner) \r\n```\r\n\r\n## Existing issues\r\n- [x] [Stack Overflow issues](http://stackoverflow.com/tags/hyperledger-composer)\r\n- [x] [GitHub Issues](https://github.com/hyperledger/composer/issues)\r\n- [x] [Rocket Chat history](https://chat.hyperledger.org/channel/composer)\r\n\r\n## Your Environment\r\n* Version used: 0.19.9\r\n* Environment name and version (e.g. Chrome 39, node.js 5.4): node.js v9.3.0\r\n* Operating System and version (desktop or mobile): OS X / Ubuntu Linux\r\n* Link to your project: N/A"}}
{"actor":{"display_login":"stale"}}