Skip to content

Commit e5e44e9

Browse files
[plugin] Deploying file retrieval can be configured (#420)
1 parent 38cd87f commit e5e44e9

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

frontend/src/locale/en_US.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@
186186
"pluginName": "Name",
187187
"details": "Details",
188188
"selected": "Selected",
189-
"selectedOptions": "A maximum of 20 plugins can be deployed",
190189
"uploadOptions": "A maximum of 3000 plugins can be uploaded",
191190
"tool": "Tool",
192191
"toolDetails": "Tool Details",

frontend/src/locale/zh_CN.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@
275275
"pluginName": "插件名称",
276276
"pluginTips": "取消已部署的插件,会导致正在运行的应用不可用,请谨慎操作",
277277
"selected": "已选",
278-
"selectedOptions": "最多可部署20个插件",
279278
"uploadOptions": "最多可上传3000个插件",
280279
"noSelectedPlugin": "未选择部署插件",
281280
"pluginTips2": "部署可能需要一定时长,请关注部署状态,部署成功后插件内的工具将可以被使用",

frontend/src/pages/plugin/deployment/deploy-table.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ const Deploy = ({ pluginRef }) => {
167167
<div className='table-title'>
168168
<span>{t('selected')}</span>
169169
<span className='num'>{pluginLength}</span>
170-
<span className='tips'>{t('selectedOptions')}</span>
171170
</div>
172171
<div className='table-search'>
173172
<div className='table-list'>

store/plugins/store-tool-deployer/src/main/java/modelengine/jade/store/tool/deploy/service/support/DefaultPluginDeployService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ private void initDeployStatus() {
122122

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

0 commit comments

Comments
 (0)