-
Notifications
You must be signed in to change notification settings - Fork 135
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
Refactor feature flag to support more modules #1057
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
fd7dd71
refactor(*): feature flag
shhdgit 8bd2e44
chore: refine feature flag
shhdgit 74a0937
refine: feature flag middleware
shhdgit 178a377
Merge branch 'master' into refactor/feature-flag
shhdgit f6ec213
refactor: move version utils to util package
shhdgit beafba3
chore: make lint happy
shhdgit 0b4dd21
Merge branch 'master' into refactor/feature-flag
shhdgit 4857960
refine(feature): flag & manager
shhdgit 8c9c89c
test(feature_flag): add manager tests
shhdgit 28a97f3
refine(util): feature flag
shhdgit a9382e9
*: update feature flag
shhdgit 1a39419
Merge branch 'master' into refactor/feature-flag
shhdgit 43b297d
*: update feature flag
shhdgit cc55adc
chore: make lint happy
shhdgit 15490d5
chore: revert lint
shhdgit 3401a7f
Update index.tsx
shhdgit c7e50e0
Update Detail.tsx
shhdgit c4e1a03
refine: feature flag
shhdgit 94e5e95
fix: fx & indirect x/tools version
shhdgit 194a4ed
Merge branch 'master' into refactor/feature-flag
shhdgit 8087baf
refine: version guard error
shhdgit 61a7d73
Merge branch 'refactor/feature-flag' of github.com:shhdgit/tidb-dashb…
shhdgit 0623ecc
test: adjust feature flag version guard test
shhdgit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2021 PingCAP, Inc. Licensed under Apache-2.0. | ||
|
||
package user | ||
|
||
import ( | ||
"go.uber.org/fx" | ||
) | ||
|
||
var Module = fx.Options( | ||
fx.Provide(newAuthService), | ||
fx.Invoke(registerRouter), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ import ( | |
"crypto/tls" | ||
"net/url" | ||
"strings" | ||
|
||
"github.com/pingcap/tidb-dashboard/pkg/utils/version" | ||
) | ||
|
||
const ( | ||
|
@@ -40,7 +42,7 @@ func Default() *Config { | |
TiDBTLSConfig: nil, | ||
EnableTelemetry: true, | ||
EnableExperimental: false, | ||
FeatureVersion: "", | ||
FeatureVersion: version.PDVersion, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a nice improvement. |
||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature should be placed inside SQL auth, as only SQL auth needs it and other kind of auth does not care about the "non root login".