Closed Bug 1074837 Opened 11 years ago Closed 11 years ago

The commits shown in the "Revision URL List" popup are inverted

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: RyanVM, Assigned: emorley)

References

Details

Attachments

(1 file)

They need to be in the opposite order to match how the post-commit hook prints them out (and making the list way more useful from a copy/paste into a bug standpoint).
Need to just invert the order here: https://github.com/mozilla/treeherder-ui/blob/master/webapp/app/js/directives/resultsets.js#L11 var openRevisions = function() { var interpolator = thCloneHtml.get('revisionUrlClone').interpolator; var htmlStr = ''; _.forEach(scope.resultset.revisions, function(revision) { htmlStr = htmlStr + interpolator( {repoUrl: scope.currentRepo.url, revision: revision} ); }); var el = $compile(interpolator(scope))(scope, function(el, scope) { var wnd = window.open( '', scope.repoName, "outerHeight=250,outerWidth=500,toolbar=no,location=no,menubar=no" ); wnd.document.write(htmlStr); }); }; (Tweaking summary to differentiate from the list of revisions in the main UI)
Priority: -- → P2
Summary: Revision URL List is inverted → The commits shown in the "Revision URL List" popup are inverted
This displays reverses the order of the commits, so they are in old-to-new order, to match TBPL: https://hg.mozilla.org/webtools/tbpl/file/74a1a15f6593/js/UserInterface.js#l1120 I'm up for suggestions as to how the indentation should be changed - I'm not overly happy with the few ways I tried. Also we might want a comment - let me know :-)
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Attachment #8497539 - Flags: review?(cdawson)
Attachment #8497539 - Flags: review?(cdawson) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: