hypothesis / hypothesis/h

[API] Discrepancy between the `total` annotations and the number of returned annotations

Open
#7,796 10 comments 0 reactions 0 assignees View on GitHub
bug S4
Dominant language
Python
Stars
3.2k
Forks
459
Avg merge
27d 1h
Merged PRs (30d)
1

Description

Querying the API for an URI, the API returns a `total` of 3 but with 2 annotations:

```json
{
"total": 3,
"rows": [
{
"id": "2ZlzQI_6Ee2_GiO1q_kZlw",
"created": "2023-01-09T08:51:47.348734+00:00",
"updated": "2023-01-09T08:51:47.348734+00:00",
"user": "acct:kael@hypothes.is",
"uri": "https://docdrop.org/ocr/",
"text": "",
"tags": [
"docdrop",
"ocr",
"pdf"
],
"group": "__world__",
"permissions": {
"read": [
"group:__world__"
],
"admin": [
"acct:kael@hypothes.is"
],
"update": [
"acct:kael@hypothes.is"
],
"delete": [
"acct:kael@hypothes.is"
]
},
"target": [
{
"source": "https://docdrop.org/ocr/"
}
],
"document": {
"title": [
"DocDrop | OCR"
]
},
"links": {
"html": "https://hypothes.is/a/2ZlzQI_6Ee2_GiO1q_kZlw",
"incontext": "https://hyp.is/2ZlzQI_6Ee2_GiO1q_kZlw/docdrop.org/ocr/",
"json": "https://hypothes.is/api/annotations/2ZlzQI_6Ee2_GiO1q_kZlw"
},
"user_info": {
"display_name": "kael"
},
"flagged": false,
"hidden": false
},
{
"id": "YTWzkF3QEeuxR3Nj9ycYWw",
"created": "2021-01-23T23:11:53.018743+00:00",
"updated": "2021-02-14T10:37:00.189592+00:00",
"user": "acct:ankostis@hypothes.is",
"uri": "https://docdrop.org/ocr/",
"text": "Freely OCR PDFs",
"tags": [
"pdf-service"
],
"group": "__world__",
"permissions": {
"read": [
"group:__world__"
],
"admin": [
"acct:ankostis@hypothes.is"
],
"update": [
"acct:ankostis@hypothes.is"
],
"delete": [
"acct:ankostis@hypothes.is"
]
},
"target": [
{
"source": "https://docdrop.org/ocr/"
}
],
"document": {
"title": [
"DocDrop | OCR"
]
},
"links": {
"html": "https://hypothes.is/a/YTWzkF3QEeuxR3Nj9ycYWw",
"incontext": "https://hyp.is/YTWzkF3QEeuxR3Nj9ycYWw/docdrop.org/ocr/",
"json": "https://hypothes.is/api/annotations/YTWzkF3QEeuxR3Nj9ycYWw"
},
"user_info": {
"display_name": "Kostis Anagnostopoulos"
},
"flagged": false,
"hidden": false
}
]
}
```

[Archived version of the API payload](https://web.archive.org/web/20230109085943if_/https://hypothes.is/api/search?uri=https:%2F%2Fdocdrop.org%2Focr%2F)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.