Page MenuHomePhabricator

WLM Mobile app doesn't add the {{Wiki Loves Monuments 2012}} template
Closed, ResolvedPublic

Description

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:

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?

Version: unspecified
Severity: blocker

Details

Reference
bz39879

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 12:55 AM
bzimport set Reference to bz39879.
bzimport added a subscriber: Unknown Object (MLST).

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.

(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

(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.

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