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

Bugs are keyed by a hash on the server #73

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions _attachments/partials/bug-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ <h3>Bug Summary</h3>
<table>
<tr>
<th>Application version code:</th>
<td>{{bug.key[0]}}</td>
<td>{{bug.value.appVersion}}</td>
</tr>
<tr>
<th>Exception:</th>
<td>{{bug.key[1]}}</td>
<td>{{bug.value.exception}}</td>
</tr>
<tr>
<th>Root Exception:</th>
<td>{{bug.key[2]}}</td>
<td>{{bug.value.rootCause}}</td>
</tr>
<tr>
<th>Solved:</th>
Expand Down
12 changes: 6 additions & 6 deletions _attachments/partials/bugs-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
</span>
</div>
<div class="div-table-cell">
<i class="icon-gift" ng-click="$parent.orderField = 'key[0]'"></i>
<i class="icon-gift" ng-click="$parent.orderField = 'value.appVersion'"></i>
<span ng-click="$parent.orderDescending = !$parent.orderDescending">
<i class="icon-chevron-down" ng-show="$parent.orderField === 'key[0]' && $parent.orderDescending"ng-click=""></i>
<i class="icon-chevron-up" ng-show="$parent.orderField === 'key[0]' && !$parent.orderDescending"></i>
<i class="icon-chevron-down" ng-show="$parent.orderField === 'value.appVersion' && $parent.orderDescending"ng-click=""></i>
<i class="icon-chevron-up" ng-show="$parent.orderField === 'value.appVersion' && !$parent.orderDescending"></i>
</span>
</div>
<div class="div-table-cell exceptions"><i class="icon-fire"></i></div>
Expand All @@ -40,10 +40,10 @@
</div>
<div title="Number of reports" class="div-table-cell label">{{bug.value.count}}</div>
<div title="Latest report" class="div-table-cell label label-info">{{bug.latest}}</div>
<div title="Application version code" class="div-table-cell label label-warning">{{bug.key[0]}}</div>
<div title="Application version code" class="div-table-cell label label-warning">{{bug.value.appVersion}}</div>
<div class="div-table-cell exceptions">
<span title="Exception" class="label label-important">{{bug.key[1]}}</span><br/>
<span title="Root exception" class="label label-inverse" ng-show="bug.key[2]">Caused by: {{bug.key[2]}}</span>
<span title="Exception" class="label label-important">{{bug.value.exception}}</span><br/>
<span title="Root exception" class="label label-inverse" ng-show="bug.value.rootCause">Caused by: {{bug.value.rootCause}}</span>
</div>
</div>
</div>
12 changes: 6 additions & 6 deletions _attachments/partials/reports-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
<i class="icon-trash" title="Delete permanently"></i>
</a>
</div>
<span title="User" class="div-table-cell label label-inverse"><img class="avatar" monsterid="{{report.value.installation_id}}" ng-show="report.value.installation_id"/></span>
<span title="User" class="div-table-cell label label-inverse"><img class="avatar" monsterid="{{report.doc.INSTALLATION_ID}}" ng-show="report.doc.INSTALLATION_ID"/></span>
<span title="Crash date" class="div-table-cell label label-info">{{report.displayDate}}</span>
<span title="Application version name" class="div-table-cell label label-warning">{{report.value.application_version_name}}</span>
<span title="Android verion" class="div-table-cell label label-success">{{report.value.android_version}}</span>
<span title="Device" class="div-table-cell label">{{report.value.device}}</span>
<span title="Application version name" class="div-table-cell label label-warning">{{report.doc.APP_VERSION_NAME}}</span>
<span title="Android verion" class="div-table-cell label label-success">{{report.doc.ANDROID_VERSION}}</span>
<span title="Device" class="div-table-cell label">{{getDevice(report.doc)}}</span>
<div class="div-table-cell exceptions">
<span title="Exception" class="label label-important">{{report.value.signature.digest}}</span>
<span title="Root exception" class="label label-inverse" ng-show="report.value.signature.rootCause">Caused by: {{report.value.signature.rootCause}}</span>
<span title="Exception" class="label label-important">{{report.doc.SIGNATURE.full}}</span>
<span title="Root exception" class="label label-inverse" ng-show="report.doc.SIGNATURE.rootCause">Caused by: {{report.doc.SIGNATURE.rootCause}}</span>
</div>
</div>
</div>
36 changes: 30 additions & 6 deletions _attachments/script/DashboardControllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,29 @@
});
};

$scope.getDevice = function(doc) {
if(doc.BUILD) {
if(doc.BUILD.MANUFACTURER) {
return doc.BUILD.MANUFACTURER + " " + doc.BUILD.BRAND + " " + doc.BUILD.MODEL;
} else {
return doc.BUILD.BRAND + " " + doc.BUILD.MODEL;
}
} else {
var value = "";
if(doc.BRAND) {
value = doc.BRAND;
}
if(doc.PRODUCT) {
value += " " + doc.PRODUCT;
}
if(doc.PHONE_MODEL) {
value += " " + doc.MODEL;
}

return value;
}
};

$scope.loadReport = function(report) {
$scope.selectedReport = ReportsStore.reportDetails(report.id, function(data) {
data.readableUptime = moment.duration(data.uptime, 'seconds').humanize();
Expand Down Expand Up @@ -121,7 +144,8 @@
};

$scope.getData = function() {
ReportsStore.bugsList(function(data) {
ReportsStore.recentBugsList(
function(data) {
console.log("Refresh data for latest bugs");
mergeBugsLists($scope.bugs, data.rows);
$scope.totalBugs = data.total_rows;
Expand Down Expand Up @@ -373,11 +397,11 @@
/* Pie charts */
function PieChartsCtrl($scope, ReportsStore, $user) {
$scope.fieldNames = [
{name: "android-version", label: "Android version"},
{name: "android-sdk-version", label: "Android SDK version"},
{name: "app-version-name", label: "Application version name"},
{name: "app-version-code", label: "Application version code"},
{name: "device", label: "Device"}
{name: "recent-items-by-androidver", label: "Android version"},
{name: "reports-per-android-sdk-version", label: "Android SDK version"},
{name: "recent-items-by-appver", label: "Application version name"},
{name: "recent-items-by-appvercode", label: "Application version code"},
{name: "reports-per-device", label: "Device"}
];
$scope.fieldName = $scope.fieldNames[0];

Expand Down
35 changes: 29 additions & 6 deletions _attachments/script/ReportsBrowserControllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,29 @@
}
});

$scope.getDevice = function(doc) {
if(doc.BUILD) {
if(doc.BUILD.MANUFACTURER) {
return doc.BUILD.MANUFACTURER + " " + doc.BUILD.BRAND + " " + doc.BUILD.MODEL;
} else {
return doc.BUILD.BRAND + " " + doc.BUILD.MODEL;
}
} else {
var value = "";
if(doc.BRAND) {
value = doc.BRAND;
}
if(doc.PRODUCT) {
value += " " + doc.PRODUCT;
}
if(doc.PHONE_MODEL) {
value += " " + doc.MODEL;
}

return value;
}
};

$scope.getData = function() {
$scope.loading = true;
var successHandler = function(data) {
Expand All @@ -118,22 +141,22 @@
};

if(($scope.filterName === $scope.noFilter || $scope.filterValue === $scope.noFilterValue) && !$scope.bug && !$scope.selectedUser) {
ReportsStore.reportsList($scope.startKey, $scope.paginator.pageSize, $scope.fullSearch, successHandler, errorHandler);
ReportsStore.reportsList($scope.startKey, $scope.paginator.pageSize, true, successHandler, errorHandler);
} else if($scope.filterName !== $scope.noFilter && $scope.filterValue !== $scope.noFilterValue){
ReportsStore.filteredReportsList($scope.filterName.value, $scope.filterValue.value,$scope.startKey, $scope.paginator.pageSize, $scope.fullSearch, successHandler, errorHandler);
ReportsStore.filteredReportsList($scope.filterName.value, $scope.filterValue.value,$scope.startKey, $scope.paginator.pageSize, true, successHandler, errorHandler);
} else if($scope.bug) {
if($scope.selectedUser) {
// Filter by bug AND user
var filterKey = $scope.bug.key.slice(0);
var filterKey = [$scope.bug.key];
filterKey.push($scope.selectedUser.installationId);
ReportsStore.filteredReportsList("bug-by-installation-id", filterKey, $scope.startKey, $scope.paginator.pageSize, $scope.fullSearch, successHandler, errorHandler);
ReportsStore.filteredReportsList("bug-by-installation-id", filterKey, $scope.startKey, $scope.paginator.pageSize, true, successHandler, errorHandler);
} else {
// Filter by bug only
ReportsStore.filteredReportsList("bug", $scope.bug.key, $scope.startKey, $scope.paginator.pageSize, $scope.fullSearch, successHandler, errorHandler);
ReportsStore.filteredReportsList("bug-by-installation-id", $scope.bug.key, $scope.startKey, $scope.paginator.pageSize, true, successHandler, errorHandler, 1);
}
} else if($scope.selectedUser) {
// Filter by user only
ReportsStore.filteredReportsList("installation-id", $scope.selectedUser.installationId, $scope.startKey, $scope.paginator.pageSize, $scope.fullSearch, successHandler, errorHandler);
ReportsStore.filteredReportsList("installation-id", $scope.selectedUser.installationId, $scope.startKey, $scope.paginator.pageSize, true, successHandler, errorHandler);
}
};

Expand Down
2 changes: 1 addition & 1 deletion _attachments/script/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function(acralyzerConfig, undefined ) {
"use strict";
// Update this variable with the name of your app:
acralyzerConfig.defaultApp = "";
acralyzerConfig.defaultApp = "test";
acralyzerConfig.backgroundPollingOnStartup = true;

acralyzerConfig.appDBPrefix = "acra-";
Expand Down
Loading