update relative dates without refreshing the page

RESOLVED FIXED

Status

()

bugzilla.mozilla.org
User Interface: Modal
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: glob, Assigned: glob)

Tracking

Production
x86
Mac OS X

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
the relative dates on show-bug are only accurate at the time the bug was first loaded.

they should update over time without needing to refresh the page.

this requires mirroring the logic in the Time::Duration module in javascript.
(Assignee)

Comment 1

3 years ago
Created attachment 8587212 [details] [diff] [review]
1146767_1.patch

- move _sql_to_time into BugModal::Util
- almost line-for-line port Time::Duration to javascript
- update relative times every 60 seconds
Attachment #8587212 - Flags: review?(dylan)
Comment on attachment 8587212 [details] [diff] [review]
1146767_1.patch

Review of attachment 8587212 [details] [diff] [review]:
-----------------------------------------------------------------

r=dylan

This change is somewhat subtle and almost devious if you're used to having to hit refresh to update the timestamps.
Attachment #8587212 - Flags: review?(dylan) → review+
(Assignee)

Comment 3

3 years ago
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   6116f2f..e5131c8  master -> master
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.