Last modified: 2012-07-17 23:24:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40286, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38286 - Mobile default categories for WLM App image upload
Mobile default categories for WLM App image upload
Status: RESOLVED FIXED
Product: WikiLoves Monuments Mobile
Classification: Unclassified
Upload (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-10 20:32 UTC by Phil Chang
Modified: 2012-07-17 23:24 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Phil Chang 2012-07-10 20:32:43 UTC
Screen 23 in the wireframes is the place in the workflow where all necessary metadata will be added to an image before it is uploaded. We need to include some default, hidden categories, in addition to the ones generated in bug 38282:

Main category: Mobile upload
  Subcategory: Uploaded with Android WLM App
  Subcategory: User agent string (if possible)
Comment 1 Arthur Richards 2012-07-12 18:31:44 UTC
Resolved in https://github.com/wikimedia/WLMMobile/pull/52

In order for categories to be hidden, they need to have the magic word "__HIDDENCAT__" added to the category page. This is probably overly complicated to automate in the app, and I'm not sure what the real benefit is to have these categories hidden, but it is certainly possible. Please advise on how to proceed.
Comment 2 Arthur Richards 2012-07-12 19:17:42 UTC
Also, if we use the full user agent string, we're going to be generating a LOT of categories that look like:
[[Category:Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1]]

Yuvi suggested capturing a smaller subset of user agent info for the category names, like android version and device name.
Comment 3 Phil Chang 2012-07-12 19:29:44 UTC
Not sure if the categories need to be hidden. Seems to be a convention on Commons for these sorts of categories, and I thought that is how the WLM categories were treated as well. Let's ask Maarten, but for now you can make them unhidden.

Android version and device name is a good idea for the UA subcategory.
Comment 4 Arthur Richards 2012-07-12 20:30:19 UTC
Updated pull request for this is at:
https://github.com/wikimedia/WLMMobile/pull/53

This does not inclue UA information at the moment, I'll tackle it later.
Comment 5 Arthur Richards 2012-07-13 00:26:02 UTC
Just committed code to create a category based on the android version, language, and device. Looks like:
[[Category:Android 2.3.6; en-us; Nexus S Build/GRK39F]]

https://github.com/awjrichards/WLMMobile/commit/d177a3aa485592e457b4833f1b545090789b87a8
Comment 6 Arthur Richards 2012-07-13 00:26:27 UTC
Actually, looks like:
[[Category:UA: Android 2.3.6; en-us; Nexus S Build/GRK39F]]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links