Closed
Bug 557556
Opened 15 years ago
Closed 14 years ago
support variable display ranges
Categories
(Tree Management Graveyard :: TBPL, defect)
Tree Management Graveyard
TBPL
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dietrich, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
5.25 KB,
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
currently TBPL shows 12 hour increments of pushes.
however, some trees have little activity, so the default display is empty. also, to go back 3 days to the last data, for example, requires a bunch of clicking and waiting.
in these cases, a "last X pushes" model would work better. for some trees or users a 24hr display range would be nice. tinderbox has this option.
i'm not sure yet how to surface this in the UI, but this patch begins the process of abstracting the display interval out, and making it configurable.
Reporter | ||
Comment 1•15 years ago
|
||
Updated•15 years ago
|
Depends on: tbpl-server
Comment 2•15 years ago
|
||
Comment on attachment 437343 [details] [diff] [review]
v1
>diff --git a/PushlogHTMLParser.js b/PushlogHTMLParser.js
>- return "fetchraw.php?site=pushlog&url=" + repoName + "/pushloghtml%3Fstartdate=" + startDate + "%26enddate=" + endDate;
>+ return "http://tests.themasta.com/tinderboxpushlog/fetchraw.php?site=pushlog&url=" + repoName + "/pushloghtml%3Fstartdate=" + startDate + "%26enddate=" + endDate;
please don't hardcore urls
>diff --git a/UserInterface.js b/UserInterface.js
>- '<span class="date">' + self._getDisplayDate(push.date) + '</span></h2>\n' +
>+ '<span class="date">' + self._getDisplayDate(push.date) + '</span>' +
>+ ' (compare: <input class="revsToCompare" id="compareRevs" type="checkbox" value="' + push.patches[0].rev + '" onclick="compare()">)' +
>+ '</h2>\n' +
seems like this got mixed up with the patch from bug 557552
That bug also abstracts the url handling which is nice, maybe you could split that out into a separate patch?
Looks nice apart from those small nits.
Reporter | ||
Comment 3•15 years ago
|
||
comments addressed
Assignee: nobody → dietrich
Attachment #437343 -
Attachment is obsolete: true
Reporter | ||
Updated•15 years ago
|
Attachment #437349 -
Flags: review?(mstange)
Updated•15 years ago
|
Attachment #437349 -
Flags: review?(mstange) → review+
Comment 4•15 years ago
|
||
Comment on attachment 437349 [details] [diff] [review]
v2
The name "displayInterval" seems a little confusing next to "loadInterval" in Config.js, but I don't really have a better name... maybe displayTimeRange? Anyway, your choice.
Comment 5•14 years ago
|
||
?hours=n seems like a good enough way to start exposing it - if we had that right now, I would be able to actually get tbpl to load (since over an imperfect connection, the 3-4MB json doesn't load in 2 minutes, at which point another and then another request piles up, and before long I'm failing to download 6 or 8 or 10 copies at a time).
Comment 7•14 years ago
|
||
This is basically in bug 566870 as Config.goBackHours. But as tinderbox’s cached json has 12 hours of data, it would need to be changed in accordance to that.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Product: Webtools → Tree Management
Assignee | ||
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•