Skip to content

Commit

Permalink
release version 2.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Sep 4, 2017
1 parent c27f8b4 commit ad1d178
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 26 deletions.
27 changes: 14 additions & 13 deletions CHANGELOG.md
@@ -1,28 +1,29 @@
Yii Framework 2 debug extension Change Log
==========================================

2.0.10 under development
------------------------
2.0.10 September 04, 2017
-------------------------

- Bug #251: User panel was displaying current user info instead of user info at the moment of request (samdark)
- Enh #188: Added `RequestPanel::$displayVars` that lists allowed variables in request panel (samdark)
- Bug #257: Fixed user panel to properly display object attributes (samdark)
- Bug #242: Fixed silent crash by omitting AssetsPanel creation when yii/web/AssetManager not being used like in REST apps (tunecino)
- Enh #208: All identity models get converted to arrays when saving User panel data now, not just ActiveRecord models (brandonkelly)
- Enh #208: Identity model packaging for User panels is now done in an `identityData()` method, making it easier for subclasses to customize (brandonkelly)
- Enh #218: Hide the debug toolbar when an HTML page is printed (githubjeka)
- Bug #221: Fixed the decimal point issue in Timeline when using various locales (bashkarev)
- Bug #223: Limit the height during the opening animation (nkovacs)
- Enh #225: Added classes to use bootstrap styles for filter inputs in Timeline panel (johonunu)
- Bug #226: Fixed issue in user panel when you use custom RBAC module that does not implement `\yii\rbac\ManagerInterface` (pana1990)
- Enh #204: Switch users from the panel (sam002)
- Bug #236: Fixed rendering AJAX errors to use `innerText` instead of `innerHTML` (samdark)
- Bug #239: Fixed an issue in the user panel when using console application with debug module enabled (pana1990)
- Bug #241: Fixed double query to the user table (LAV45)
- Bug #242: Fixed silent crash by omitting AssetsPanel creation when yii/web/AssetManager not being used like in REST apps (tunecino)
- Bug #244: Fixed copying SQL via triple-click in Firefox (arzzen)
- Bug #239: Fixed an issue in the user panel when using console application with debug module enabled (pana1990)
- Bug #249: Fixed toolbar not displayed because of misconfigured authManager (samdark)
- Enh #256: Catch fetch AJAX requests (leopold537)
- Bug #251: User panel was displaying current user info instead of user info at the moment of request (samdark)
- Bug #252, #234, #220, #242: Reworked error handling to be error-resistent and display errors in the panel itself (bashkarev)
- Bug #257: Fixed user panel to properly display object attributes (samdark)
- Enh #188: Added `RequestPanel::$displayVars` that lists allowed variables in request panel (samdark)
- Enh #204: Switch users from the panel (sam002)
- Enh #208: All identity models get converted to arrays when saving User panel data now, not just ActiveRecord models (brandonkelly)
- Enh #208: Identity model packaging for User panels is now done in an `identityData()` method, making it easier for subclasses to customize (brandonkelly)
- Enh #218: Hide the debug toolbar when an HTML page is printed (githubjeka)
- Enh #225: Added classes to use bootstrap styles for filter inputs in Timeline panel (johonunu)
- Enh #256: Catch fetch AJAX requests (leopold537)


2.0.9 February 21, 2017
-----------------------
Expand Down
3 changes: 2 additions & 1 deletion FlattenException.php
Expand Up @@ -18,7 +18,6 @@
*/
class FlattenException
{

/**
* @var string
*/
Expand All @@ -35,6 +34,7 @@ class FlattenException
* @var int
*/
protected $line;

/**
* @var FlattenException|null
*/
Expand All @@ -52,6 +52,7 @@ class FlattenException
*/
private $_class;


/**
* FlattenException constructor.
* @param \Exception $exception
Expand Down
2 changes: 2 additions & 0 deletions Panel.php
Expand Up @@ -49,12 +49,14 @@ class Panel extends Component
* See [[\yii\base\Controller::actions()]] for the format.
*/
public $actions = [];

/**
* @var FlattenException|null Error while saving the panel
* @since 2.0.10
*/
protected $error;


/**
* @return string name of the panel
*/
Expand Down
16 changes: 8 additions & 8 deletions models/UserSwitch.php
@@ -1,9 +1,9 @@
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/

namespace yii\debug\models;

Expand All @@ -15,18 +15,18 @@
/**
* UserSwitch is a model used to temporary logging in another user
*
* @author Semen Dubina <yii2debug@sam002.net>
* @property User $mainUser This property is read-only.
* @property null|User $user This property is read-only.
*
* @property User $user
* @property User $mainUser
* @author Semen Dubina <yii2debug@sam002.net>
* @since 2.0.10
*/
class UserSwitch extends Model
{
/**
* @var User user which we are currently switched to
*/
private $_user;

/**
* @var User the main user who was originally logged in before switching.
*/
Expand Down
1 change: 1 addition & 0 deletions models/search/User.php
Expand Up @@ -24,6 +24,7 @@ class User extends Model
*/
public $identityImplement = null;


/**
* @inheritdoc
*/
Expand Down
1 change: 1 addition & 0 deletions panels/RequestPanel.php
Expand Up @@ -26,6 +26,7 @@ class RequestPanel extends Panel
*/
public $displayVars = ['_SERVER', '_GET', '_POST', '_COOKIE', '_FILES', '_SESSION'];


/**
* @inheritdoc
*/
Expand Down
8 changes: 4 additions & 4 deletions panels/UserPanel.php
Expand Up @@ -26,12 +26,14 @@
/**
* Debugger panel that collects and displays user data.
*
* @property DataProviderInterface $userDataProvider This property is read-only.
* @property Model|UserSearchInterface $usersFilterModel This property is read-only.
*
* @author Daniel Gomez Pan <pana_1990@hotmail.com>
* @since 2.0.8
*/
class UserPanel extends Panel
{

/**
* @var array the rule which defines who allowed to switch user identity.
* Access Control Filter single rule. Ignore: actions, controllers, verbs.
Expand All @@ -44,26 +46,24 @@ class UserPanel extends Panel
public $ruleUserSwitch = [
'allow' => false,
];

/**
* @var UserSwitch object of switching users
* @since 2.0.10
*/
public $userSwitch;

/**
* @var Model|UserSearchInterface Implements of User model with search method.
* @since 2.0.10
*/
public $filterModel;

/**
* @var array allowed columns for GridView.
* @see http://www.yiiframework.com/doc-2.0/yii-grid-gridview.html#$columns-detail
* @since 2.0.10
*/
public $filterColumns = [];


/**
* @inheritdoc
*/
Expand Down

0 comments on commit ad1d178

Please sign in to comment.