Page MenuHomePhabricator

Coordinate removal fail
Closed, ResolvedPublic

Details

Reference
bz57668

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:25 AM
bzimport set Reference to bz57668.
bzimport added a subscriber: Unknown Object (MLST).

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1459

In some cases,
parameter exsentences does not return the number of sentences, but the coordinates of an article.

Instead parameter exchars return a number of chars, and also the coordinates.

luigi.assom: Examples for "some cases" are very welcome, and whether the problem is reproducible for such a testcase.

Hello Andre!!
sure, here some:
https://en.wikipedia.org/wiki/United_World_College_of_the_Adriatic
https://en.wikipedia.org/wiki/North_Wessex_Downs
https://en.wikipedia.org/wiki/White_Cliffs_of_Dover

https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=North_Wessex_Downs|White_Cliffs_of_Dover&prop=extracts&exintro&explaintext&exsentences=10&continue

Also note that
https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=North_Wessex_Downs|White_Cliffs_of_Dover&prop=extracts&exintro&explaintext&exsentences=10&continue

does not return excerpt neither coordinates for the last topic in the last query,
while the separated query
https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=White_Cliffs_of_Dover&prop=extracts&exintro&explaintext&exsentences=10&continue
returns the coordinates (and not the excerpt)

others:
https://en.wikipedia.org/wiki/Alabama_House_of_Representatives
https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=Alabama%20House%20of%20Representatives&prop=extracts&exintro&explaintext&exsentences=10

https://en.wikipedia.org/wiki/Alabama_Senate
https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=Alabama_Senate&prop=extracts&exintro&explaintext&exsentences=10

https://en.wikipedia.org/wiki/Black_Belt_(region_of_Alabama)
https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=Black%20Belt%20(region%20of%20Alabama)&prop=extracts&exintro&explaintext&exsentences=10

https://en.wikipedia.org/wiki/Malta
https://en.wikipedia.org/w/api.php?format=jsonfm&action=query&titles=Malta&prop=extracts&exintro&explaintext&exsentences=10

If you need more examples, just let me know - although it may be a good sample

Hello,

I am looking at the xml of articles which return experts correctly (e.g. Alabama, Venice, Rome) respect to the others which return coordinates.

I noticed that the articles failing to report the excerpts, have a {{coord}} in and at the beginning of the <text> field:
<text xml:space="preserve" bytes="">
{{coord ...}}
...
</text>

About articles displaying excerpts properly:
Alabama reports the field {{coord}} at the end of the </text>
Venice do not report a {{coord}} (though coordinates are present at top right of the page)
Rome do not report a {{coord}} (though coordinates are present at top right of the page)

Change 98848 had a related patch set uploaded by MaxSem:
Fix removal of title coordinates from extracts

https://gerrit.wikimedia.org/r/98848

Change 98848 merged by jenkins-bot:
Fix removal of title coordinates from extracts

https://gerrit.wikimedia.org/r/98848

Change deployed, however it might take some time to take effect everywhere due to caching.

Terrific Max!!
what was the cause?
I hope my little suggestions were of help...
thank you all guys!