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 2022/02/19 03:00:33 UTC
[GitHub] [apisix-dashboard] kevinw66 opened a new issue #2329: 导入OpenAPI会切分多个URI路径
kevinw66 opened a new issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329
### Issue description
同一个路由若有多个路径信息,导出后再导入会生成多个路由
### Expected behavior
只生成一个路由
### How to Reproduce
导出前

导入后

### Screenshots
_No response_
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `etcd --version`):
- apisix-dashboard version, if have:
- Browser version, if have:
### 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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis edited a comment on issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
membphis edited a comment on issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329#issuecomment-1058137623
Is it related to the definition of OPENAPI? https://spec.openapis.org/oas/v3.1.0#path-item-object
I am not sure about this. @liuxiran and @nic-chen, need your help ^_^
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] juzhiyuan commented on issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329#issuecomment-1058007438
Hello @liuxiran @bzp2010 @membphis, please take a look at this issue 🤗
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] kevinw66 commented on issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329#issuecomment-1046395396
在导入后,对任何一个路由的修改都会报名字重复的错误。只能删掉多余的,只剩下一个的情况下修改
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] jwrookie commented on issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
jwrookie commented on issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329#issuecomment-1046418284
Import and export via `ID`, keeping the same state before export and after import, this problem will not occur
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] nic-chen commented on issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329#issuecomment-1058818217
hi @kevinw66
Thanks for your contribution!
We should merge based on `route.id`, not the name, because the name is not completely guaranteed to be unique.
So what needs to be done is, when exporting, need to export a custom field such as `x-apisix-route_id`, which we could merge routes according to it when importing.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] bzp2010 closed issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
bzp2010 closed issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] kevinw66 commented on issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
kevinw66 commented on issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329#issuecomment-1058909079
> hi @kevinw66
>
> Thanks for your contribution!
>
> We should merge based on `route.id`, not the name, because the name is not completely guaranteed to be unique. So what needs to be done is, when exporting, need to export a custom field such as `x-apisix-route_id`, which we could merge routes according to it when importing.
Ok, I will modify my pull request in the next few days.
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] membphis commented on issue #2329: 导入OpenAPI会切分多个URI路径
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2329:
URL: https://github.com/apache/apisix-dashboard/issues/2329#issuecomment-1058137623
Is it related to the definition of OPENAPI? https://spec.openapis.org/oas/v3.1.0#path-item-object
I am not sure about this. I think @liuxiran and @nic-chen should know it
--
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-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org