-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(import routes): merge route when route have the same name #2330
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2330 +/- ##
==========================================
- Coverage 68.10% 65.08% -3.03%
==========================================
Files 127 188 +61
Lines 3374 7358 +3984
Branches 830 828 -2
==========================================
+ Hits 2298 4789 +2491
- Misses 1076 2279 +1203
- Partials 0 290 +290
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Hi, I'm not sure if it's appropriate to merge based on |
@bzp2010 When creating a new route, the name cannot be the same, or else it will throw an error. |
Could we use based on ID ? I think ID is better. |
Agree with ID |
If we merge based on id, the bug described in issue cannot be fixed, the route with same name and different path value already assigned different id |
I think both import and export should be done through |
@bzp2010 @zaunist @Baoyuantop What do you think? |
Hi @kevinw66, maybe we can discuss this with more people in the community mail list, here is the subscription method: https://apisix.apache.org/docs/general/community#get-help-from-mailing-list-recommended |
Agree. We need to discuss with others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kevinw66 hi
need some test cases for the change
FE test failed. @Baoyuantop @guoqqqi @bzp2010 please help when you have time, thanks. |
|
Is this id a fixed value? |
As the ID is not a fixed value, we need to do some processing. We need to remove the id field from the |
Of course, It's hard for me to change frontend code 😢 |
cc @oil-oil can you help to fix the E2E error? |
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
Please update this section with detailed description.
Related issues
fixes #2329
Checklist: