Apisix-dashboard: Support duplicate one existing Route

Created on 20 Feb 2021  路  7Comments  路  Source: apache/apisix-dashboard

Feature request

Please describe your feature

Support duplicate one existing Route

Describe the solution you'd like

  1. Add a Duplicate button on the Route List page;
  2. When clicking the Duplicate button, we should first fetch that route's data, then call Create a Route method to implement this feature.
frontend good first issue

Most helpful comment

I'll do this

All 7 comments

A useful feature that would help user quickly create a route based on the exist route 馃憦馃憦. Do we allow edit configuration item during the duplication? which means, after click the Duplicate button, we will go to the create route page, and fill in the configuration items with the target route data, if user wants to change some of the configuration, they could change them before create action.

A useful feature that would help user quickly create a route based on the exist route 馃憦馃憦. Do we allow edit configuration item during the duplication? which means, after click the Duplicate button, we will go to the create route page, and fill in the configuration items with the target route data, if user wants to change some of the configuration, they could change them before create action.

+1 agreed. The Duplicate button acts more like the Edit button, which provides the route editable for every configuration item. In addition, we should explicitly reset the name of the new route in case of name conflicts, how about add _duplicated as the suffix of the name of existing route?

@juzhiyuan @liuxiran any feedback is welcome. Thanks.

Ya, that would be better indeed, and we could separate this feature into 2 steps:

  1. Copy one existing Route's configuration directly.

  2. Allow users to modify then create a new one.

Good feature.Very looking forward to it.

In addition, we should explicitly reset the name of the new route in case of name conflicts, how about add _duplicated as the suffix of the name of existing route?

Agree with the suffix _duplicated.

Is it possible to just copy the data on the page, and the user can modify it before submitting it? Instead of directly cloning the route data first.

I'll do this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

totemofwolf picture totemofwolf  路  3Comments

qian0817 picture qian0817  路  4Comments

juzhiyuan picture juzhiyuan  路  4Comments

gxthrj picture gxthrj  路  6Comments

moonming picture moonming  路  6Comments