Skip to content
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

feat: added types for Plugins #1736

Merged
merged 17 commits into from
Apr 15, 2021
Merged

Conversation

juzhiyuan
Copy link
Member

@juzhiyuan juzhiyuan commented Apr 10, 2021

Please answer these questions before submitting a pull request, or your PR will get closed.

Why submit this pull request?

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches

What changes will this PR take into?

Checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

image

image

1 similar comment
@juzhiyuan

This comment has been minimized.

@juzhiyuan
Copy link
Member Author

@moonming Do the translations make sense? the text is a little short from screenshot

@moonming
Copy link
Member

Why are there server info and echo plugins? And it should display all the plug-ins on one page, not just click on the category to display

@moonming
Copy link
Member

And the icons are ...

@juzhiyuan
Copy link
Member Author

Will handle the icons, do there have other questions about Plug-in Type? It's according to docs category. 🤔 I think the name should get updated IMO.

@moonming
Copy link
Member

moonming commented Apr 10, 2021 via email

@netlify
Copy link

netlify bot commented Apr 12, 2021

Deploy preview for apisix-dashboard ready!

Built with commit 6828ec7

https://deploy-preview-1736--apisix-dashboard.netlify.app

@juzhiyuan
Copy link
Member Author

This PR will support disable & enable status on the Plugin Market: #1610

@juzhiyuan
Copy link
Member Author

I just created an issue to track Icon for Plugins: #1760

@membphis
Copy link
Member

ci failed

web/src/components/Plugin/data.tsx Show resolved Hide resolved
type: PluginType.serverless
},
"dubbo-proxy": {
type: PluginType.other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hide this too, it needs special openresty

Copy link
Member Author

@juzhiyuan juzhiyuan Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://apisix.apache.org/docs/apisix/plugins/dubbo-proxy/

I just rechecked docs, it seems that this Plugin could be configured from UI (Raw Editor I mean), do we really need to hide it?

cc @membphis @moonming

@codecov-io
Copy link

Codecov Report

Merging #1736 (db1247a) into master (10cadaa) will increase coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1736      +/-   ##
==========================================
+ Coverage   72.92%   73.11%   +0.19%     
==========================================
  Files         119      119              
  Lines        2825     2831       +6     
  Branches      678      681       +3     
==========================================
+ Hits         2060     2070      +10     
+ Misses        765      761       -4     
Flag Coverage Δ
frontend-e2e-test 73.11% <100.00%> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
web/src/components/Plugin/PluginPage.tsx 98.66% <100.00%> (-0.02%) ⬇️
web/src/components/Plugin/data.tsx 100.00% <100.00%> (ø)
web/src/components/Plugin/service.ts 95.23% <100.00%> (+1.90%) ⬆️
web/src/components/Plugin/PluginDetail.tsx 64.33% <0.00%> (-0.70%) ⬇️
web/src/helpers.tsx 72.13% <0.00%> (+3.27%) ⬆️
web/src/components/Plugin/UI/plugin.tsx 91.30% <0.00%> (+8.69%) ⬆️
web/src/components/Plugin/UI/basic-auth.tsx 100.00% <0.00%> (+33.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10cadaa...db1247a. Read the comment docs.

web/src/components/Plugin/data.tsx Outdated Show resolved Hide resolved
web/src/components/Plugin/data.tsx Outdated Show resolved Hide resolved
web/src/components/Plugin/data.tsx Outdated Show resolved Hide resolved
@juzhiyuan juzhiyuan requested a review from membphis April 15, 2021 05:17
@juzhiyuan
Copy link
Member Author

juzhiyuan commented Apr 15, 2021

As for this issue (plugins in one page), I created an issue here: #1776

Icon: #1760

Not urgent, but both are needed.

@juzhiyuan juzhiyuan changed the title chore: added types for Plugin feat: added types for Plugin Apr 15, 2021
@juzhiyuan juzhiyuan changed the title feat: added types for Plugin feat: added types for Plugins Apr 15, 2021
authentication = "authentication",
security = "security",
traffic = "traffic",
serverless = "serverless",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

web/src/components/Plugin/data.tsx Outdated Show resolved Hide resolved
web/src/components/Plugin/locales/en-US.ts Outdated Show resolved Hide resolved
web/src/components/Plugin/locales/zh-CN.ts Outdated Show resolved Hide resolved
'component.plugin.traffic': 'Traffic Control',
'component.plugin.serverless': 'Serverless',
'component.plugin.observability': 'Tracing & Metrics & Logging',
'component.plugin.logging': 'Logging',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need logging? or assign them to observability too?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vote for observability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants