Closed Bug 1068810 Opened 10 years ago Closed 8 years ago

No error message shown in the UI when api/project/comm-central/resultset/ returns invalid repo

Categories

(Tree Management :: Treeherder, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1065541

People

(Reporter: emorley, Unassigned)

Details

(Keywords: outreachy, regression)

In bug 1035222, the repo "comm-central" appeared in the repo menu, but yet:
http://treeherder-dev.allizom.org/api/project/comm-central/resultset/?count=10&format=json&full=true&with_jobs=false

...returns 404, with content:
{"detail": "No project with name comm-central"}

In this case we don't show any error message in the UI (and no pushlog).

I'd expect to see something like:
https://github.com/mozilla/treeherder-ui/blob/5cd5d9ea697faf6022210f79482d2344ae119cfd/webapp/app/partials/jobs.html#L54
No longer blocks: treeherder-dev-transition
Keywords: regression
Priority: P3 → P4
Keywords: outreachy
It appears that the error case for when there are no results in the scope (along with other conditios) is being handled in the jobs.html partial already (https://github.com/mozilla/treeherder/blob/master/ui/partials/main/jobs.html#L95)
This is no longer the case.  We DO have an appropriate error message now:
If you navigate to: https://treeherder.mozilla.org/#/jobs?repo=mozilla-foo

you'll see:

Unknown repository.
This repository is either unknown to Treeherder or it doesn't exist. If this repository does exist, please file a bug against the Treeherder product in Bugzilla to get it added to the system.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.