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

fix plugins display in list of routes #2704

Merged
merged 2 commits into from
Feb 4, 2023

Conversation

incubator4
Copy link
Contributor

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?

  1. Add attribute plugins to ResponseBody
  2. Add width attribute to columns of labels and plugins (Due to without width, these columns might not display as expected)
  3. Add new render function for plugins columns.

Related issues

fix/resolve #2665

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

Why not test cases and corresponding document? Cause of it just was a bug fix.

@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2023

Codecov Report

Merging #2704 (70c5100) into master (5ccb55b) will increase coverage by 2.15%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2704      +/-   ##
==========================================
+ Coverage   74.27%   76.42%   +2.15%     
==========================================
  Files         201      139      -62     
  Lines        7833     3759    -4074     
  Branches      874      877       +3     
==========================================
- Hits         5818     2873    -2945     
+ Misses       1712      886     -826     
+ Partials      303        0     -303     
Flag Coverage Δ
backend-e2e-test-ginkgo ?
backend-unit-test ?
frontend-e2e-test 76.42% <100.00%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
web/src/pages/Route/List.tsx 75.43% <100.00%> (+0.73%) ⬆️
api/internal/log/zap.go
api/internal/filter/logging.go
api/internal/filter/schema.go
api/internal/utils/version.go
api/internal/utils/consts/api_error.go
api/internal/handler/schema/plugin.go
api/internal/handler/handler.go
.../internal/handler/authentication/authentication.go
api/internal/handler/proto/proto.go
... and 53 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@SkyeYoung
Copy link
Member

Hi, could you add some comparison pictures to facilitate community members' review PR? (Because we don't have an online preview yet 😢)

@incubator4
Copy link
Contributor Author

Hi, could you add some comparison pictures to facilitate community members' review PR? (Because we don't have an online preview yet 😢)

My apologize for not replying soon. This following might show difference between fix bugs and before.

Tags

cause of tags don't have attribute width, it might not be displayed correctly when the screen width is too short

Before

image

After

image

Tags

due to plugins have neither width nor override render function.

Before

image

After

image

Copy link
Contributor

@Baoyuantop Baoyuantop left a comment

Choose a reason for hiding this comment

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

Code LGTM, please make CI pass

delete useless space.

Co-authored-by: litesun <sunyi@apache.org>
@juzhiyuan juzhiyuan merged commit 4d26409 into apache:master Feb 4, 2023
Baoyuantop pushed a commit to Baoyuantop/apisix-dashboard that referenced this pull request Mar 22, 2023
Co-authored-by: litesun <sunyi@apache.org>
Baoyuantop added a commit that referenced this pull request Mar 23, 2023
* chore: update the year in the  NOTICE (#2726)

fix: #2724

* fix plugins display in list of routes (#2704)

Co-authored-by: litesun <sunyi@apache.org>

* fix: plugin config page error (#2739)

* fix: plugin disable invalid in API /plugin?all=true (#2737)

* chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 in /web (#2730)

* fix: update URL of the online playground (#2760)

* chore: update dependency (#2752)

* chore: update dependency

---------

Co-authored-by: rongxin <alinsran@apache.org>

* fix: remove route name length limit (#2759)

* fix: change regex template to optional in proxy write (#2762)

* fix: ssl table expiration time display (#2763)

* feat: add search functionality for id, host, and description fields (#2750)

Co-authored-by: Anil Durmus <anil.durmus@trendyol.com>

* fix: disable global plugin invalid (#2757)

* feat: support ipv6 in upstream nodes (#2766)

* fix: upstream nodes metadata miss (#2773)

* fix: remove ssl check in redirect https (#2770)

---------

Co-authored-by: Shivam0500 <121167056+Shivam0500@users.noreply.github.com>
Co-authored-by: incubator4 <aries0robin@gmail.com>
Co-authored-by: litesun <sunyi@apache.org>
Co-authored-by: Joanthan Chen <mscb402@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JunXu Chen <chenjunxu6@gmail.com>
Co-authored-by: Xin Rong <alinsran333@gmail.com>
Co-authored-by: rongxin <alinsran@apache.org>
Co-authored-by: Anil Baki Durmus <anldrms34@gmail.com>
Co-authored-by: Anil Durmus <anil.durmus@trendyol.com>
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.

Plugins not shown on and not aligned in list of routes
6 participants