Page MenuHomePhabricator

DynamicPageList uses an unknown ordering method
Closed, ResolvedPublic

Description

Author: deletesoftware

Description:
DynamicPageList uses a strange ordering method. It seems to be neither

  • addition to the category specified to DPL
  • addition to the category specified using the publishing template
  • addition to the category listed first in the article

http://eo.wikinews.org/wiki/Vikinova%C4%B5oj:Lastaj_nova%C4%B5oj

uses code:

<DynamicPageList>
category = Publikigitaj artikoloj
count = 5
ordermethod = categoryadd
addfirstcategorydate = true
</DynamicPageList>

shows:

  • 25. Dec 2010: Ĉilio: Tertremo kun magnitudo de 8,8 Mw, necerta la nombro de mortintoj
  • 25. Dec 2010: Yang Jiechi alvokas la Japanian ambasadoron, postulas senprokrastan liberigon de ĉinaj fiŝkaptistoj
  • 25. Dec 2010: Regiona voĉdonado en Italio: Norda Ligo flugas, eksplodo de Grillo-uloj
  • 25. Dec 2010: Pli ol 900 mortintoj, 14.000 infektitoj pro la nuna eksplodo de ĥolero en Haitio
  • 24. Dec 2010: Vikinovaĵaj mallongaĵoj, 2010-12-24

The category "Publikigitaj artikoloj" is added by the template {{Publikigita}}: http://eo.wikinews.org/wiki/%C5%9Cablono:Publikigita

The article published (added to "Publikigitaj artikoloj") last (Dec 24) was http://eo.wikinews.org/wiki/Eldonistoj_oponas_la_proponatajn_%C5%9Dan%C4%9Dojn_de_Rusia_a%C5%ADtorrajta_le%C4%9Do . It was also the last article edited (Dec 27, no category changes).

The article published last (Dec 24) among the ones shown by DPL is http://eo.wikinews.org/wiki/Vikinova%C4%B5aj_mallonga%C4%B5oj,_2010-12-24 . It is also the last (Dec 26) of them edited (no category changes).

The article "Yang Jiechi alvokas la Japanian ambasadoron, postulas senprokrastan liberigon de ĉinaj fiŝkaptistoj" has been edited on Dec 25, but the only category change added an irrelevant category at the bottom of it: http://eo.wikinews.org/w/index.php?title=Yang_Jiechi_alvokas_la_Japanian_ambasadoron%2C_postulas_senprokrastan_liberigon_de_%C4%89inaj_fi%C5%9Dkaptistoj&action=historysubmit&diff=3053&oldid=2512


Version: unspecified
Severity: major
URL: http://eo.wikinews.org/wiki/Vikinova%C4%B5oj:Lastaj_nova%C4%B5oj

Details

Reference
bz26566

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:12 PM
bzimport set Reference to bz26566.

DynamicPageList can be configured to use different order methods. The default is the date the category was added (or changed) to the article.

Thus, blanking the article and then reverting will make it pop back to the top of the list. Changing the sortkey of a category will also make it pop back to the top (via {{DEFAULTSORTKEY:...}} or [[category:Foo|bar]] syntax). Overly long article titles can sometimes cause issues as well (bug 25254).

However in this case, the issue appears to be related to bug 25254. This bug is for pages with long titles, they get moved to the front of the DPL list any time they are edited (including null edits).

The weird part is, that the sortkeys don't seem to be getting cut off according to the api, which was my old theory for what was causing bug 25254. Need to investigate further

As a work around, when publishing the article, try to specify a sortkey using {{DEFAULTSORT:}} that is 70 characters or less. (things like cx = ĉ count as two characters).

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