This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new f06f810c4 fix: github original type no value (#6827)
f06f810c4 is described below
commit f06f810c47c48bd60df7fe5bce2fa80881451786
Author: abeizn <[email protected]>
AuthorDate: Wed Jan 17 16:08:54 2024 +0800
fix: github original type no value (#6827)
---
.../github/e2e/snapshot_tables/_tool_github_issues.csv | 18 +++++++++---------
backend/plugins/github/tasks/issue_extractor.go | 4 +---
.../plugins/github_graphql/tasks/issue_extractor.go | 4 +---
.../gitlab/e2e/snapshot_tables/_tool_gitlab_issues.csv | 16 ++++++++--------
backend/plugins/gitlab/tasks/issue_extractor.go | 4 +---
5 files changed, 20 insertions(+), 26 deletions(-)
diff --git a/backend/plugins/github/e2e/snapshot_tables/_tool_github_issues.csv
b/backend/plugins/github/e2e/snapshot_tables/_tool_github_issues.csv
index 556adb7ea..933af4374 100644
--- a/backend/plugins/github/e2e/snapshot_tables/_tool_github_issues.csv
+++ b/backend/plugins/github/e2e/snapshot_tables/_tool_github_issues.csv
@@ -1,23 +1,23 @@
connection_id,github_id,repo_id,number,state,title,body,priority,type,author_id,author_name,assignee_id,assignee_name,milestone_id,lead_time_minutes,url,closed_at,github_created_at,github_updated_at,severity,component,_raw_data_params,_raw_data_table,_raw_data_id,_raw_data_remark
-1,346842831,134018330,5,closed," chinese <-p.freeSignal chinese ","""Hi,\r\n
chinese , chinese `<-p.freeSignal` chinese 。 chinese ,freeSignal
chinese , chinese `putWorker` chinese `p.freeSignal <- sig{}`\r\n\r\n
chinese \r\n```\r\nfunc (p *Pool) getWorker() *Worker {\r\n\tvar w
*Worker\r\n\twaiting := false\r\n\r\n\tp.lock.Lock()\r\n\tidleWorkers :=
p.workers\r\n\tn := len(idleWorkers) - 1\r\n\tif n < 0 { // chinese pool
chinese worker chinese \r\n\t\twaiting = p.Running() [...]
+1,346842831,134018330,5,closed," chinese <-p.freeSignal chinese ","""Hi,\r\n
chinese , chinese `<-p.freeSignal` chinese 。 chinese ,freeSignal
chinese , chinese `putWorker` chinese `p.freeSignal <- sig{}`\r\n\r\n
chinese \r\n```\r\nfunc (p *Pool) getWorker() *Worker {\r\n\tvar w
*Worker\r\n\twaiting := false\r\n\r\n\tp.lock.Lock()\r\n\tidleWorkers :=
p.workers\r\n\tn := len(idleWorkers) - 1\r\n\tif n < 0 { // chinese pool
chinese worker chinese \r\n\t\twaiting = p.Running() [...]
1,347255859,134018330,6,closed," chinese bug","""func (p *Pool) getWorker()
*Worker chinese 199 chinese \r\n chinese , chinese
\r\n\r\n\tp.lock.Unlock()\r\n\t\t<-p.freeSignal\r\n\t\tp.lock.Lock()""",,bug,13118848,lovelly,0,,7856149,1786,https://github.com/panjf2000/ants/issues/6,2018-08-04T10:18:41.000+00:00,2018-08-03T04:32:28.000+00:00,2018-08-04T10:18:41.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,12,
1,348630179,134018330,7,closed," chinese ",""" chinese , chinese 。 chinese
ants chinese , chinese 。 chinese
\r\n\r\n
chinese periodicallyPurge chinese
\r\n\r\n\r\n###
chinese \r\n\r\n chinese n==0 chinese \r\n```\r\nif n > 0
{\r\n\tn++\r\n\tp.workers = idleWorkers[n:]\r\n} [...]
-1,356703393,134018330,10,closed," chinese worker chinese ",""" chinese cpu
chinese
?""",,,11763614,Moonlight-Zhao,0,,7856149,36198,https://github.com/panjf2000/ants/issues/10,2018-09-29T11:45:00.000+00:00,2018-09-04T08:26:55.000+00:00,2018-09-29T11:45:00.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,16,
+1,356703393,134018330,10,closed," chinese worker chinese ",""" chinese cpu
chinese
?""",,question,11763614,Moonlight-Zhao,0,,7856149,36198,https://github.com/panjf2000/ants/issues/10,2018-09-29T11:45:00.000+00:00,2018-09-04T08:26:55.000+00:00,2018-09-29T11:45:00.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,16,
1,364361014,134018330,12,closed," chinese , chinese tag chinese ",""" chinese
dep chinese , chinese ants chinese , chinese tag chinese 。 chinese tag 3.6
chinese ed55924 chinese ,git chinese af376f1b chinese , chinese 5 chinese ,
chinese , chinese tag chinese 。( chinese
)""",,,29452204,edcismybrother,0,,7856149,1293,https://github.com/panjf2000/ants/issues/12,2018-09-28T06:05:58.000+00:00,2018-09-27T08:32:25.000+00:00,2019-04-21T08:19:58.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf20
[...]
-1,381941219,134018330,17,closed," chinese ",""" chinese package chinese ,
chinese Release chinese :\r\n\r\n`\r\n\t// Release Closed this pool.\r\n\tfunc
(p *PoolWithFunc) Release() error {\r\n\t\tp.once.Do(func()
{\r\n\t\t\tp.release <- sig{}\r\n\t\t\tp.lock.Lock()\r\n\t\t\tidleWorkers :=
p.workers\r\n\t\t\tfor i, w := range idleWorkers {\r\n\t\t\t\tw.args <-
nil\r\n\t\t\t\tidleWorkers[i] = nil\r\n\t\t\t}\r\n\t\t\tp.workers =
nil\r\n\t\t\tp.lock.Unlock()\r\n\t\t})\r\n\t\treturn nil\r\n\t [...]
-1,382039050,134018330,18,closed,go chinese ,""" chinese , chinese , chinese go
chinese , chinese , chinese 。\"" chinese : GOMAXPROCS sets the maximum number
of CPUs that can be executing simultaneously。 chinese cpu chinese , chinese ,
chinese ?, chinese ?, chinese ?, chinese
?\""""",,,13944100,LinuxForYQH,0,,7856149,20213,https://github.com/panjf2000/ants/issues/18,2018-12-03T03:53:50.000+00:00,2018-11-19T02:59:53.000+00:00,2018-12-03T03:53:50.000+00:00,,,"{""ConnectionId"":1,""Name"":""
[...]
-1,382574800,134018330,20,closed," chinese
","""#""",,,5668717,kklinan,0,,7856149,95398,https://github.com/panjf2000/ants/issues/20,2019-01-25T15:34:03.000+00:00,2018-11-20T09:36:02.000+00:00,2019-01-25T15:34:03.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,26,
+1,381941219,134018330,17,closed," chinese ",""" chinese package chinese ,
chinese Release chinese :\r\n\r\n`\r\n\t// Release Closed this pool.\r\n\tfunc
(p *PoolWithFunc) Release() error {\r\n\t\tp.once.Do(func()
{\r\n\t\t\tp.release <- sig{}\r\n\t\t\tp.lock.Lock()\r\n\t\t\tidleWorkers :=
p.workers\r\n\t\t\tfor i, w := range idleWorkers {\r\n\t\t\t\tw.args <-
nil\r\n\t\t\t\tidleWorkers[i] = nil\r\n\t\t\t}\r\n\t\t\tp.workers =
nil\r\n\t\t\tp.lock.Unlock()\r\n\t\t})\r\n\t\treturn nil\r\n\t [...]
+1,382039050,134018330,18,closed,go chinese ,""" chinese , chinese , chinese go
chinese , chinese , chinese 。\"" chinese : GOMAXPROCS sets the maximum number
of CPUs that can be executing simultaneously。 chinese cpu chinese , chinese ,
chinese ?, chinese ?, chinese ?, chinese
?\""""",,question,13944100,LinuxForYQH,0,,7856149,20213,https://github.com/panjf2000/ants/issues/18,2018-12-03T03:53:50.000+00:00,2018-11-19T02:59:53.000+00:00,2018-12-03T03:53:50.000+00:00,,,"{""ConnectionId"":1,""N
[...]
+1,382574800,134018330,20,closed," chinese
","""#""",,enhancement,5668717,kklinan,0,,7856149,95398,https://github.com/panjf2000/ants/issues/20,2019-01-25T15:34:03.000+00:00,2018-11-20T09:36:02.000+00:00,2019-01-25T15:34:03.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,26,
1,388907811,134018330,21,closed,Benchmark chinese Semaphore chinese ?,"""
chinese benchmark,Semaphore chinese \r\n\r\n```bash\r\n$ go test -bench
.\r\ngoos: darwin\r\ngoarch: amd64\r\npkg:
github.com/panjf2000/ants\r\nBenchmarkGoroutineWithFunc-4 \t
1\t3445631705 ns/op\r\nBenchmarkSemaphoreWithFunc-4 \t 1\t1037219073
ns/op\r\nBenchmarkAntsPoolWithFunc-4 \t 1\t1138053222
ns/op\r\nBenchmarkGoroutine-4 \t 2\t 731850771
ns/op\r\nBenchmarkSemaphor [...]
-1,401277739,134018330,22,closed," chinese worker chinese PanicHandler
?",""" chinese Pool chinese PanicHandler, chinese worker chinese recover
chinese PanicHandler chinese 。 chinese panic chinese
。""",,,8923413,choleraehyq,0,,7856149,1174,https://github.com/panjf2000/ants/issues/22,2019-01-22T05:41:34.000+00:00,2019-01-21T10:06:56.000+00:00,2019-01-22T05:41:34.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,28,
-1,402513849,134018330,24,closed," chinese ","""`Pool.Submit` chinese
`PoolWithFunc.Server` chinese , chinese worker, chinese 。 chinese , chinese
。""",,,5044825,tenfyzhong,0,,7856149,300032,https://github.com/panjf2000/ants/issues/24,2019-08-20T10:56:30.000+00:00,2019-01-24T02:24:13.000+00:00,2019-08-20T10:56:30.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,30,
+1,401277739,134018330,22,closed," chinese worker chinese PanicHandler
?",""" chinese Pool chinese PanicHandler, chinese worker chinese recover
chinese PanicHandler chinese 。 chinese panic chinese
。""",,enhancement,8923413,choleraehyq,0,,7856149,1174,https://github.com/panjf2000/ants/issues/22,2019-01-22T05:41:34.000+00:00,2019-01-21T10:06:56.000+00:00,2019-01-22T05:41:34.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,28,
+1,402513849,134018330,24,closed," chinese ","""`Pool.Submit` chinese
`PoolWithFunc.Server` chinese , chinese worker, chinese 。 chinese , chinese
。""",,enhancement,5044825,tenfyzhong,0,,7856149,300032,https://github.com/panjf2000/ants/issues/24,2019-08-20T10:56:30.000+00:00,2019-01-24T02:24:13.000+00:00,2019-08-20T10:56:30.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,30,
1,405951301,134018330,25,closed,use example errors,"""./antstest.go:37:14:
cannot use syncCalculateSum (type func()) as type ants.f in argument to
ants.Submit\r\n./antstest.go:45:35: cannot use func literal (type
func(interface {})) as type ants.pf in argument to
ants.NewPoolWithFunc\r\n""",,,5244267,jiashiwen,0,,7856149,3088,https://github.com/panjf2000/ants/issues/25,2019-02-04T09:11:52.000+00:00,2019-02-02T05:43:38.000+00:00,2019-02-04T09:11:52.000+00:00,,,"{""ConnectionId"":1,""Name"
[...]
1,413968505,134018330,26,closed,running chinese cap chinese ,"""running
chinese cap chinese incRuning chinese , chinese running chinese cap chinese
?\r\n`func (p *Pool) retrieveWorker() *Worker {\r\n\tvar w
*Worker\r\n\r\n\tp.lock.Lock()\r\n\tidleWorkers := p.workers\r\n\tn :=
len(idleWorkers) - 1\r\n\tif n >= 0 {\r\n\t\tw =
idleWorkers[n]\r\n\t\tidleWorkers[n] = nil\r\n\t\tp.workers =
idleWorkers[:n]\r\n\t\tp.lock.Unlock()\r\n\t} else if p.Running() < p.Cap()
{\r\n\t\tp.lock.Unlock()\r [...]
1,419183961,134018330,27,closed," chinese goroutine chinese , chinese ","""
chinese goroutine chinese , chinese \r\n chinese ?\r\n\r\nwebsocket
server\r\nhttps://github.com/im-ai/pushm/blob/master/learn/goroutine/goroutinepoolwebsocket.go\r\n\r\nwebsocket
cient\r\nhttps://github.com/im-ai/pushm/blob/master/learn/goroutine/goroutinepoolwebsocketclient.go\r\n""",,,38367404,liliang8858,0,,7856149,37496,https://github.com/panjf2000/ants/issues/27,2019-04-05T14:05:20.000+00:00,2019-03-10T13:0
[...]
1,419268851,134018330,28,closed,cap chinese running chinese ,""" chinese
Playground chinese https://play.golang.org/p/D94YUU3FnX6\r\natomic chinese ,
chinese , chinese chinese , chinese chinese , chinese chinese , chinese
\r\n chinese #26 chinese
""",,,29243953,naiba,0,,7856149,237002,https://github.com/panjf2000/ants/issues/28,2019-08-22T16:27:37.000+00:00,2019-03-11T02:24:41.000+00:00,2019-08-22T16:27:37.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw
[...]
1,424634533,134018330,29,closed," chinese ",""" chinese , chinese
👍\r\n\r\nhttps://github.com/panjf2000/ants/blob/master/pool.go#L124 chinese ,
chinese
?\r\n""",,,8509898,prprprus,0,,7856149,999,https://github.com/panjf2000/ants/issues/29,2019-03-25T09:32:11.000+00:00,2019-03-24T16:52:21.000+00:00,2019-03-25T09:45:05.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,35,
1,429972115,134018330,31,closed,Add
go.mod,"""""",,,48135919,tsatke,0,,7856149,3474,https://github.com/panjf2000/ants/issues/31,2019-04-08T09:45:31.000+00:00,2019-04-05T23:50:36.000+00:00,2019-10-17T03:12:19.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,37,
-1,433564955,134018330,32,closed," chinese , chinese (0.0.x) chinese ?","""
chinese , chinese 。\r\n\r\n chinese \r\n\r\n chinese , chinese
。""",,,7931755,zplzpl,0,,7856149,7440,https://github.com/panjf2000/ants/issues/32,2019-04-21T07:16:26.000+00:00,2019-04-16T03:16:02.000+00:00,2019-04-21T07:16:26.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,38,
-1,434069015,134018330,33,closed,support semantic versioning.,""" chinese tag
chinese semantic versioning,vX.Y.Z。go modules chinese
。\r\nhttps://semver.org/\r\nhttps://research.swtch.com/vgo-import""",,,1284892,jjeffcaii,0,,7856149,6090,https://github.com/panjf2000/ants/issues/33,2019-04-21T08:25:20.000+00:00,2019-04-17T02:55:11.000+00:00,2019-04-21T08:25:20.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,39,
+1,433564955,134018330,32,closed," chinese , chinese (0.0.x) chinese ?","""
chinese , chinese 。\r\n\r\n chinese \r\n\r\n chinese , chinese
。""",,enhancement,7931755,zplzpl,0,,7856149,7440,https://github.com/panjf2000/ants/issues/32,2019-04-21T07:16:26.000+00:00,2019-04-16T03:16:02.000+00:00,2019-04-21T07:16:26.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,38,
+1,434069015,134018330,33,closed,support semantic versioning.,""" chinese tag
chinese semantic versioning,vX.Y.Z。go modules chinese
。\r\nhttps://semver.org/\r\nhttps://research.swtch.com/vgo-import""",,enhancement,1284892,jjeffcaii,0,,7856149,6090,https://github.com/panjf2000/ants/issues/33,2019-04-21T08:25:20.000+00:00,2019-04-17T02:55:11.000+00:00,2019-04-21T08:25:20.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,39,
1,435486645,134018330,34,closed,Important announcement about <ants> from
author !!!,"""**Dear users of `ants`:**\r\nI am apologetically telling you that
I have to dump all tags which already presents in `ants` repository.\r\n\r\nThe
reason why I'm doing so is to standardize the version management with `Semantic
Versioning`, which will make a formal and clear dependency management in go,
for go modules, godep, or glide, etc. So I decide to start over the tag
sequence, you could find more [...]
1,461280653,134018330,35,closed,worker exit on panic,""" chinese PanicHandler
chinese 。\r\n1. chinese PanicHandler chinese , chinese panic, chinese 。\r\n2.
chinese PanicHandler, chinese worker chinese , chinese pool chinese
。""",,,38849208,king526,0,,7856149,74481,https://github.com/panjf2000/ants/issues/35,2019-08-17T20:33:10.000+00:00,2019-06-27T03:11:49.000+00:00,2019-08-17T20:33:10.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,41,
1,462631417,134018330,37,closed," chinese 。。。",""" chinese 3.9.9, chinese ,
chinese , chinese 1.0.0。 chinese 。 chinese
""",,,8923413,choleraehyq,0,,7856149,140,https://github.com/panjf2000/ants/issues/37,2019-07-01T12:37:55.000+00:00,2019-07-01T10:17:15.000+00:00,2019-07-02T10:17:31.000+00:00,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,43,
diff --git a/backend/plugins/github/tasks/issue_extractor.go
b/backend/plugins/github/tasks/issue_extractor.go
index 4dbce5bee..a61c33541 100644
--- a/backend/plugins/github/tasks/issue_extractor.go
+++ b/backend/plugins/github/tasks/issue_extractor.go
@@ -223,14 +223,12 @@ func convertGithubLabels(issueRegexes *IssueRegexes,
issue *IssuesResponse, gith
}
if issueRegexes.TypeRequirementRegex != nil &&
issueRegexes.TypeRequirementRegex.MatchString(label.Name) {
githubIssue.StdType = ticket.REQUIREMENT
- joinedLabels = append(joinedLabels, label.Name)
} else if issueRegexes.TypeBugRegex != nil &&
issueRegexes.TypeBugRegex.MatchString(label.Name) {
githubIssue.StdType = ticket.BUG
- joinedLabels = append(joinedLabels, label.Name)
} else if issueRegexes.TypeIncidentRegex != nil &&
issueRegexes.TypeIncidentRegex.MatchString(label.Name) {
githubIssue.StdType = ticket.INCIDENT
- joinedLabels = append(joinedLabels, label.Name)
}
+ joinedLabels = append(joinedLabels, label.Name)
}
if len(joinedLabels) > 0 {
githubIssue.Type = strings.Join(joinedLabels, ",")
diff --git a/backend/plugins/github_graphql/tasks/issue_extractor.go
b/backend/plugins/github_graphql/tasks/issue_extractor.go
index ca95e1dd8..9bc318589 100644
--- a/backend/plugins/github_graphql/tasks/issue_extractor.go
+++ b/backend/plugins/github_graphql/tasks/issue_extractor.go
@@ -184,14 +184,12 @@ func convertGithubLabels(issueRegexes
*githubTasks.IssueRegexes, issue GraphqlQu
}
if issueRegexes.TypeRequirementRegex != nil &&
issueRegexes.TypeRequirementRegex.MatchString(label.Name) {
githubIssue.StdType = ticket.REQUIREMENT
- joinedLabels = append(joinedLabels, label.Name)
} else if issueRegexes.TypeBugRegex != nil &&
issueRegexes.TypeBugRegex.MatchString(label.Name) {
githubIssue.StdType = ticket.BUG
- joinedLabels = append(joinedLabels, label.Name)
} else if issueRegexes.TypeIncidentRegex != nil &&
issueRegexes.TypeIncidentRegex.MatchString(label.Name) {
githubIssue.StdType = ticket.INCIDENT
- joinedLabels = append(joinedLabels, label.Name)
}
+ joinedLabels = append(joinedLabels, label.Name)
}
if len(joinedLabels) > 0 {
githubIssue.Type = strings.Join(joinedLabels, ",")
diff --git a/backend/plugins/gitlab/e2e/snapshot_tables/_tool_gitlab_issues.csv
b/backend/plugins/gitlab/e2e/snapshot_tables/_tool_gitlab_issues.csv
index 868cee338..c0de2188b 100644
--- a/backend/plugins/gitlab/e2e/snapshot_tables/_tool_gitlab_issues.csv
+++ b/backend/plugins/gitlab/e2e/snapshot_tables/_tool_gitlab_issues.csv
@@ -1,13 +1,13 @@
connection_id,gitlab_id,project_id,number,state,title,body,priority,type,status,assignee_id,assignee_name,creator_id,creator_name,lead_time_minutes,url,closed_at,gitlab_created_at,gitlab_updated_at,severity,component,time_estimate,total_time_spent,_raw_data_params,_raw_data_table,_raw_data_id,_raw_data_remark
1,22097949,12345678,1,closed,Add documentation to snowflake spend
package,,,ISSUE,,2295562,emilie,2295562,emilie,11487,,2019-06-28T14:32:05.376+00:00,2019-06-20T15:04:58.946+00:00,2019-06-28T14:32:05.434+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,1,
-1,23413488,12345678,2,closed,Handle multiple prices and date
ranges,https://gitlab.com/gitlab-data/analytics/issues/2098,,ISSUE,,0,,1942272,tayloramurphy,4368,,2019-08-04T22:24:40.978+00:00,2019-08-01T21:36:28.766+00:00,2019-08-04T22:24:41.244+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,2,
-1,23577209,12345678,3,opened,Expand package,I wonder how much more we can do
with this
https://www.tableau.com/about/blog/2019/5/monitor-understand-snowflake-account-usage,,ISSUE,,0,,2295562,emilie,,,,2019-08-07T13:52:40.231+00:00,2020-04-08T20:53:43.146+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,3,
-1,23812433,12345678,4,closed,Config is not generic enough,Not everybody is
going to have role reporter or schema
analytics,,ISSUE,,0,,1942272,tayloramurphy,15823,,2019-08-26T15:37:49.678+00:00,2019-08-15T15:54:17.378+00:00,2019-08-26T15:37:49.718+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,4,
+1,23413488,12345678,2,closed,Handle multiple prices and date
ranges,https://gitlab.com/gitlab-data/analytics/issues/2098,,"Data
Team,Enhancement,Snowflake,dbt",,0,,1942272,tayloramurphy,4368,,2019-08-04T22:24:40.978+00:00,2019-08-01T21:36:28.766+00:00,2019-08-04T22:24:41.244+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,2,
+1,23577209,12345678,3,opened,Expand package,I wonder how much more we can do
with this
https://www.tableau.com/about/blog/2019/5/monitor-understand-snowflake-account-usage,,"Analytics,Data
Team,Enhancement,Snowflake,dbt",,0,,2295562,emilie,,,,2019-08-07T13:52:40.231+00:00,2020-04-08T20:53:43.146+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,3,
+1,23812433,12345678,4,closed,Config is not generic enough,Not everybody is
going to have role reporter or schema analytics,,"Analytics,Data
Team,Refactor,dbt",,0,,1942272,tayloramurphy,15823,,2019-08-26T15:37:49.678+00:00,2019-08-15T15:54:17.378+00:00,2019-08-26T15:37:49.718+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,4,
1,23816268,12345678,5,closed,Update README to include steps to resolve a
potential dbt-utils conflict,"Depending on the main project configuration for
packages, adding snowflake_spend may return an error about duplicate dbt-utils
projects.
I'll update the README to include details and how to resolve
it.",,ISSUE,,0,,3871284,martinguindon,15543,,2019-08-26T14:15:27.808+00:00,2019-08-15T19:11:30.169+00:00,2019-08-26T14:15:32.854+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,5,
-1,24172103,12345678,6,closed,Document release
process,,,ISSUE,,5212782,m_walker,2295562,emilie,325745,,2020-04-08T20:52:10.973+00:00,2019-08-26T15:46:58.045+00:00,2020-04-08T20:52:11.010+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,6,
-1,32460839,12345678,7,closed,Add sources and cleanup
structure,,,ISSUE,,2295562,emilie,1942272,tayloramurphy,18174,,2020-04-07T12:51:53.273+00:00,2020-03-25T21:56:57.084+00:00,2020-04-07T12:51:53.563+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,7,
+1,24172103,12345678,6,closed,Document release process,,,"Analytics,Data
Team,Enhancement,dbt",,5212782,m_walker,2295562,emilie,325745,,2020-04-08T20:52:10.973+00:00,2019-08-26T15:46:58.045+00:00,2020-04-08T20:52:11.010+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,6,
+1,32460839,12345678,7,closed,Add sources and cleanup structure,,,"Data
Team,Refactor,Snowflake",,2295562,emilie,1942272,tayloramurphy,18174,,2020-04-07T12:51:53.273+00:00,2020-03-25T21:56:57.084+00:00,2020-04-07T12:51:53.563+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,7,
1,32667832,12345678,8,closed,Add reviewer roulette to the
package,https://gitlab.com/gitlab-org/gitlab/-/tree/master/danger/roulette,,ISSUE,,0,,2295562,emilie,166318,,2020-07-24T20:32:07.650+00:00,2020-03-31T08:33:30.240+00:00,2020-07-24T20:32:07.689+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,8,
1,33004486,12345678,9,closed,Make sure I can run locally the
models,,,ISSUE,,4189780,mpeychet_,4189780,mpeychet_,155740,,2020-07-24T20:31:52.819+00:00,2020-04-07T16:50:58.253+00:00,2020-07-24T20:31:52.872+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,9,
1,47175437,12345678,10,closed,Create alert for missing phone number and
emergency contact in BambooHR,"Hi team, per this
[issue](https://gitlab.com/gitlab-com/people-group/total-rewards/-/issues/140#note_362993437),
can you please help us in creating an alert for missing phone numbers and
emergency contacts.
@@ -18,8 +18,8 @@
Thanks!",,ISSUE,,0,,4582589,julie.samson,29952,,2020-07-08T19:05:30.953+00:00,20
1,59444322,12345678,11,closed,Upgrade package for dbt 0.17,"Check:
* dbt_project.yml new version
-*
packages",,ISSUE,,0,,1942272,tayloramurphy,13223,,2020-07-24T21:13:37.403+00:00,2020-07-15T16:49:44.079+00:00,2020-07-24T21:13:37.533+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,11,
-1,69025114,12345678,12,closed,Mirror to
GitHub,,,ISSUE,,0,,1942272,tayloramurphy,82548,,2020-09-22T22:08:20.103+00:00,2020-07-27T14:19:40.700+00:00,2020-09-22T22:08:20.280+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,12,
+* packages",,"Data Team,Priority::3-Other,Refactor,To Do,dbt,workflow::4 -
scheduled",,0,,1942272,tayloramurphy,13223,,2020-07-24T21:13:37.403+00:00,2020-07-15T16:49:44.079+00:00,2020-07-24T21:13:37.533+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,11,
+1,69025114,12345678,12,closed,Mirror to GitHub,,,"Data
Team,Documentation,Priority::3-Other,To Do,dbt,workflow::X -
blocked",,0,,1942272,tayloramurphy,82548,,2020-09-22T22:08:20.103+00:00,2020-07-27T14:19:40.700+00:00,2020-09-22T22:08:20.280+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,12,
1,89051403,12345678,13,opened,The mirror at
https://github.com/gitlabhq/snowflake_spend is managed with an expired personal
access token,"Taylor Murphy indicated that the mirror from this repo to github
may have been setup on his personal access token. This mirror exists so it
will show up on hub.getdbt.com . We need somebody else to manage the mirror to
github.com since Taylor's access is expired.
cc
@gitlab-data/engineers",,ISSUE,,0,,5212782,m_walker,,,,2021-06-21T19:30:40.087+00:00,2021-10-08T14:26:35.650+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,13,
@@ -108,4 +108,4 @@ Found duplicate project ""dbt_utils"". This occurs when a
dependency has the sam
This is a synched repo to the GitLab version
[here](https://gitlab.com/gitlab-data/snowflake_spend/-/blob/master/packages.yml)
where the change has already been made.
-I think the issue is that the tag wasn't applied to release this as a version.
Release instructions
[here](https://gitlab.com/gitlab-data/snowflake_spend/-/tree/master/#how-this-package-gets-released-for-maintainers-only).",,ISSUE,,9386100,chrissharp,9386100,chrissharp,49408,,2022-06-16T16:23:09.759+00:00,2022-05-13T08:54:58.859+00:00,2022-06-16T16:23:09.779+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_gitlab_api_issues,16,
+I think the issue is that the tag wasn't applied to release this as a version.
Release instructions
[here](https://gitlab.com/gitlab-data/snowflake_spend/-/tree/master/#how-this-package-gets-released-for-maintainers-only).",,"Champion::Data
Team,Priority::3-Other,Team::R&D,workflow::5 -
development",,9386100,chrissharp,9386100,chrissharp,49408,,2022-06-16T16:23:09.759+00:00,2022-05-13T08:54:58.859+00:00,2022-06-16T16:23:09.779+00:00,,,,,"{""ConnectionId"":1,""ProjectId"":12345678}",_raw_
[...]
diff --git a/backend/plugins/gitlab/tasks/issue_extractor.go
b/backend/plugins/gitlab/tasks/issue_extractor.go
index 860834e99..4066c0e65 100644
--- a/backend/plugins/gitlab/tasks/issue_extractor.go
+++ b/backend/plugins/gitlab/tasks/issue_extractor.go
@@ -224,14 +224,12 @@ func ExtractApiIssues(taskCtx plugin.SubTaskContext)
errors.Error {
if issueTypeRequirementRegex != nil &&
issueTypeRequirementRegex.MatchString(label) {
gitlabIssue.StdType = ticket.REQUIREMENT
- joinedLabels = append(joinedLabels,
label)
} else if issueTypeBugRegex != nil &&
issueTypeBugRegex.MatchString(label) {
gitlabIssue.StdType = ticket.BUG
- joinedLabels = append(joinedLabels,
label)
} else if issueTypeIncidentRegex != nil &&
issueTypeIncidentRegex.MatchString(label) {
gitlabIssue.StdType = ticket.INCIDENT
- joinedLabels = append(joinedLabels,
label)
}
+ joinedLabels = append(joinedLabels, label)
}
if len(joinedLabels) > 0 {
gitlabIssue.Type = strings.Join(joinedLabels,
",")