zooniverse / Talk-archiver

A static site generator for old Talk forums, based on elevenpack.
Apache License 2.0
0 stars 1 forks source link

Chicago Wildlife Watch: photos containing people #66

Closed eatyourgreens closed 4 years ago

eatyourgreens commented 4 years ago

Photos containing people were not filtered from search results in Talk: https://talk.chicagowildlifewatch.org/#/search?tags[human]=true

However, they were filtered on individual subject pages: https://talk.chicagowildlifewatch.org/#/subjects/ACH000a7gd

They aren't filtered in the archive pages: https://talk.chicagowildlifewatch.org/subjects/ACH000a7gd/

eatyourgreens commented 4 years ago

CWW also has subjects that can't be fetched by the archiver. https://api.zooniverse.org/projects/chicago/talk/subjects/CCH00005bs returns 404 but does exist on the CWW Talk site. https://talk.chicagowildlifewatch.org/#/subjects/ACH00005bs

That photo is also flagged as human but is not replaced by the 'Human' placeholder image.

EDIT: it seems there are subject IDs in the data export which are prefixed with CCH rather than ACH.

eatyourgreens commented 4 years ago

The old code replaces the image if subject.metadata.counters.human exists. That should work here too. https://github.com/zooniverse/Talk/blob/2e8ad17390c1d623f1868d078379e73958ff74e4/projects/chicago/subject_viewer.coffee#L15-L18

eatyourgreens commented 4 years ago

Partially fixed by 14931febf1d87c03862c05529a8fb9e7a91e92d9. There's still some magic going on to hide photos in the recent subjects shown on https://talk.chicagowildlifewatch.org since the /talk/recents API call does not return subject metadata, only locations and IDs.

eatyourgreens commented 4 years ago

Here's everything tagged with #human. https://talk.chicagowildlifewatch.org/tags/human/subjects.html

eatyourgreens commented 4 years ago

CWW has been reviewed now so I’m going to close this.