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

Added server bulk operations set-units, seta-rack-no, assign-hubs #27

Merged
merged 3 commits into from
Jul 23, 2018

Conversation

tafid
Copy link
Member

@tafid tafid commented Jul 17, 2018

No description provided.

Copy link
Member

@SilverFire SilverFire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не считая двух мелких комментов, отличный Pull Request

@@ -147,6 +151,106 @@ public function actions()
},
'success' => Yii::t('hipanel:stock', 'Server has been updated'),
],
'assign-hubs' => [
'class' => SmartUpdateAction::class,
'success' => Yii::t('hipanel:server', ''),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

/** @var \hipanel\actions\SearchAction $action */
$action = $event->sender;
$dataProvider = $action->getDataProvider();
$dataProvider->query->joinWith(['bindings'])->andWhere(['with_bindings' => 1])->select(['*']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Уже второй раз вижу в коде. Делай в ServerQuery метод `withBinginds()``

@hiqsol hiqsol merged commit 74888df into hiqdev:master Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants