File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
store/plugins/store-tool-deployer/src/main/java/modelengine/jade/store/tool/deploy/service/support Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 275275 "pluginName" : " 插件名称" ,
276276 "pluginTips" : " 取消已部署的插件,会导致正在运行的应用不可用,请谨慎操作" ,
277277 "selected" : " 已选" ,
278- "selectedOptions" : " 最多可部署20个插件" ,
279278 "uploadOptions" : " 最多可上传3000个插件" ,
280279 "noSelectedPlugin" : " 未选择部署插件" ,
281280 "pluginTips2" : " 部署可能需要一定时长,请关注部署状态,部署成功后插件内的工具将可以被使用" ,
Original file line number Diff line number Diff 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' >
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments