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

Consistently refer to Crbug as Crbug #73

Merged
merged 3 commits into from
Oct 18, 2016
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions client/cz-component-dash.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<link rel="import" href="../bower_components/paper-item/paper-item.html">
<link rel="import" href="../bower_components/paper-item/paper-item-body.html">
<script src="issues-lib.js"></script>
<script src="crbug-lib.js"></script>
<script src="monorail-lib.js"></script>

<dom-module id="cz-component-dash">

Expand Down Expand Up @@ -44,7 +44,7 @@
text-decoration: none;
}
</style>
<a href="{{crbugLink(component.name)}}">
<a href="{{monorailLink(component.name)}}">
<paper-card heading="{{component.name}} Issues" id='card'>
<div class="card-content">
<div class='card-flex'>
Expand All @@ -53,7 +53,7 @@
<div>Owned by us</div>
<div secondary class='component'>
<template is="dom-repeat" items="{{issues(component.teamsIssues, updateSLO)}}">
<a href="{{crbugLink(component.name, item.query)}}">
<a href="{{monorailLink(component.name, item.query)}}">
<span class="bubble" style="background-color: {{item.color}}">{{item.level}}</span>
<span class="summary">{{item.summary}}</span>
</a>
Expand All @@ -67,7 +67,7 @@
<div>Owned by others</div>
<div secondary class='component'>
<template is="dom-repeat" items="{{issues(component.othersIssues, updateSLO)}}">
<a href="{{crbugLink(component.name, item.query)}}">
<a href="{{monorailLink(component.name, item.query)}}">
<span class="bubble" style="background-color: {{item.color}}">{{item.level}}</span>
<span class="summary">{{item.summary}}</span>
</a>
Expand All @@ -81,7 +81,7 @@
<div>Unowned</div>
<div secondary class='component'>
<template is="dom-repeat" items="{{issues(component.unownedIssues, updateSLO)}}">
<a href="{{crbugLink(component.name, item.query)}}">
<a href="{{monorailLink(component.name, item.query)}}">
<span class="bubble" style="background-color: {{item.color}}">{{item.level}}</span>
<span class="summary">{{item.summary}}</span>
</a>
Expand Down Expand Up @@ -132,7 +132,7 @@
},

updateComponentIssues: function(component) {
registerSource('cz-issues', {component: component.name}, function(data) {
registerSource('cz-monorail-issues', {component: component.name}, function(data) {
var teamsIssueList = new IssueList();
var othersIssueList = new IssueList();
var unownedIssueList = new IssueList();
Expand All @@ -152,10 +152,10 @@
}.bind(this));
},

crbugLink: function(component, query) {
monorailLink: function(component, query) {
var componentQuery = clone(query || {});
componentQuery.component = component;
return CrBug.queryURL(componentQuery);
return Monorail.queryURL(componentQuery);
},
});
</script>
Expand Down
10 changes: 5 additions & 5 deletions client/cz-issue-priority-dash.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<link rel="import" href="../bower_components/paper-card/paper-card.html">
<link rel="import" href="../bower_components/paper-item/paper-item.html">
<link rel="import" href="../bower_components/paper-item/paper-item-body.html">
<script src="crbug-lib.js"></script>
<script src="monorail-lib.js"></script>
<script src="issues-lib.js"></script>

<dom-module id="cz-issue-priority-dash">
Expand Down Expand Up @@ -58,7 +58,7 @@
<div>{{user.user}}</div>
<div secondary class='priorities'>
<template is="dom-repeat" items="{{priorities(user.issues, updateSLO)}}">
<a href="{{crbugLink(user.email, item.query)}}">
<a href="{{monorailLink(user.email, item.query)}}">
<span class="bubble" style="background-color: {{item.color}}">{{item.level}}</span>
<span class="summary">{{item.summary}}</span>
</a>
Expand Down Expand Up @@ -107,16 +107,16 @@
return issues.summary(updateSLO);
},

crbugLink: function(email, query) {
monorailLink: function(email, query) {
var userQuery = clone(query);
userQuery.owner = email;
return CrBug.queryURL(userQuery);
return Monorail.queryURL(userQuery);
},

usersChanged: function(users) {
// TODO: this probably only works for all-or-nothing changes to users right now.
users.forEach(function(user, idx) {
registerSource('cz-issues', {owner: user.email}, function(data) {
registerSource('cz-monorail-issues', {owner: user.email}, function(data) {
var issueList = new IssueList();
for (var i = 0; i < data.length; i++) {
issueList.append(new Issue(data[i]));
Expand Down
2 changes: 1 addition & 1 deletion client/cz-milestones-dash.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
usersChanged: function(users) {
// TODO: this probably only works for all-or-nothing changes to users right now.
users.forEach(function(user, idx) {
registerSource('cz-issues', {owner: user.email}, function(data) {
registerSource('cz-monorail-issues', {owner: user.email}, function(data) {
for (var i = 0; i < data.length; i++) {
for (var j = 0; j < data[i].labels.length; j++) {
var label = data[i].labels[j];
Expand Down
7 changes: 3 additions & 4 deletions client/cz-issues.html → client/cz-monorail-issues.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<link rel="import" href="../bower_components/iron-ajax/iron-ajax.html">
<script src="../bower_components/papaparse/papaparse.min.js"></script>
<script src="chromez-behaviors.js"></script>
<script src="crbug-lib.js"></script>

<dom-module id="cz-issues">
<dom-module id="cz-monorail-issues">

<template>
<template is="dom-repeat" items="{{searchQueries}}">
Expand All @@ -21,7 +20,7 @@

<script>
Polymer({
is: "cz-issues",
is: "cz-monorail-issues",
behaviors: [ChromeZBehaviors.AJAXBehavior],

onResponse: function(data) {
Expand All @@ -34,7 +33,7 @@
registerQuery: function(query, callback) {
var params = {
site: 'issues',
q: CrBug.queryString(query),
q: Monorail.queryString(query),
};
this.addCallbackToQuery(query, callback, params);
}
Expand Down
10 changes: 5 additions & 5 deletions client/cz-regression-dash.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<link rel="import" href="../bower_components/paper-card/paper-card.html">
<link rel="import" href="../bower_components/paper-item/paper-item.html">
<link rel="import" href="../bower_components/paper-item/paper-item-body.html">
<script src="crbug-lib.js"></script>
<script src="monorail-lib.js"></script>

<dom-module id="cz-regression-dash">

Expand Down Expand Up @@ -45,7 +45,7 @@
overflow: visible;
}
</style>
<a href="{{crbugLink(components)}}" target="_blank">
<a href="{{monorailLink(components)}}" target="_blank">
<paper-card heading="Regression Bugs" id="card">
<div class="card-content">
<div class='card-flex'>
Expand Down Expand Up @@ -106,7 +106,7 @@
if (this.components.length == 0) {
return;
}
registerSource('cz-issues', {type: 'Bug-Regression', component: this.components}, function(issues) {
registerSource('cz-monorail-issues', {type: 'Bug-Regression', component: this.components}, function(issues) {
var regressionVersions = [];
for (var issue of issues) {
var version = null;
Expand All @@ -123,8 +123,8 @@
}.bind(this));
},

crbugLink: function(components) {
return CrBug.queryURL({type: 'Bug-Regression', component: components});
monorailLink: function(components) {
return Monorail.queryURL({type: 'Bug-Regression', component: components});
},

joinSpace: list => list.join(' '),
Expand Down
4 changes: 2 additions & 2 deletions client/crbug-lib.js → client/monorail-lib.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function() {

if (window.CrBug) {
if (window.Monorail) {
return;
}

Expand All @@ -12,7 +12,7 @@ function queryURL(query) {
return 'https://bugs.chromium.org/p/chromium/issues/list?can=2&q=' + encodeURIComponent(queryString(query));
}

window.CrBug = {
window.Monorail = {
queryString,
queryURL,
};
Expand Down