Page MenuHomePhabricator

Special handling for date categories in DynamicPageList (DPL) for WikiNews
Open, MediumPublicFeature

Description

Author: kbaas

Description:
Regarding DynamicPageList (DPL) for WikiNews
On wikinews, there are standardized date categories, in the format: June 1, 2005
an article in that category has the respective tag in it: [[category:June 1, 2005]]

Already, one can have a single date category in a dpl:
<DynamicPageList>
category=published
category=June 1, 2005
count=10
</DynamicPageList>

I would like to see functionality in regard to these date categories implemented
for DPL's:
*the ability to put relative dates in: x number of days before or after "today"
*the ability to specify a date _range_
*the ability to specify an unbounded date range: (relative:) 5 days ago to
present, or (absolute:) specific date to present


Version: unspecified
Severity: enhancement

Details

Reference
bz2284

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:33 PM
bzimport set Reference to bz2284.
bzimport added a subscriber: Unknown Object (MLST).

rowan.collins wrote:

[please try to make the summary of bugs describe the issue succinctly but precisely]

kbaas wrote:

possible formatting of date range:

startdate=May 4, 2004
enddate= (three days before today)

or

startdate=May 4, 2004
enddaterel=-3

if a begin date or end date is not specified, those limits are unbounded. (i.e.
up to present and/or to the beginnig of time)

then category filtering for relative dating could be something like (example for
"today"):

date=0

rowan.collins wrote:

Just a quick thought that without specific support at the database level, this
could be hard to implement efficiently, since the database only stores links of
the form "article X is in category Y". This feature would have to first create a
list of all categories in the scope of the date-range and then create a query of
the form "where the article is in category [a] OR the article is in category [b]
OR the article is in category [c] ... etc" For a large date range, you'd need an
awfully long database query - and I can't think of any way of making that
efficient without redesigning the database structure.

mediazilla wrote:

I generally concur with Rowan. I don't think this is possible while the schemas
is as-is. Additionally, non-English Wikinewses have different date formats that
they're using, complicating this type of a feature.

I do agree that the feature is a good idea.

kbaas wrote:

right. you'd have to add a column to a table, or alternatively a table by which
to do an inner join to an existing table. then there wouldn't be "long
queries", just "between" statements. regarding different date formats: that's
easily enough done.

relative dating, however, is a separate issue and doesn't seem to have this
problem of requiring a change in the table strcuture.

Assign open DynamicPageList issues to new component maintainer.

epriestley closed this task as Resolved by committing Unknown Object (Diffusion Commit).Mar 4 2015, 8:15 AM
epriestley added a commit: Unknown Object (Diffusion Commit).
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.