Closed
Bug 1095100
Opened 10 years ago
Closed 9 years ago
Similar jobs: "Show previous jobs" should show append to the list of jobs, not replace it
Categories
(Tree Management :: Treeherder, defect, P3)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sfink, Assigned: johnp)
References
Details
Attachments
(1 file)
I totally thought the "Show previous jobs" button in Similar Jobs would add in the next few previous jobs, especially since that's how the "next 10" button works.
Updated•9 years ago
|
Priority: -- → P3
Summary: Add jobs to similar jobs list, do not switch to a different set → Similar jobs: "Show previous jobs" should show append to the list of jobs, not replace it
Assignee | ||
Comment 1•9 years ago
|
||
I have a patch for that and I'll file a pull-request later. I'll keep the wording, although it is wrong because the the treeherder-service is returning the data ordered from old to new instead of new to old, which makes us technically do a "Show next jobs" for now.
Assignee | ||
Comment 2•9 years ago
|
||
Pull request for check-in. The ordering issue is a regression from .mozilla.org to .allizom.org most likely from bug 1097090.
Attachment #8566872 -
Flags: review?
Assignee | ||
Comment 3•9 years ago
|
||
If the amount of jobs to load should be customizable like in the main view I'll add that feature as well. Currently the link (which should probably have some button-styling attached to it) loads one page = 20 elements. I also didn't remove the whole pagination with $scope.page / $scope.page_size from the controller, but I can make that simpler as well.
Assignee | ||
Comment 4•9 years ago
|
||
For the styling I would add 'class="btn btn-default btn-sm"' to the button. If we want to go without pagination we probably should change the naming from "Show previous jobs" to "Load previous jobs" or something else.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → johnp
Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 5•9 years ago
|
||
Comment on attachment 8566872 [details] [review] Pull Request This looks great - thank you :-)
Attachment #8566872 -
Flags: review? → review+
Comment 6•9 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder-ui https://github.com/mozilla/treeherder-ui/commit/8fe84d24a08558e46f5bd0ab195f0249c88084d0 Bug 1095100 - let "Show previous jobs" append data instead of replacing it update_similar_jobs() now resets the list on job change get_list() now appends the new data by merging the arrays (using jQuery) https://github.com/mozilla/treeherder-ui/commit/62721ea073ae93fe12319a0e1af863fc7ff5b842 Bug 1095100 - "Show previous jobs"-Button styling https://github.com/mozilla/treeherder-ui/commit/93ff0ff49ef6fb8ebd8166a98fad48b4e6f58c57 Merge pull request #379 from johnp/bug-1095100-similar-jobs-append Bug 1095100 - Let "Show previous jobs" append data instead of replacing it
Comment 7•9 years ago
|
||
I've merged this & fingers crossed we should deploy in the next few days (though we've been saying that for a while!).
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 8•9 years ago
|
||
Commits pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/12ccfb36f0b26a01521b110854372a6bbdc5c6d3 Bug 1095100 - let "Show previous jobs" append data instead of replacing it update_similar_jobs() now resets the list on job change get_list() now appends the new data by merging the arrays (using jQuery) https://github.com/mozilla/treeherder/commit/7996f0bf3b4a474992367750334ab6422b45129d Bug 1095100 - "Show previous jobs"-Button styling https://github.com/mozilla/treeherder/commit/54f3393167aca9d69a7f54a9ad73bb0240b98241 Merge pull request #379 from johnp/bug-1095100-similar-jobs-append Bug 1095100 - Let "Show previous jobs" append data instead of replacing it
You need to log in
before you can comment on or make changes to this bug.
Description
•