Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: infra/tools/antibody/static/tbr_by_user.js

Issue 1235373004: Added script to generate stats on a git checkout (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@new_antibody_db_schema
Patch Set: Rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « infra/tools/antibody/static/tbr_by_user.css ('k') | infra/tools/antibody/templates/antibody_ui_all.jinja » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/tools/antibody/static/tbr_by_user.js
diff --git a/infra/tools/antibody/static/tbr_by_user.js b/infra/tools/antibody/static/tbr_by_user.js
index 82f1a24dd2b2fa16a769442eb92b3fed033b9c61..6e91adefd08e3bef86ecb38e0f026ac53e33fc5e 100644
--- a/infra/tools/antibody/static/tbr_by_user.js
+++ b/infra/tools/antibody/static/tbr_by_user.js
@@ -9,6 +9,8 @@ $(document).ready(function(){
function get_commits_tbred_to_user(user) {
$.getJSON("./tbr_by_user.json", function(data) {
+ console.log(data);
+ console.log('hello');
var commits_tbred_to_user = data["by_user"][user];
if (commits_tbred_to_user === undefined) {
$('.tbr').append($('<h3>').text(
@@ -20,18 +22,19 @@ $(document).ready(function(){
var table = $('<table>').attr('data-toggle', 'table').attr(
'data-cache', 'false');
table.append($('<thead>').append($('<tr>').append(
- $('<th>').attr('data-field', 'git_hash label').text('git_hash'),
+ $('<th>').attr('data-field', 'subject label').text('Git Commit Subject'),
$('<th>').attr('data-field', 'rietveld_url label').text(
- 'rietveld_url'),
+ 'Review URL'),
$('<th>').attr('data-field', 'request_timestamp').text(
- 'request_timestamp')
+ 'Request Timestamp')
)));
var tbody = $('<tbody>');
for (var i = 0; i < commits_tbred_to_user.length; i++) {
data_item = commits_tbred_to_user[i];
+ console.log(data_item);
tbody.append($('<tr>').addClass('data_item').append(
- $('<td>').addClass('git_hash hyperlink').append(
- $('<a>').attr('href', `${gitiles_prefix}${data_item[0]}`).text(
+ $('<td>').addClass('subject hyperlink').append(
+ $('<a>').attr('href', `${gitiles_prefix}${data_item[3]}`).text(
`${data_item[0]}`)),
$('<td>').addClass('rietveld_url hyperlink').append(
$('<a>').attr('href', `${data_item[1]}`).text(
« no previous file with comments | « infra/tools/antibody/static/tbr_by_user.css ('k') | infra/tools/antibody/templates/antibody_ui_all.jinja » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698