marchlhw opened a new issue, #2740:
URL: https://github.com/apache/apisix-dashboard/issues/2740
### Issue description
3.x后,插件的disable属性移植到_meta属性中,但我发现禁用全局插件后在插件配置中依然写入了`"disable":true`,而不是`{"_meta":{"disable":true}`
### Expected behavior
禁用全局插件时,应该写入`{"_meta":{"disable":true}`
### How to Reproduce
1. 全局插件开启状态

2. etcd中的数据
```
/apisix/global_rules/1
{"id":"1","create_time":1665476054,"update_time":1676292166,"plugins":{"prometheus":{"_meta":{"disable":false}}}}
```
3. 禁用全局插件
4. etcd中的数据
```
/apisix/global_rules/1
{"id":"1","create_time":1665476054,"update_time":1676292700,"plugins":{"prometheus":{"_meta":{"disable":false},"disable":true}}}
```
### Screenshots
_No response_
### Environment
- apisix version (cmd: `apisix version`):3.1
- OS (cmd: `uname -a`): centos
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `etcd --version`): 3.5.6
- apisix-dashboard version, if have: 3.0
- Browser version, if have: chorme latest
### Additional context
_No response_
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]