Closed Bug 1046226 Opened 10 years ago Closed 10 years ago

Improve error message when using a URL with an incorrect repo name

Categories

(Tree Management :: Treeherder, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: KWierso)

References

Details

Attachments

(1 file)

Visiting:
https://treeherder.mozilla.org/ui/#/jobs?repo=foo

Results in:
"Error retrieving job data!"

Rather than:
"Unknown repo!"

This makes things like bug 1046225 harder to figure out.
Priority: P2 → P3
(In reply to Ed Morley [:edmorley] from comment #1)
> It looks like unfortunately this part:
> https://github.com/mozilla/treeherder-ui/commit/
> 08cc4f1a6603b5fbf353091d6045166144f732e5#diff-
> 84193e569f1b29f0ab46ad40005626f8R59
> 
> of bug 1065541 doesn't quite work.
> 
> eg try:
> http://treeherder-dev.allizom.org/ui/#/jobs?repo=foo

Huh. I think I must've made a copy/paste fail somewhere in there.
The conditions for showing the unknown repo error are:
"result_sets.length == 0 && !isLoadingRsBatch.appending && !isLoadingJobs &&     !locationHasSearchParam('revision') && !locationHasSearchParam('repo') && !currentRepo.url

I think the "!locationHasSearchParam('repo')" should be "locationHasSearchParam('repo')" without the "!" at the beginning.
This seems to work locally.
Attachment #8490180 - Flags: review?(emorley)
Comment on attachment 8490180 [details] [review]
Fix the error condition

lgtm - thank you :-)
Attachment #8490180 - Flags: review?(emorley) → review+
Assignee: nobody → kwierso
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 10 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: