haystack / nb

12 stars 10 forks source link

Helen/optimize get annotations query final #86

Closed lihelennn closed 3 years ago

lihelennn commented 3 years ago

Add and optimize GET /annotations/new_annotation query to get all head threads + all subsequent child replies. Return all of them to the client, so that we don't need to continuously query for every single reply.

Note: this is a NEW endpoint (the old GET /annotations/annotation still exists since the nbclient relies on it.) We can update the old enpoint to this new one when we make the appropriate changes to the nbclient code base. https://github.com/haystack/nbclient/pull/8

Also: