apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

When route choose to use plugin_configs, the export/import has a bug

Open kevinw66 opened this issue 2 years ago • 2 comments

Issue description

When I add plugin_configs and add it in route, before export the route, the route data is like below image

And after I import the route, I got this data image

BTW, I didn't use request-validation plugin in plugin_configs

kevinw66 avatar Apr 08 '22 09:04 kevinw66

And I saw few methods was deleted after import

kevinw66 avatar Apr 08 '22 09:04 kevinw66

Suggestion: Can we simply export data in etcd instead of openapi? Because currently if our route bind with service or upstream, after we export/import the route, the service or upstream config will be removed and set in route directly. When we sync config from different environment, this is not we wanted, we also want sync the service and upstream config. But through openapi, it's complicated. And this can be easily done with export json data in etcd.

kevinw66 avatar Apr 08 '22 14:04 kevinw66