Skip to content

Commit 06a7ddc

Browse files
authored
feat(plugins): allow creating dup plugins [khcp-10683] (#1153)
Remove the logic that prevents users from adding duplicate plugins of the same type to the same entity. We need to support creating multiple plugins of the same type for `consumers`/`consumer_groups` to allow scoping to multiple entities simultaneously (ie. I can create a plugin scoped to a specific `consumer_group`/`route` and have a different configuration for the same plugin when it's scoped to a specific `consumer_group`/`gateway-service` correctly). Addresses [KHCP-10683](https://konghq.atlassian.net/browse/KHCP-10683).
1 parent 6d68be9 commit 06a7ddc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/entities/entities-plugins/src/components/PluginSelect.vue

-8
Original file line numberDiff line numberDiff line change
@@ -344,14 +344,6 @@ const buildPluginList = (): PluginCardList => {
344344
plugin.disabledMessage = props.disabledPlugins[pluginId]
345345
}
346346
347-
if (existingEntityPlugins.value.includes(pluginId)) {
348-
plugin.exists = true
349-
350-
if (!plugin.disabledMessage) {
351-
plugin.disabledMessage = t('plugins.select.already_exists')
352-
}
353-
}
354-
355347
const groupName = plugin.group || t('plugins.select.misc_plugins')
356348
let plugins = list[groupName]
357349

0 commit comments

Comments
 (0)