Closed
Bug 1060313
Opened 10 years ago
Closed 9 years ago
Repo menu links broken when testing ui locally with web-server.js
Categories
(Tree Management :: Treeherder, defect, P5)
Tree Management
Treeherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley, Mentored)
References
Details
User Story
Thank you for helping out with Treeherder! You can find us on IRC at irc://irc.mozilla.org/treeherder Here's some links to help get you started. Project page: https://wiki.mozilla.org/Auto-tools/Projects/Treeherder Interacting with us, repo locations and links to set up a development version of the software: https://wiki.mozilla.org/Auto-tools/Projects/Treeherder#Contributing https://wiki.mozilla.org/Auto-tools/Projects/Treeherder#Source_and_Docs A-Team general reference, coding style guides: http://ateam-bootcamp.readthedocs.org
Attachments
(1 file)
1) Start web-server.js 2) Go to http://localhost:8000/app/index.html?tree=Try#/jobs 3) Open the repo menu 4) Left click on another repo's name (not the checkbox) Expected: Switch to that repo Actual: URL is incorrect, points to http://localhost:8000/app/#/jobs?repo=mozilla-inbound rather than http://localhost:8000/app/index.html#/jobs?repo=mozilla-inbound
Assignee | ||
Comment 1•10 years ago
|
||
Is web-server.js a workflow we intend to continue to support? Or is Vagrant (which currently allows for testing of the UI without broken links) going to be necessary? I must admit it would be great if we could avoid needing a VM to test UI changes... though with Angular html5 URL mode (bug 1042737) it may be unavoidable due to the need for .htaccess redirects etc.
Assignee | ||
Updated•10 years ago
|
No longer blocks: 1072681
Component: Treeherder → Treeherder: Docs & Development
Assignee | ||
Comment 2•10 years ago
|
||
See also the links broken in bug 1109737 comment 4.
Assignee | ||
Updated•9 years ago
|
Priority: P2 → P3
Summary: Links broken when testing treeherder-ui locally → Links broken when testing treeherder-ui locally with web-server.js
Assignee | ||
Updated•9 years ago
|
Priority: P3 → P5
Comment 3•9 years ago
|
||
Maybe this bug will be addressed by the planned merging of the -ui and -service repos, but I'll put it up as a good first bug for now.
Mentor: emorley
User Story: (updated)
Whiteboard: [good first bug]
Assignee | ||
Updated•9 years ago
|
Whiteboard: [good first bug] → [good first bug][lang=js]
Updated•9 years ago
|
User Story: (updated)
Comment 4•9 years ago
|
||
(In reply to Ed Morley [:emorley] from comment #1) > Is web-server.js a workflow we intend to continue to support? > Or is Vagrant (which currently allows for testing of the UI without broken > links) going to be necessary? > > I must admit it would be great if we could avoid needing a VM to test UI > changes... though with Angular html5 URL mode (bug 1042737) it may be > unavoidable due to the need for .htaccess redirects etc. I'm beginning think the same as Ed here. With the repo unification, and the relative ease of setting up vagrant (we've ironed out out most of the setup kinks on each platform and include it in Troublshooting in RTD) and using run_gunicorn to serve locally (where all the Treeherder UI links work), I am thinking we should consider retiring web-server.js? I noticed also yesterday navigating from Perfherder back to Treeherder via it's new top left logo-navigation-menu, suffers from the same problem as repo switching, with web-server.js. But it works perfectly running vagrant w/gunicorn.
Assignee | ||
Comment 5•9 years ago
|
||
Fixing the repo menu is easy - let's do that for now. There are another two broken links: the link back from the log viewer to the main view, and also from perfherder to the main view. The hard part it's not overly easy for the logviewer/perfherder pages to tell whether they need to link to '/index.html' or '/', unless we hardcode checking for localhost. Unfortunately the stage/prod apache configs don't redirect index.html to '/' otherwise we could just always link to index.html and let the redirect work if needs be (ie when not using web-server.js). In another bug we can always do that - but seeing as the apache configs are controlled by IT's puppet, it's going to be more involved, so not going to do that here.
Assignee: nobody → emorley
Status: NEW → ASSIGNED
Summary: Links broken when testing treeherder-ui locally with web-server.js → Repo menu links broken when testing ui locally with web-server.js
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8610894 -
Flags: review?(cdawson)
Assignee | ||
Updated•9 years ago
|
Whiteboard: [good first bug][lang=js]
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to Ed Morley [:emorley] from comment #5) > Unfortunately the stage/prod apache configs don't redirect index.html to '/' > otherwise we could just always link to index.html and let the redirect work > if needs be (ie when not using web-server.js). In another bug we can always > do that - but seeing as the apache configs are controlled by IT's puppet, > it's going to be more involved, so not going to do that here. Ah I've just thought of a better idea: bug 1168770.
Updated•9 years ago
|
Attachment #8610894 -
Flags: review?(cdawson) → review+
Comment 8•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/ea0207557e1893239b977ea64faf2a3d420fece1 Bug 1060313 - Fix the repo menu links when using web-server.js
Assignee | ||
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•2 years ago
|
Component: Treeherder: Docs & Development → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•