This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
API: Inconsistent query behavior of /conversation #233
Comments
mrsimpson
changed the title
API: Query filter not applied properly
API: How to filter for a conversation with a given channel id?
Mar 30, 2018
Also, I noticed that there are conversations which are effectively available, but are not returned via the query.
This very conversation it not found via the query (
This can be reproduced via an integration-test: assistify/Rocket.Chat@da51bb4
|
mrsimpson
changed the title
API: How to filter for a conversation with a given channel id?
API: Inconsistent query behavior of /conversation
Mar 30, 2018
I just noticed that the missing conversation in the generic query could be due to pagination. Once cleaned-up, the tests run successfully! So only the issue with "how to query a conversation" remains |
This is not implemented. The |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using the API to find a conversation in Smarti with a given ID from Rocket.Chat, a query-parameter needs to be supplied. There is none documented, but
?channel_id=...
like in the legacy-endpoint does not work.Also noticed: When supplying a non-existant
channel_id
as filter, it returns documents which don't match the query. This is not expected| => curl -X GET --header 'Accept: application/json' --header 'X-Auth-Token: 86ae4861b24dfecb22c74438c1753b7f886cba99/3X2rJ578' 'http://localhost:8080/conversation?channel_id=**smarti-test-topic-87**'
{
"content" : [ {
"id" : "5abdde051e300803b483b97e",
"meta" : {
"status" : "Complete",
"support_area" : [ "smarti-test-topic" ],
"channel_id" : [ "dvp46FtD7xZX3SjnG" ]
},
"user" : {
"id" : "rocketchat.internal.admin.test"
},
The text was updated successfully, but these errors were encountered: