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 1450032 - Convert bottom (secondary) nav bar to ReactJS #3779
Conversation
eb23299
to
6a516bc
Compare
6a516bc
to
923cfdf
Compare
'testfailed', | ||
'busted', | ||
'exception', | ||
'success', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reordering these so we don't have to munge them to show the menu in the right order.
@@ -10,12 +10,6 @@ describe('linkifyBugs filter', function() { | |||
expect(linkifyBugs('Bug 123456')) | |||
.toEqual('Bug <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=123456" data-bugid="123456" title="bugzilla.mozilla.org">123456</a>'); | |||
}); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This functionality isn't used anymore, so I removed it from the filter
Dang. There are a couple legit bugs found in the selenium tests. Working on fixing them now. Please hold off on review, if you've already started. Sorry about that. |
d7c800a
to
86b0730
Compare
I hit some selenium tests that were failing intermittently until I added some |
1dd359c
to
8055239
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
ui/shared/BugLinkify.jsx
Outdated
|
||
render() { | ||
return ( | ||
<ReactLinkify properties={{ target: '_blank' }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anywhere target="_blank"
is used, we must also use rel="noopener noreferrer"
for security reasons.
ng-class="{'active': watchedRepo===repoName}" | ||
ng-click="changeRepo(watchedRepo)" | ||
type="button" | ||
title="{{titleText|stripHtml}}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think stripHtml
is now unused
f917d83
to
f94abf3
Compare
} | ||
|
||
getSearchStr() { | ||
const ss = this.thJobFilters.getFieldFiltersObj().searchStr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ss is short for searchString presumably?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, but probably better to spell it out for clarity.
@@ -30,7 +30,7 @@ export default class TreeStatusModel { | |||
Promise.resolve({ | |||
result: { | |||
status: 'error', | |||
message_of_the_day: 'Unable to connect to the <a href="https://mozilla-releng.net/treestatus">TreeStatus</a> API', | |||
message_of_the_day: 'Unable to connect to the https://mozilla-releng.net/treestatus API', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why this is called 'message_of_the_day'. Sounds like it changes depending on the day :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can, yeah. If there are special conditions about the branch, it will be in this message. I don't think it changes daily, but possibly could. reason
would have info about tree closures, if there was one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for answering my questions :)
ui/js/services/jobfilters.js
Outdated
}, | ||
nonfailures: { | ||
value: 'nonfailures', | ||
name: 'non-failures', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does 'non-failures' name have a hyphen and the value does not? (since the other filter groups are consistent with name and value.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heh, that's an excellent question. The answer is that name
and value
are vestigial artifacts of how we did things in Angular. We don't need them anymore. So I simplified that structure to just be an object with keys as each group (used by the colored fitler chicklets(dots) on the navbar) with values as arrays of resultStatus
.
Thanks for catching that! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - added a few nit comments/questions.
f94abf3
to
1381ce2
Compare
I had wanted to migrate to using "resultState" instead, as it seemed more descriptive of what it is. But the filter params are using "resultStatus" and it would not be worth the effort to migrate. It doesn't really matter, but I want to be consistent to remove confusion, so moving these terms back to "resultStatus"-ish names.
1381ce2
to
fef404f
Compare
Thanks for the excellent feedback, both of you! :) |
Bug 1450032
OK, tests should be fixed now. Thanks for reviewing this!