Last modified: 2013-08-19 17:26:42 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 T4284, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2284 - Special handling for date categories in DynamicPageList (DPL) for WikiNews
Special handling for date categories in DynamicPageList (DPL) for WikiNews
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
DynamicPageList (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-01 17:46 UTC by Kevin Baas
Modified: 2013-08-19 17:26 UTC (History)
1 user (show)

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


Attachments

Description Kevin Baas 2005-06-01 17:46:11 UTC
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
Comment 1 Rowan Collins [IMSoP] 2005-06-01 17:52:53 UTC
[please try to make the summary of bugs describe the issue succinctly but precisely]
Comment 2 Kevin Baas 2005-06-01 21:06:21 UTC
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 
Comment 3 Rowan Collins [IMSoP] 2005-06-01 21:11:51 UTC
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.
Comment 4 IlyaHaykinson 2005-06-28 01:05:01 UTC
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.
Comment 5 Kevin Baas 2005-06-28 11:08:22 UTC
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.
Comment 6 Siebrand Mazeland 2010-02-15 10:15:17 UTC
Assign open DynamicPageList issues to new component maintainer.

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


Navigation
Links