membphis commented on code in PR #12509: URL: https://github.com/apache/apisix/pull/12509#discussion_r2268577473
########## apisix/plugin.lua: ########## @@ -1234,6 +1236,26 @@ function _M.run_plugin(phase, plugins, api_ctx) return api_ctx, plugin_run end +function _M.set_plugins_meta_parent(plugins, parent) + if not plugins then + return + end + for _, plugin_conf in pairs(plugins) do + if not plugin_conf._meta then + plugin_conf._meta = {} + end + if not plugin_conf._meta.parent then + local mt_table = getmetatable(plugin_conf._meta) + if mt_table then + mt_table.parent = parent Review Comment: https://github.com/apache/apisix/pull/12426 this PR has beed merge so the parent should be a resource path, do you think? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org