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

dashboard: fix a bug that could not handle proxy requests correctly (#5326) #5345

Merged

Conversation

ti-chi-bot
Copy link
Member

This is an automated cherry-pick of #5326

What problem does this PR solve?

Issue Number: Close #5321

What is changed and how does it work?

Only process headers added by PD.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Release note

Fix a bug that could not handle dashboard proxy requests correctly.

HunDunDM added 3 commits July 21, 2022 12:07
Signed-off-by: HunDunDM <hundundm@gmail.com>
Signed-off-by: HunDunDM <hundundm@gmail.com>
@ti-chi-bot
Copy link
Member Author

ti-chi-bot commented Jul 21, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • bufferflies
  • nolouch

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added do-not-merge/cherry-pick-not-approved release-note Denotes a PR that will be considered when it comes time to generate release notes. type/bugfix This PR fixes a bug. type/cherry-pick-for-release-6.1 This PR is cherry-picked to release-6.1 from a source PR. labels Jul 21, 2022
@ti-chi-bot ti-chi-bot requested review from HunDunDM and Yisaer July 21, 2022 12:07
@codecov
Copy link

codecov bot commented Jul 21, 2022

Codecov Report

Base: 75.45% // Head: 75.61% // Increases project coverage by +0.15% 🎉

Coverage data is based on head (ff7be6a) compared to base (4ab9c0e).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@               Coverage Diff               @@
##           release-6.1    #5345      +/-   ##
===============================================
+ Coverage        75.45%   75.61%   +0.15%     
===============================================
  Files              307      307              
  Lines            30387    30388       +1     
===============================================
+ Hits             22929    22978      +49     
+ Misses            5465     5432      -33     
+ Partials          1993     1978      -15     
Flag Coverage Δ
unittests 75.61% <100.00%> (+0.15%) ⬆️

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

Impacted Files Coverage Δ
pkg/dashboard/adapter/redirector.go 91.30% <100.00%> (+6.85%) ⬆️
pkg/tempurl/tempurl.go 45.00% <0.00%> (-15.00%) ⬇️
server/storage/kv/etcd_kv.go 72.46% <0.00%> (-13.05%) ⬇️
server/region_syncer/server.go 82.06% <0.00%> (-5.44%) ⬇️
client/base_client.go 79.89% <0.00%> (-2.07%) ⬇️
tools/pd-ctl/pdctl/command/operator.go 66.66% <0.00%> (-1.15%) ⬇️
server/cluster/cluster.go 82.84% <0.00%> (-0.91%) ⬇️
server/server.go 72.81% <0.00%> (-0.84%) ⬇️
server/encryptionkm/key_manager.go 72.90% <0.00%> (-0.80%) ⬇️
server/config/persist_options.go 93.23% <0.00%> (-0.72%) ⬇️
... and 19 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@VelocityLight VelocityLight added cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels Jul 26, 2022
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 27, 2022
@nolouch
Copy link
Contributor

nolouch commented Jul 29, 2022

@HunDunDM plz check it, go mod tidy has some changes.

Copy link
Contributor

@bufferflies bufferflies left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 12, 2022
@nolouch
Copy link
Contributor

nolouch commented Aug 12, 2022

/merge

@ti-chi-bot
Copy link
Member Author

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member Author

This pull request has been accepted and is ready to merge.

Commit hash: a875a13

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 12, 2022
@bufferflies
Copy link
Contributor

plz @HunDunDM , fix the unit test by remove assert.

@VelocityLight VelocityLight removed the cherry-pick-approved Cherry pick PR approved by release team. label Aug 25, 2022
Signed-off-by: nolouch <nolouch@gmail.com>
@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Sep 20, 2022
@nolouch
Copy link
Contributor

nolouch commented Sep 20, 2022

/merge

@ti-chi-bot
Copy link
Member Author

@nolouch: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member Author

This pull request has been accepted and is ready to merge.

Commit hash: ff7be6a

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 20, 2022
@VelocityLight VelocityLight added cherry-pick-approved Cherry pick PR approved by release team. and removed do-not-merge/cherry-pick-not-approved labels Sep 20, 2022
@ti-chi-bot ti-chi-bot merged commit 18c6ba6 into tikv:release-6.1 Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-approved Cherry pick PR approved by release team. release-note Denotes a PR that will be considered when it comes time to generate release notes. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/cherry-pick-for-release-6.1 This PR is cherry-picked to release-6.1 from a source PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants