"Unknown repository" error is briefly shown on initial load of Treeherder.

RESOLVED FIXED

Status

Tree Management
Treeherder
P1
normal
RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: KWierso, Assigned: KWierso)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
Created attachment 8488254 [details] [review]
Don't do that

When you first load treeherder, the URL has not yet redirected to the default (mozilla-central) repository, so the ng-show check for the repository's URL is failing, causing the "Unknown repo" error to be displayed for a split second.
Attachment #8488254 - Flags: review?(cdawson)
Assignee: nobody → kwierso
Blocks: 1065541
Status: NEW → ASSIGNED
OS: Windows 8.1 → All
Priority: -- → P2
Hardware: x86_64 → All

Updated

4 years ago
Attachment #8488254 - Flags: review?(cdawson) → review+
https://github.com/mozilla/treeherder-ui/commit/da5eb72cf12c3a30ac6e35941bb3a316d6f193e8
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
This is still happening when I visit http://treeherder-dev.allizom.org/

Not a massive issue per se, but just gives an unfortunate first impression to people using treeherder for the first time :-)
Blocks: 1059400
Status: RESOLVED → REOPENED
Priority: P2 → P1
Resolution: FIXED → ---
Wes, do you know if you'll have a chance to look at this today or Monday?
Or I can open a new bug and see if one of the others wants to take a look if that works for you? :-)
(Assignee)

Comment 4

4 years ago
I'll try to get to it on Monday, but I wouldn't be opposed to this splitting off to a new bug if someone else really wants to take it.
(Assignee)

Comment 5

4 years ago
I'm not sure what's going on here.
As far as I can tell, the unknown repository error should only be shown when all of the following conditions are true:
1. 0 resultsets have been returned
2. We are not appending more resultsets
3. We are not loading jobs
4. There is no "revision" search parameter
5. There is a "repo" search parameter
6. The current repo's designated URL is unknown.



I only see the unknown repository error on initially loading treeherder. (So the address will be [treeherderRoot]/ui or [treeherderRoot]/ui/ or [treeherderRoot]/ui/#/jobs )

The error goes away once Treeherder redirects to the default mozilla-central repository (So the address will now be [treeherderRoot]/ui/#/jobs?repo=mozilla-central )

At the point where the error is shown, condition 1 and 4 should be true, while conditions 5 and 6 are false. (I'm unsure exactly when 2 and 3 switch between true and false.)


I don't know enough about Angular to figure out why it's still being shown when not all of the conditions are being met (or why Angular believes all of the conditions are being met).
Flags: needinfo?(emorley)
Flags: needinfo?(emorley) → needinfo?(cdawson)
pushed to dev and stage now
Status: REOPENED → RESOLVED
Last Resolved: 4 years ago4 years ago
Flags: needinfo?(cdawson)
Resolution: --- → FIXED

Comment 8

3 years ago
Commits pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/29143afd6cb616319f6007d7c51bd0f1412c65a3
bug 1066324 and bug 1074539 - bad page reload gives error

https://github.com/mozilla/treeherder/commit/dd869ae2a482e2d483b5dcf389f3d1cf5afa0b87
Merge pull request #213 from mozilla/bug-1074539-reload-on-redirect

bug 1066324 and bug 1074539 - bad page reload gives error
You need to log in before you can comment on or make changes to this bug.