abeizn commented on code in PR #6398:
URL: 
https://github.com/apache/incubator-devlake/pull/6398#discussion_r1382711965


##########
backend/core/models/domainlayer/devops/cicd_pipeline.go:
##########
@@ -46,71 +46,80 @@ func (CICDPipeline) TableName() string {
 const (
        RESULT_SUCCESS = "SUCCESS"
        RESULT_FAILURE = "FAILURE"
-       RESULT_ABORT   = "ABORT"
-       RESULT_MANUAL  = "MANUAL"
-       RESULT_SKIPPED = "SKIPPED"
+       RESULT_DEFAULT = ""
 )
 
 // this is for the field `status` in table.cicd_pipelines and table.cicd_tasks
 const (
-       STATUS_NOT_STARTED = "NOT_STARTED"
        STATUS_IN_PROGRESS = "IN_PROGRESS"
-       STATUS_BLOCKED     = "BLOCKED"
        STATUS_DONE        = "DONE"
+       STATUS_OTHER       = "OTHER"
 )
 
 type ResultRule struct {
        Success []string
        Failed  []string
-       Abort   []string
-       Manual  []string
-       Skipped []string
        Default string
 }
-type StatusRule[T comparable] struct {
-       InProgress []T
-       NotStarted []T
-       Done       []T
-       Manual     []T
+
+type StatusRule struct {
+       InProgress []string
+       Done       []string
+       Other      []string
        Default    string
 }
 
-func caseInSensitiveEqual(src string, dst string) bool {
-       return strings.EqualFold(src, dst)
+type StatusRuleCommon[T comparable] struct {
+       InProgress []T
+       Done       []T
+       Other      []T
+       Default    string

Review Comment:
   please remove it



##########
backend/core/models/domainlayer/devops/cicd_pipeline.go:
##########
@@ -46,71 +46,80 @@ func (CICDPipeline) TableName() string {
 const (
        RESULT_SUCCESS = "SUCCESS"
        RESULT_FAILURE = "FAILURE"
-       RESULT_ABORT   = "ABORT"
-       RESULT_MANUAL  = "MANUAL"
-       RESULT_SKIPPED = "SKIPPED"
+       RESULT_DEFAULT = ""
 )
 
 // this is for the field `status` in table.cicd_pipelines and table.cicd_tasks
 const (
-       STATUS_NOT_STARTED = "NOT_STARTED"
        STATUS_IN_PROGRESS = "IN_PROGRESS"
-       STATUS_BLOCKED     = "BLOCKED"
        STATUS_DONE        = "DONE"
+       STATUS_OTHER       = "OTHER"
 )
 
 type ResultRule struct {
        Success []string
        Failed  []string
-       Abort   []string
-       Manual  []string
-       Skipped []string
        Default string
 }
-type StatusRule[T comparable] struct {
-       InProgress []T
-       NotStarted []T
-       Done       []T
-       Manual     []T
+
+type StatusRule struct {
+       InProgress []string
+       Done       []string
+       Other      []string

Review Comment:
   please remove it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to