You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/02/26 04:27:31 UTC

[GitHub] [apisix] Firstsawyou commented on a change in pull request #3680: docs: plugin-develop.md add to view all plugin priorities

Firstsawyou commented on a change in pull request #3680:
URL: https://github.com/apache/apisix/pull/3680#discussion_r583375797



##########
File path: docs/en/latest/plugin-develop.md
##########
@@ -103,7 +103,7 @@ local _M = {
 }
 ```
 
-Note : The priority of the new plugin cannot be the same as the priority of any existing plugin. In addition, plugins with a high priority value will be executed first in a given phase (see the definition of `phase` in [choose-phase-to-run](#choose-phase-to-run)). For example, the priority of example-plugin is 0 and the priority of ip-restriction is 3000. Therefore, the ip-restriction plugin will be executed first, then the example-plugin plugin.
+Note : The priority of the new plugin cannot be the same as the priority of any existing plugin, you can view the priority of all plugins in the [t/debug/debug-mode.t](../../../t/debug/debug-mode.t) file. In addition, plugins with a high priority value will be executed first in a given phase (see the definition of `phase` in [choose-phase-to-run](#choose-phase-to-run)). For example, the priority of example-plugin is 0 and the priority of ip-restriction is 3000. Therefore, the ip-restriction plugin will be executed first, then the example-plugin plugin.

Review comment:
       I think that `Control API` has obtained the schema data of all plugins, and the content information is too much, and it is not intuitive to check the priority of all plugins.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org