Last modified: 2012-11-29 12:38:58 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 T40181, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38181 - Descriptions and aliases appear in languages that they should not
Descriptions and aliases appear in languages that they should not
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Highest major (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-04 23:19 UTC by denny vrandecic
Modified: 2012-11-29 12:38 UTC (History)
2 users (show)

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


Attachments

Description denny vrandecic 2012-07-04 23:19:27 UTC
When I am in a language and add a description and switch the language, the description is still displayed. Only on a purge I see the actual data.
Comment 1 denny vrandecic 2012-07-05 14:01:58 UTC
Picked for sprint 9.
Comment 2 jeblad 2012-07-08 19:32:19 UTC
During testing of the API for "setitem", this was what I found and it seems to reproduce.

http://localhost/repo/api.php?action=wbsetitem&data={%22labels%22:{%22en%22:%22foo%22,%22nn%22:%22bar%22},%22descriptions%22:{%22en%22:%22This%20is%20foo%22,%20%22nn%22:%22Dette%20er%20bar%22}}&format=jsonfm

Note the "id" and do something like this (I used "9" in this case)

http://localhost/repo/api.php?action=wbgetitems&ids=9&format=jsonfm

Description and labels are now correctly set for "en" and "nn". Open up the browser for the page "Data:Q9" by accessing it with the "uselang=nn" parameter.

http://localhost/repo/index.php?title=Data:Q9&uselang=nn

The label is correct for "nn", while the description comes from "en". Reloading with "action=purge" it will be correct as Danny said

localhost/repo/index.php?title=Data:Q10&uselang=nn&action=purge
Comment 3 jeblad 2012-07-22 01:17:27 UTC
For now this is solved by turning of the caching.

See also https://gerrit.wikimedia.org/r/#/c/15625/

Could need a better solution sometimes in the future.
Comment 4 Anja Jentzsch 2012-11-29 12:38:58 UTC
Verified in Wikidata demo time for sprint 9

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


Navigation
Links