Last modified: 2012-09-01 18:24:27 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 T41879, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39879 - WLM Mobile app doesn't add the {{Wiki Loves Monuments 2012}} template
WLM Mobile app doesn't add the {{Wiki Loves Monuments 2012}} template
Status: RESOLVED DUPLICATE of bug 39847
Product: WikiLoves Monuments Mobile
Classification: Unclassified
Upload (Other open bugs)
unspecified
All All
: Highest blocker
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 38648
  Show dependency treegraph
 
Reported: 2012-09-01 09:33 UTC by Maarten Dammers
Modified: 2012-09-01 18:24 UTC (History)
3 users (show)

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


Attachments

Description Maarten Dammers 2012-09-01 09:33:24 UTC
In september people using the uploadwizard and the mobile app should see the {{Wiki Loves Monuments 2012}} template being added to their uploads. This happens when people use the uploadwizard, but the mobile app fails to do so.

Two examples:
* https://commons.wikimedia.org/wiki/File:Alte_Textilschule_2012-08-01_09-15-25.jpg
* https://commons.wikimedia.org/wiki/File:Ensemble_conventuel_des_Jacobins_2012-08-01_11-20-28.jpg

The logic to add this template is in the "autowikitext" field (https://commons.wikimedia.org//w/api.php?action=uploadcampaign&format=json&ucprop=config) and contains for example "{{subst:WLM-is-running|fr|{{Wiki Loves Monuments 2012|fr}}}}" 

* Is this wikitext added?
* Is something cached client side so it outputs an old result?
* Is a clock wrong on one of the api servers?
Comment 1 Maarten Dammers 2012-09-01 13:06:34 UTC
Yuvi pointed https://github.com/yuvipanda/WLMMobile/blob/master/assets/www/js/campaigns-data.js out to me. That looks really outdated. I hope the production app has a more up to date campaign configuration or better: Dynamically fetched from the api.
Comment 2 Maarten Dammers 2012-09-01 13:35:13 UTC
Yuvi updated it, see https://github.com/wikimedia/WLMMobile/pull/233
Comment 3 Arthur Richards 2012-09-01 14:36:16 UTC
(In reply to comment #1)
> Yuvi pointed
> https://github.com/yuvipanda/WLMMobile/blob/master/assets/www/js/campaigns-data.js
> out to me. That looks really outdated. I hope the production app has a more up
> to date campaign configuration or better: Dynamically fetched from the api.

FWIW the previous version of that file in Yuvi's fork was 5 days old, but what is currently in the app released in the store is about 15 hours old, so unless campaigns have changed drastically in the last 15 hours, the data available in production is not that old: https://github.com/wikimedia/WLMMobile/blob/v1.2.1/assets/www/js/campaigns-data.js
Comment 4 Arthur Richards 2012-09-01 14:55:15 UTC
(In reply to comment #0)
> In september people using the uploadwizard and the mobile app should see the
> {{Wiki Loves Monuments 2012}} template being added to their uploads. This
> happens when people use the uploadwizard, but the mobile app fails to do so.
> 
> Two examples:
> *
> https://commons.wikimedia.org/wiki/File:Alte_Textilschule_2012-08-01_09-15-25.jpg
> *
> https://commons.wikimedia.org/wiki/File:Ensemble_conventuel_des_Jacobins_2012-08-01_11-20-28.jpg
> 
> The logic to add this template is in the "autowikitext" field
> (https://commons.wikimedia.org//w/api.php?action=uploadcampaign&format=json&ucprop=config)
> and contains for example "{{subst:WLM-is-running|fr|{{Wiki Loves Monuments
> 2012|fr}}}}" 
> 
> * Is this wikitext added?

It appears to be; now that the contest is live I just tried uploading a photo and it was populated with the contents of autoWikiText for the US:
http://commons.wikimedia.org/wiki/File:Armory_Park_Historic_Residential_District_2012-09-01_07-38-16.jpg

I just double checked the latest campaign data for the latest version of the app (v1.2.1) and every campaign listed has a similar autoWikiText string, so folks uploading photos who are running the latest version of the app should have the autoWikiText showing up.

(In reply to comment #1)
>I hope the production app has a more up
> to date campaign configuration or better: Dynamically fetched from the api.

Like I've mentioned previously, the campaign data in the app is as up to date as it was when we did the release - the data was refreshed minutes prior. We have also realized the shortcomings of the approach that was taken to store campaign data in the app and have already started working on changing it so that the campaign data is periodically fetched dynamically within the app. This change should be present in the next release of the app next week.
Comment 6 Jon 2012-09-01 18:24:27 UTC

*** This bug has been marked as a duplicate of bug 39847 ***

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


Navigation
Links