Closed
Bug 1152389
Opened 9 years ago
Closed 7 years ago
Reconcile our maximum pinboard count error messages
Categories
(Tree Management :: Treeherder: Frontend, defect, P5)
Tree Management
Treeherder: Frontend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jfrench, Assigned: sclements, Mentored)
References
()
Details
(Keywords: good-first-bug, Whiteboard: [lang=js])
Attachments
(3 files)
So we have three different "pinboard is full" kinds of messages, encountered with slightly different workflows and code-paths. I wonder if we could have one code path, or at least, fewer message styles. To reproduce: Workflow 1 o start with pinboard, Pin-all icon dialogue: "Max pinboard size of 500 reached." Workflow 2 o empty pinboard, Pin-all, remove a few jobs, pin some others until >500 dialogue: "Pinboard is already at maximum size of 500" Workflow 3 o empty pinboard, Pin-all, Pin-all a 2nd time dialogue: "Pinboard is full. Can not pin any more jobs" I wonder if we want to try to make at least the first 2, if not all 3, match each other (possibly with dialogue 1, since we just fixed that in bug 1149576) and perhaps also make these things non-sticky? ie. removing the [x] close UI. We could also check to see if there are code-path duplications, during the work.
Reporter | ||
Comment 1•9 years ago
|
||
Per screen grab.
There are three different code paths here. https://github.com/mozilla/treeherder/blob/be8c7be9ad3bf17541849dc8aaf5b051be0d0435/ui/js/controllers/filters.js#L185 https://github.com/mozilla/treeherder/blob/be8c7be9ad3bf17541849dc8aaf5b051be0d0435/ui/js/services/pinboard.js#L75 https://github.com/mozilla/treeherder/blob/e53a3393a2783ec878d3f9c2e55997d42a98458d/ui/js/models/resultsets_store.js#L307 We could easily get each of these to return a single error message, not sure if we could de-duplicate the actual code paths.
Updated•7 years ago
|
Assignee: nobody → sclements313
Updated•7 years ago
|
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8919904 -
Flags: review?(cdawson)
Comment 4•7 years ago
|
||
Comment on attachment 8919904 [details] [review] Pull request for pinboard error message Just requesting a couple tweaks. Please reassign to me when you've got them done.
Attachment #8919904 -
Flags: review?(cdawson) → review-
Comment 5•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8920349 -
Flags: review?(cdawson)
Updated•7 years ago
|
Component: Treeherder → Treeherder: Frontend
Comment 6•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/dfcb18f84043891c857fe60b4a7bb58341d8b1de Bug 1152389 - Reconcile pinboard count error messages (#2848)
Updated•7 years ago
|
Attachment #8920349 -
Flags: review?(cdawson) → review+
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•