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

Add Gzip Support for uiserver #514

Merged
merged 2 commits into from May 21, 2020

Conversation

niedhui
Copy link
Contributor

@niedhui niedhui commented May 20, 2020

UCP #508

Signed-off-by: niedhui <niedhui@gmail.com>
@sre-bot
Copy link
Collaborator

sre-bot commented May 20, 2020

Thanks for your pull request. Pick up issue #480 and reopen this PR

@sre-bot
Copy link
Collaborator

sre-bot commented May 20, 2020

Thanks for your contribution. If your PR get merged, you will be rewarded 605 points.

@@ -38,3 +42,52 @@ func Handler() http.Handler {
func AssetFS() *assetfs.AssetFS {
return fs
}

type gzipHandler struct {
Copy link
Member

Choose a reason for hiding this comment

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

Thanks! There is a similar server in PD as well. Could you figure out some way so that code can be reused? https://github.com/pingcap/pd/blob/master/pkg/dashboard/uiserver/uiserver.go

Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

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

The rest LGTM, verified it works

Signed-off-by: niedhui <niedhui@gmail.com>
Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

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

Cool! I'm merging this PR. Could you also propose a PR in PD as well?

@breezewish breezewish merged commit b19867b into pingcap:master May 21, 2020
@sre-bot
Copy link
Collaborator

sre-bot commented May 21, 2020

Team niedhui complete task #508 and get 605 score, current score 3135

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.

None yet

3 participants