Page MenuHomePhabricator

Make Nearby on Commons search NS_FILE namespace
Closed, ResolvedPublic

Description

http://commons.wikimedia.org/w/index.php?title=Special:Nearby currently doesn't show any results.

I would expect to see links to file pages which have photos of nearby landmarks and points of interest.

This would also be very useful going forward to help editors find suitable photos for articles...

Can someone make it so?


Version: unspecified
Severity: normal

Details

Reference
bz50133

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:00 AM
bzimport set Reference to bz50133.

It's enabled, but I think Nearby is querying NS_MAIN instead of NS_FILE.

Should this be the default namespace to search in for GeoData on commons?
I'm not sure if this should be a configurable change in GeoData or in the frontend code.

I tried running this on the NS_FILE namespace and it seems that page images do not work on the file namespace... however the results are awesome. I just discovered a load of photos of the wikimedia office on the nearby page of commons. We should definitely get this working!

Ideally this would use $wgContentNamespaces (If it doesn't already), although I noticed that commons doesn't have NS_FILE as a content namespace, which seems odd to me.

Created attachment 12628
Nearby page on commons with results (desktop)

Attached:

Screen_Shot_2013-06-24_at_3.03.46_PM.png (588×821 px, 64 KB)

Related URL: https://gerrit.wikimedia.org/r/70350 (Gerrit Change Ia9b3bf27a397cb0365d3b7681f0c22818a74f61b)

https://gerrit.wikimedia.org/r/70350 (Gerrit Change Ia9b3bf27a397cb0365d3b7681f0c22818a74f61b) | change APPROVED and MERGED [by jenkins-bot]

There is an issue with PageImages which makes the upload CTA show on all photos in the nearby list. Will cut a bug for that when possible.