Last modified: 2013-06-27 21:40:04 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 T45437, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43437 - Short timestamps for Echo flyout and archive
Short timestamps for Echo flyout and archive
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Echo (Other open bugs)
unspecified
All All
: High enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-26 20:24 UTC by Fabrice Florin
Modified: 2013-06-27 21:40 UTC (History)
7 users (show)

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


Attachments

Description Fabrice Florin 2012-12-26 20:24:00 UTC
We would like to show a 'time elapsed' indicator such as '1 hour ago' or '1 day ago' instead of the full date in the notifications. 

Since MediaWiki core still doesn't support 'time elapsed' indicators ('1 hour ago'), we can try to use the AFT code or Moodbar code instead. We should also ask Terry if there any way to give this feature a higher priority, so it gets incorporated into core sooner.

Note that we would also like to use the saem short timestamps in the 'all-notifications' archive page.
Comment 1 Dereckson 2012-12-26 20:42:22 UTC
[ Adding Terry as cc, per description. ]
Comment 2 Alex Monk 2012-12-27 15:16:31 UTC
Echo already tries to use Language::prettyTimestamp if it exists, in the flyout and Special:Notifications. Core just doesn't have that at the moment... I don't like the idea of adding an AFT/MB dependency, so we should either get it into core or our own (Echo extension) code.
Comment 3 Terry Chay 2012-12-31 19:25:00 UTC
This has been a long running saga in

https://gerrit.wikimedia.org/r/#/c/15746

which was reverted in 

https://gerrit.wikimedia.org/r/#/c/29947/

Basically, the code is a mess and needs to be refactored to the language team's standards. A similar but incorrect patch was inserted by platform that needs resolving before Language::prettyTimestamp() can proceed.

Echo will support whatever the final code once it's done and AFT and MoodBar should be refactored to use that feature in core instead of having Echo dependent on them.

I'll look at this in a month because this isn't a showstopper for early releases.
Comment 4 Terry Chay 2013-04-04 20:57:34 UTC
What is the status of this bug?
Comment 5 Ryan Kaldari 2013-04-11 00:00:44 UTC
This is something of an epic effort actually. So far these pieces are merged:
https://gerrit.wikimedia.org/r/45708 (core)
https://gerrit.wikimedia.org/r/45077 (cldr)
https://gerrit.wikimedia.org/r/49018 (core)
https://gerrit.wikimedia.org/r/49029 (core)
https://gerrit.wikimedia.org/r/52027 (core)
https://gerrit.wikimedia.org/r/52033 (core)
https://gerrit.wikimedia.org/r/54338 (core)
https://gerrit.wikimedia.org/r/54350 (core)

These pieces are not yet merged:
https://gerrit.wikimedia.org/r/45499 (cldr, depends on one of the 2 below being merged first)
https://gerrit.wikimedia.org/r/45294 (core)
-or-
https://gerrit.wikimedia.org/r/45651 (core)

Much of the work over the last few months has been cleaning up MediaWiki's handling of plurals so that it is compatible with CLDR's timeunit rules. We are actually very close to pushing something out at this point. I'll probably merge 45651 into core within the next week or so and then 45499.

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


Navigation
Links