Closed Bug 823616 Opened 13 years ago Closed 11 years ago

Create a template for TreeStatus logs

Categories

(Release Engineering :: General, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: warunsl)

References

Details

Attachments

(2 files)

This is fairly low priority, but currently logs are output without a template (https://treestatus.mozilla.org/mozilla-central/logs) and as such don't really offer much over just using https://treestatus.mozilla.org/mozilla-central/logs?format=json Also, https://treestatus.mozilla.org/mozilla-central shows log entries, so maybe we can just use that?
Product: Webtools → Tree Management
Looks like https://treestatus.mozilla.org/mozilla-central and https://treestatus.mozilla.org/mozilla-central/logs output the same information, except that the former uses a template. Why not redirect /tree/logs to /tree? Am I overlooking something?
Flags: needinfo?(emorley)
So there is a difference in the json output: https://treestatus.mozilla.org/mozilla-central?format=json https://treestatus.mozilla.org/mozilla-central/logs?format=json And I think that is desirable, since people can decide whether they just need the current state, or history. I think really the end result should be: "Add template to tree/logs, and make the main tree page only show the last N log entries" This bug is the first part of that, we can either just do that for now (and have another bug for making the https://treestatus.mozilla.org/mozilla-central page only show a short summary of history (with https://treestatus.mozilla.org/mozilla-central/logs being the full history), or do both here - is up to you :-)
Flags: needinfo?(emorley)
Changes: 1. Created a template file 'treelogs.html' for HTML view for /tree/logs 2. Limited the number of log entries in /tree to 5. This could be changed if we think 5 is too low 3. Modified the view definition for /tree/logs to render the template
Attachment #8523311 - Flags: review?(emorley)
Comment on attachment 8523311 [details] [review] Bug 823616 - Create a template for TreeStatus logs; r=edmorley looks good to me - I merged it upstream
Attachment #8523311 - Flags: review?(emorley) → review+
Assignee: nobody → warunsl
Status: NEW → ASSIGNED
This looks pretty good on dev: https://treestatus-dev.allizom.org/mozilla-aurora https://treestatus-dev.allizom.org/mozilla-aurora/logs The only changes I think it might need, is to add a link to the /logs page from the tree page. ie: Below the 5 most recent changes, add a link called "Full log", "More..." or something similar. I wonder as well whether it would be better to call the heading on the tree page "Recent Changes" rather than "Summary"?
I think your suggestions would look good. How do I go about making the suggested changes when my PR is merged already?
Flags: needinfo?(emorley)
(In reply to shaktimaan from comment #7) > I think your suggestions would look good. How do I go about making the > suggested changes when my PR is merged already? If you create another PR, and add the link to that as a second attachment to this bug, that would be great :-)
Flags: needinfo?(emorley)
Attachment #8527109 - Flags: review?(catlee)
Comment on attachment 8527109 [details] [review] Bug 823616 - Create a template for TreeStatus logs; r=catlee merged upstream as https://github.com/mozilla/treestatus/commit/ae1c22ac018c61e915eced0e0eb4ddf0fedabc58 thanks!
Attachment #8527109 - Flags: review?(catlee) → review+
Depends on: 1110150
In production - thank you for the patches :-)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Tree Management → Release Engineering
Component: Applications: TreeStatus → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: