-
Notifications
You must be signed in to change notification settings - Fork 378
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
feat: Standard issue filter provider, add issue complexity and states #3469
feat: Standard issue filter provider, add issue complexity and states #3469
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3469 +/- ##
==========================================
- Coverage 18.40% 18.37% -0.04%
==========================================
Files 1437 1437
Lines 149001 149075 +74
==========================================
- Hits 27425 27392 -33
- Misses 118759 118914 +155
+ Partials 2817 2769 -48
|
6307350
to
8b92d7c
Compare
InitProviderWithNameSpace(MakeComponentProviderName(scenario, compName), creator) | ||
} | ||
|
||
func InitProviderWithNameSpace(providerName string, creator servicehub.Creator) { |
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.
Do not expose this method, rename to initProviderWithCustomName
.
Add a new methods InitProviderToDefaultNamespace
for default comp register.
} | ||
|
||
func init() { | ||
base.InitProviderWithCreator("issue-kanban", "issueFilter", func() servicehub.Provider { | ||
base.InitProviderWithNameSpace("component-protocol.default-components.issueFilter", func() servicehub.Provider { |
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.
use InitProviderToDefaultNamespace
@@ -33,6 +34,13 @@ func MustGetScenarioAndCompNameFromProviderKey(providerKey string) (scenario, co | |||
} | |||
|
|||
func GetScenarioAndCompNameFromProviderKey(providerKey string) (scenario, compName, instanceName string, err error) { | |||
if strings.HasPrefix(providerKey, defaultComponentProviderNamePrefix) { |
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.
add ut for this.
8b92d7c
to
d22583c
Compare
d22583c
to
33333d1
Compare
/approve |
What type of this PR
feature refactor
What this PR does / why we need it:
Standard issue filter provider, add issue complexity and states
Which issue(s) this PR fixes:
Specified Reviewers:
/assign @sfwn
ChangeLog
Need cherry-pick to release versions?
Add comment like
/cherry-pick release/1.0
when this PR is merged.