Apisix-dashboard: plugin "proxy-rewrite" found in plugin-config detail page and not found in route detail page

Created on 8 Apr 2021  Â·  8Comments  Â·  Source: apache/apisix-dashboard

Issue description

plugin "proxy-rewrite" found in plugin-config detail page and not found in route detail page

Expected behavior

plugin "proxy-rewrite" both found or not found in plugin-config detail page and route detail page

How to Reproduce

When creating the route, the "proxy-rewrite" plugin was not found ï¼›

When creating the plugin-config, the "proxy-rewrite" plugin was found ï¼›

Screenshots


image

Environment

image

Additional context

bug frontend good first issue

Most helpful comment

As we have removed the proxy-rewrite plugin out of step3 of /routes/create page, it should not be found in this page, after checking the latest code, the current implementation matched the expectation.

I have a problem. I can search the rewrite plugin on the route view page,But I don't know it is a bug or a feature。

while checking this issue, I found that in the step2 of /plugin-template/create page, proxy-rewrite can still be found, that is not as expected, #1723 will fix this. So can this solve your problem @Abbila ?

plugin "proxy-rewrite" both found or not found in plugin-config detail page and route detail page

plugin-config detail page means /plugin/market right @xiaotaibai2008 ? If so, IMHO proxy-rewrite can be found is as expected, because in this page, plugin is configured for the global, not only for the route, so just keep it in.

All 8 comments

"Request Override" is the proxy-rewrite plugin #1576

yes, this plugin is out of box.

yes, this plugin is out of box.
I have a problem. I can search the rewrite plugin on the route view page,But I don't know it is a bug or a feature。

Route View? Could you please take a screenshot?

As we have removed the proxy-rewrite plugin out of step3 of /routes/create page, it should not be found in this page, after checking the latest code, the current implementation matched the expectation.

I have a problem. I can search the rewrite plugin on the route view page,But I don't know it is a bug or a feature。

while checking this issue, I found that in the step2 of /plugin-template/create page, proxy-rewrite can still be found, that is not as expected, #1723 will fix this. So can this solve your problem @Abbila ?

plugin "proxy-rewrite" both found or not found in plugin-config detail page and route detail page

plugin-config detail page means /plugin/market right @xiaotaibai2008 ? If so, IMHO proxy-rewrite can be found is as expected, because in this page, plugin is configured for the global, not only for the route, so just keep it in.

@liuxiran @juzhiyuan When editing the route, proxy-rewrite can be found on the preview page of the route, which is the fourth step。
image

@liuxiran @juzhiyuan When editing the route, proxy-rewrite can be found on the preview page of the route, which is the fourth step。

good catch @Abbila ~ there is a missing modification in https://github.com/apache/apisix-dashboard/blob/166137ea9fa42694f09beca3c5c19335b20abc6f/web/src/pages/Route/components/CreateStep4/CreateStep4.tsx#L62

@liuxiran Already resolved in #1721 ,

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stu01509 picture stu01509  Â·  3Comments

membphis picture membphis  Â·  6Comments

juzhiyuan picture juzhiyuan  Â·  3Comments

juzhiyuan picture juzhiyuan  Â·  4Comments

bisakhmondal picture bisakhmondal  Â·  5Comments