Skip to content
Merged
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
1 change: 0 additions & 1 deletion frontend/src/locale/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@
"pluginName": "Name",
"details": "Details",
"selected": "Selected",
"selectedOptions": "A maximum of 20 plugins can be deployed",
"uploadOptions": "A maximum of 3000 plugins can be uploaded",
"tool": "Tool",
"toolDetails": "Tool Details",
Expand Down
1 change: 0 additions & 1 deletion frontend/src/locale/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@
"pluginName": "插件名称",
"pluginTips": "取消已部署的插件,会导致正在运行的应用不可用,请谨慎操作",
"selected": "已选",
"selectedOptions": "最多可部署20个插件",
"uploadOptions": "最多可上传3000个插件",
"noSelectedPlugin": "未选择部署插件",
"pluginTips2": "部署可能需要一定时长,请关注部署状态,部署成功后插件内的工具将可以被使用",
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/plugin/deployment/deploy-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ const Deploy = ({ pluginRef }) => {
<div className='table-title'>
<span>{t('selected')}</span>
<span className='num'>{pluginLength}</span>
<span className='tips'>{t('selectedOptions')}</span>
</div>
<div className='table-search'>
<div className='table-list'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ private void initDeployStatus() {

@Override
public void deployPlugins(List<String> toDeployPluginIds) {
if (toDeployPluginIds.size() > this.pluginDeployQueryConfig.getMaxToolSize()) {
throw new ModelEngineException(PluginRetCode.PLUGIN_DEPLOY_FAILED,
StringUtils.format("The number of plugin deployments exceeds the limit'. [number={0}]",
this.pluginDeployQueryConfig.getMaxToolSize()));
}
this.validatePluginIds(toDeployPluginIds);
List<PluginData> deployedPlugins = this.pluginService.getPlugins(DeployStatus.DEPLOYED);
List<String> deployedPluginIds = deployedPlugins.stream()
Expand Down