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: correct data type of filed Active.checks.active.https_verify_certificate #2422

Merged
merged 3 commits into from
May 7, 2022

Conversation

tylitianrui
Copy link
Contributor

@tylitianrui tylitianrui commented Apr 11, 2022

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?
i set active health check with https , and filed Active.checks.active.https_verify_certificate in request body was true ( bool ). it return error (json: cannot unmarshal bool into Go struct field Active.checks.active.https_verify_certificate of type string). it is filed Active.checks.active.https_verify_certificate in golang that is a string ,different to filed Active.checks.active.https_verify_certificate in request. it is , alse , different with the one schema defined in apisix.

Please update this section with detailed description.

Related issues

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

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2022

Codecov Report

Merging #2422 (53aac2e) into master (03a6cc1) will increase coverage by 3.47%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2422      +/-   ##
==========================================
+ Coverage   68.10%   71.58%   +3.47%     
==========================================
  Files         127       58      -69     
  Lines        3374     4036     +662     
  Branches      830        0     -830     
==========================================
+ Hits         2298     2889     +591     
+ Misses       1076      843     -233     
- Partials        0      304     +304     
Flag Coverage Δ
backend-e2e-test 37.61% <ø> (?)
backend-e2e-test-ginkgo 59.51% <ø> (?)
backend-unit-test 49.61% <ø> (?)
frontend-e2e-test ?

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

Impacted Files Coverage Δ
api/internal/core/entity/entity.go 90.90% <ø> (ø)
web/src/components/Plugin/UI/limit-req.tsx
web/src/pages/Route/List.tsx
web/src/helpers.tsx
web/src/pages/Consumer/Create.tsx
web/src/components/Plugin/UI/limit-conn.tsx
web/src/components/Upstream/components/Scheme.tsx
...m/components/active-check/Healthy/HttpStatuses.tsx
...mponents/Upstream/components/active-check/Type.tsx
...es/Route/components/DebugViews/DebugParamsView.tsx
... and 176 more

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 fc62ca3...53aac2e. Read the comment docs.

@tylitianrui tylitianrui changed the title data type fix: correct data type of filed Active.checks.active.https_verify_certificate Apr 18, 2022
@tylitianrui tylitianrui changed the title fix: correct data type of filed Active.checks.active.https_verify_certificate fix : correct data type of filed Active.checks.active.https_verify_certificate Apr 18, 2022
@tylitianrui tylitianrui changed the title fix : correct data type of filed Active.checks.active.https_verify_certificate fix: correct data type of filed Active.checks.active.https_verify_certificate Apr 18, 2022
@Baoyuantop Baoyuantop requested a review from bzp2010 April 19, 2022 01:35
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.

We need test cases to cover this modification.

api/internal/core/entity/entity.go Outdated Show resolved Hide resolved
@juzhiyuan juzhiyuan merged commit 92f46d9 into apache:master May 7, 2022
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request May 24, 2022
* upstream: (28 commits)
  docs: update some tips in develop.md (apache#2451)
  fix: create upstream error when pass host is node and nodes without port (apache#2421)
  fix: correct data  type of filed Active.checks.active.https_verify_certificate (apache#2422)
  feat: basic support Apache APISIX 2.13.0 (apache#2428)
  feat: add page reload judgment (apache#2370)
  docs: Update RPM install package link (apache#2439)
  docs: Remove hyperlinks from documents (apache#2431)
  chore(deps): bump actions/upload-artifact from 2 to 3 (apache#2423)
  fix: consumer without plugins causes page crashes (apache#2437)
  chore(deps): bump axios from 0.21.1 to 0.21.4 in /web (apache#2420)
  feat: Modify plugin preview page (apache#2359)
  chore(deps): bump moment from 2.29.1 to 2.29.2 in /web (apache#2418)
  chore: use json schema instead hard code (apache#2399)
  refactor: migrate route tests to e2enew (apache#2411)
  chore(deps): bump actions/setup-python from 2.3.2 to 3.1.1 (apache#2414)
  chore: update the year of copyright and fix typo (apache#2417)
  docs: update online playground url (apache#2416)
  chore: update README for online demo (apache#2404)
  refactor: migrate id compatible tests to e2enew (apache#2400)
  docs: fix invalid link (apache#2366)
  ...

# Conflicts:
#	api/internal/route.go
#	web/src/components/Footer/index.tsx
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.

6 participants