[Wikidata-bugs] [Maniphest] [Commented On] T111069: fix no implicit conversion of String into Integer (TypeError) in browsertests

2015-09-08 Thread zeljkofilipin
zeljkofilipin added a comment. I have managed to reproduce it locally, with this `config.yml` # beta instance configuration WIKIDATA_REPO_URL: "http://wikidata.beta.wmflabs.org/wiki/; WIKIDATA_REPO_API: "http://wikidata.beta.wmflabs.org/w/api.php; WB_REPO_USERNAME: "Selenium_user"

[Wikidata-bugs] [Maniphest] [Commented On] T111069: fix no implicit conversion of String into Integer (TypeError) in browsertests

2015-09-08 Thread zeljkofilipin
zeljkofilipin added a comment. This is the problem: https://github.com/wmde/WikidataApiGem/blob/master/lib/mediawiki_api/wikidata/wikidata_client.rb#L38 def sitelink_exists?(site_id, title) resp = action(:wbgetentities, token_type: false, sites: [site_id], titles: [title] )

[Wikidata-bugs] [Maniphest] [Commented On] T111069: fix no implicit conversion of String into Integer (TypeError) in browsertests

2015-09-08 Thread zeljkofilipin
zeljkofilipin added a comment. [8] pry(#)> resp.data["entities"] => [{"pageid"=>139698, "ns"=>0, "title"=>"Q103069", "lastrevid"=>216899, "modified"=>"2015-08-25T15:33:00Z", "type"=>"item", "id"=>"Q103069", "labels"=>{"en"=>{"language"=>"en", "value"=>"gKjXdSKs"}},

[Wikidata-bugs] [Maniphest] [Commented On] T111069: fix no implicit conversion of String into Integer (TypeError) in browsertests

2015-09-08 Thread zeljkofilipin
zeljkofilipin added a comment. When sitelink exists (example: `"enwiki", "Asia"`), `resp.data["entities"]` returns [{"pageid"=>139698, "ns"=>0, "title"=>"Q103069", "lastrevid"=>216899, "modified"=>"2015-08-25T15:33:00Z", "type"=>"item", "id"=>"Q103069", "labels"=>{"en"=>{"language"=>"en",

[Wikidata-bugs] [Maniphest] [Commented On] T111069: fix no implicit conversion of String into Integer (TypeError) in browsertests

2015-09-08 Thread zeljkofilipin
zeljkofilipin added a comment. The documentation for mediawiki_api-wikidata says: wikidata_client.sitelink_exists? "enwiki", "Berlin" #returns true if enwiki/Berlin sitelink exists, false otherwise An easy fix could be to