hypothesis / hypothesis/h

Signal in a more obvious way that a highlight has been created

Open
#5,883 0 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
Python
Stars
3.2k
Forks
459
Avg merge
27d 1h
Merged PRs (30d)
1

Description

There are a lot of duplicate highlights in the database. To see the phenomenon, use https://metabase.hypothes.is/question/759 on the default URL for that query, https://www.theatlantic.com/magazine/archive/1945/07/as-we-may-think/303881/, or another heavily annotated URL like https://www.nytimes.com/2007/02/19/arts/design/19fram.html.

The query reports the start and end value for TextPositionSelectors, and focuses on highlights. It reveals that it's fairly common for highlights to occur twice: same user, same target, same time, but two or more distinct annotation ids in the database.

Some examples:

![image](https://user-images.githubusercontent.com/46509/71840637-8ab8e700-3072-11ea-90ca-e16dcb931935.png)

I'm pretty sure I know what's happening here. When you create a highlight, the only feedback you get is that the target, which was highlighted in one color before you clicked the highlight button, is now highlighted in a different color when the button goes away. There should probably be some other, more affirmative, and non-color-related way to signal that the highlight was created.

(The reason for this odd discovery: I was working out ways to analyze document hotspots, i.e. regions in documents that attract overlapping annotations.)

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.