Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1445295 - intermittent failures fix #3356

Merged
merged 2 commits into from Mar 21, 2018

Conversation

sarah-clements
Copy link
Contributor

change jobsUrl to include job_id for revision link in bug details view table

change jobsUrl to include job_id for revision link in Bug Details View table
Copy link
Contributor

@camd camd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small change to make. Thanks for the PR!

export const jobsUrl = function getJobsUrl(tree, revision) {
return `https://treeherder.mozilla.org/#/jobs?repo=${tree}&revision=${revision}`;
export const jobsUrl = function getJobsUrl(tree, revision, jobId) {
return `https://treeherder.mozilla.org/#/jobs?repo=${tree}&revision=${revision}&selectedJob=${jobId}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works to use the same domain as wherever it's running if you use:

return `/#/jobs?repo=${tree}&revision=${revision}&selectedJob=${jobId}`

Then it'll pickup localhost:5000 or stage/prototype, if that's where you are. I think this is preferable. Sorry I missed this in an earlier review. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@camd I saw the hash router making that url a route of intermittents-failure.html (intermittent-failures.html#/jobs...) when we were testing it on prototype, but I realize now it's because I had forgotten the / before the hash. I'll remove the domain and resubmit shortly :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be glad when (if?) we can get rid of that hash router... :) Thanks!

remove domain from jobsUrl
@camd camd merged commit ac5a4b1 into mozilla:master Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants