Permalink
Browse files

Fixes #27: Adjusted sorting defaults, removed row numbers from databa…

…se, log and profiling panels
  • Loading branch information...
1 parent f29808f commit 5d5738226a2c326336bcae3c4ce7593be7b47519 @samdark samdark committed Nov 23, 2016
View
@@ -25,6 +25,7 @@ Yii Framework 2 debug extension Change Log
- Enh #162: Added ability to config the trace file and line number (thiagotalma)
- Bug #152: Fixed log search to work with non-scalar values (samdark)
- Enh #8: Added ability to configure default sorting and filtering for Database panel (laszlovl)
+- Enh #27: Adjusted sorting defaults, removed row numbers from database, log and profiling panels (samdark)
2.0.6 March 17, 2016
--------------------
@@ -69,6 +69,9 @@ public function search($params, $models)
'pagination' => false,
'sort' => [
'attributes' => ['time', 'level', 'category', 'message'],
+ 'defaultOrder' => [
+ 'time' => SORT_ASC,
+ ],
],
]);
@@ -65,7 +65,7 @@ public function search($params, $models)
'sort' => [
'attributes' => ['category', 'seq', 'duration', 'info'],
'defaultOrder' => [
- 'seq' => SORT_ASC,
+ 'duration' => SORT_DESC,
],
],
]);
View
@@ -41,7 +41,7 @@ class DbPanel extends Panel
* @since 2.0.7
*/
public $defaultOrder = [
- 'duration' => SORT_DESC
+ 'seq' => SORT_ASC
];
/**
@@ -16,7 +16,6 @@
'filterModel' => $searchModel,
'filterUrl' => $panel->getUrl(),
'columns' => [
- ['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'seq',
'label' => 'Time',
@@ -27,7 +27,6 @@
}
},
'columns' => [
- ['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'time',
'value' => function ($data) {
@@ -25,7 +25,6 @@
'filterModel' => $searchModel,
'filterUrl' => $panel->getUrl(),
'columns' => [
- ['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'seq',
'label' => 'Time',

1 comment on commit 5d57382

@cebe
Member
cebe commented on 5d57382 Nov 25, 2016

👍

Please sign in to comment.