Add report fingerprint functionality #705
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a
vote
field to theFingerprintSubmission
input. This supercedes theunmatch
field, which is now deprecated. Ifvote
is positive, then the submission is treated as an ordinary submission. Ifvote
is negative, then the submission is treated as a report. Ifvote
is0
, then it is treated as an unmatch operation. Ifvote
is omitted altogether, then it is assumed to be a normal submission, unlessunmatch
is set to true, per existing behaviour.Adds
reports
field to theFingerprint
type. This value is the number of users that have reported a fingerprint. Also adds auser_reported
field which returns true if the current user reported the fingerprint. Scene fingerprints are now ordered bysubmissions - reports
.The UI is changed to indicate how many reports a fingerprint has. The button to remove a user submission is shown in the appropriate place based on if the user submitted or reported the fingerprint.