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 6dbe722a9 fix: only one assignee (#5508)
6dbe722a9 is described below
commit 6dbe722a99328bbea0fc4d0d35bfc9a1ade0f40a
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Jun 16 13:42:29 2023 +0800
fix: only one assignee (#5508)
* fix: only one assignee
* fix: e2e test
---
.../plugins/github/e2e/snapshot_tables/issues.csv | 52 +++++++++++-----------
backend/plugins/github/tasks/issue_convertor.go | 8 +++-
.../github_graphql/tasks/issue_collector.go | 2 +-
3 files changed, 33 insertions(+), 29 deletions(-)
diff --git a/backend/plugins/github/e2e/snapshot_tables/issues.csv
b/backend/plugins/github/e2e/snapshot_tables/issues.csv
index 0fbdb0184..036738941 100644
--- a/backend/plugins/github/e2e/snapshot_tables/issues.csv
+++ b/backend/plugins/github/e2e/snapshot_tables/issues.csv
@@ -1,27 +1,27 @@
id,url,icon_url,issue_key,title,description,epic_key,type,status,original_status,story_point,resolution_date,created_date,updated_date,lead_time_minutes,parent_issue_id,priority,original_estimate_minutes,time_spent_minutes,time_remaining_minutes,creator_id,creator_name,assignee_id,assignee_name,severity,component,_raw_data_params,_raw_data_table,_raw_data_id,_raw_data_remark
-github:GithubIssue:1:346842831,https://github.com/panjf2000/ants/issues/5,,5,"
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 chines [...]
-github:GithubIssue:1:347255859,https://github.com/panjf2000/ants/issues/6,,6,"
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,DONE,closed,0,2018-08-04T10:18:41.000+00:00,2018-08-03T04:32:28.000+00:00,2018-08-04T10:18:41.000+00:00,1786,,,0,0,0,github:GithubAccount:1:13118848,lovelly,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_
[...]
-github:GithubIssue:1:348630179,https://github.com/panjf2000/ants/issues/7,,7,"
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 {\ [...]
-github:GithubIssue:1:356703393,https://github.com/panjf2000/ants/issues/10,,10,"
chinese worker chinese ",""" chinese cpu chinese
?""",,,DONE,closed,0,2018-09-29T11:45:00.000+00:00,2018-09-04T08:26:55.000+00:00,2018-09-29T11:45:00.000+00:00,36198,,,0,0,0,github:GithubAccount:1:11763614,Moonlight-Zhao,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,16,
-github:GithubIssue:1:364361014,https://github.com/panjf2000/ants/issues/12,,12,"
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
)""",,,DONE,closed,0,2018-09-28T06:05:58.000+00:00,2018-09-27T08:32:25.000+00:00,2019-04-21T08:19:58.000+00:00,1293,,,0,0,0,github:GithubAccount:1:29452204,edcismybrother,gith
[...]
-github:GithubIssue:1:381941219,https://github.com/panjf2000/ants/issues/17,,17,"
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. [...]
-github:GithubIssue:1:382039050,https://github.com/panjf2000/ants/issues/18,,18,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
?\""""",,,DONE,closed,0,2018-12-03T03:53:50.000+00:00,2018-11-19T02:59:53.000+00:00,2018-12-03T03:53:50.000+00:00,20213,,,0,0,0,github:GithubAccount:1:13944100,LinuxForY
[...]
-github:GithubIssue:1:382574800,https://github.com/panjf2000/ants/issues/20,,20,"
chinese
","""#""",,,DONE,closed,0,2019-01-25T15:34:03.000+00:00,2018-11-20T09:36:02.000+00:00,2019-01-25T15:34:03.000+00:00,95398,,,0,0,0,github:GithubAccount:1:5668717,kklinan,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,26,
-github:GithubIssue:1:388907811,https://github.com/panjf2000/ants/issues/21,,21,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 [...]
-github:GithubIssue:1:401277739,https://github.com/panjf2000/ants/issues/22,,22,"
chinese worker chinese PanicHandler ?",""" chinese Pool chinese
PanicHandler, chinese worker chinese recover chinese PanicHandler
chinese 。 chinese panic chinese
。""",,,DONE,closed,0,2019-01-22T05:41:34.000+00:00,2019-01-21T10:06:56.000+00:00,2019-01-22T05:41:34.000+00:00,1174,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2
[...]
-github:GithubIssue:1:402513849,https://github.com/panjf2000/ants/issues/24,,24,"
chinese ","""`Pool.Submit` chinese `PoolWithFunc.Server` chinese , chinese
worker, chinese 。 chinese , chinese
。""",,,DONE,closed,0,2019-08-20T10:56:30.000+00:00,2019-01-24T02:24:13.000+00:00,2019-08-20T10:56:30.000+00:00,300032,,,0,0,0,github:GithubAccount:1:5044825,tenfyzhong,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,30,
-github:GithubIssue:1:405951301,https://github.com/panjf2000/ants/issues/25,,25,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""",,,DONE,closed,0,2019-02-04T09:11:52.000+00:00,2019-02-02T05:43:38.000+00:00,2019-02-04T09:11:52.000+00:00,3088,,,0,0,0,github:GithubAccount:1:5244267,jia
[...]
-github:GithubIssue:1:413968505,https://github.com/panjf2000/ants/issues/26,,26,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 [...]
-github:GithubIssue:1:419183961,https://github.com/panjf2000/ants/issues/27,,27,"
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""",,,DONE,closed,0,2019-04-05T14:05:20.000+00:00,2019-03-10T13:08:52.000+00:00,2019-0
[...]
-github:GithubIssue:1:419268851,https://github.com/panjf2000/ants/issues/28,,28,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
""",,,DONE,closed,0,2019-08-22T16:27:37.000+00:00,2019-03-11T02:24:41.000+00:00,2019-08-22T16:27:37.000+00:00,237002,,,0,0,0,github:GithubAccount:1:29243953,naiba,github:GithubAccount
[...]
-github:GithubIssue:1:424634533,https://github.com/panjf2000/ants/issues/29,,29,"
chinese ",""" chinese , chinese
👍\r\n\r\nhttps://github.com/panjf2000/ants/blob/master/pool.go#L124 chinese ,
chinese
?\r\n""",,,DONE,closed,0,2019-03-25T09:32:11.000+00:00,2019-03-24T16:52:21.000+00:00,2019-03-25T09:45:05.000+00:00,999,,,0,0,0,github:GithubAccount:1:8509898,prprprus,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,35,
-github:GithubIssue:1:429972115,https://github.com/panjf2000/ants/issues/31,,31,Add
go.mod,"""""",,,DONE,closed,0,2019-04-08T09:45:31.000+00:00,2019-04-05T23:50:36.000+00:00,2019-10-17T03:12:19.000+00:00,3474,,,0,0,0,github:GithubAccount:1:48135919,tsatke,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,37,
-github:GithubIssue:1:433564955,https://github.com/panjf2000/ants/issues/32,,32,"
chinese , chinese (0.0.x) chinese ?",""" chinese , chinese 。\r\n\r\n chinese
\r\n\r\n chinese , chinese
。""",,,DONE,closed,0,2019-04-21T07:16:26.000+00:00,2019-04-16T03:16:02.000+00:00,2019-04-21T07:16:26.000+00:00,7440,,,0,0,0,github:GithubAccount:1:7931755,zplzpl,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,38,
-github:GithubIssue:1:434069015,https://github.com/panjf2000/ants/issues/33,,33,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""",,,DONE,closed,0,2019-04-21T08:25:20.000+00:00,2019-04-17T02:55:11.000+00:00,2019-04-21T08:25:20.000+00:00,6090,,,0,0,0,github:GithubAccount:1:1284892,jjeffcaii,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_g
[...]
-github:GithubIssue:1:435486645,https://github.com/panjf2000/ants/issues/34,,34,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 st [...]
-github:GithubIssue:1:461280653,https://github.com/panjf2000/ants/issues/35,,35,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
。""",,,DONE,closed,0,2019-08-17T20:33:10.000+00:00,2019-06-27T03:11:49.000+00:00,2019-08-17T20:33:10.000+00:00,74481,,,0,0,0,github:GithubAccount:1:38849208,king526,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"
[...]
-github:GithubIssue:1:462631417,https://github.com/panjf2000/ants/issues/37,,37,"
chinese 。。。",""" chinese 3.9.9, chinese , chinese , chinese 1.0.0。 chinese 。
chinese
""",,,DONE,closed,0,2019-07-01T12:37:55.000+00:00,2019-07-01T10:17:15.000+00:00,2019-07-02T10:17:31.000+00:00,140,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,43,
-github:GithubIssue:1:472125082,https://github.com/panjf2000/ants/issues/38,,38,retrieveWorker
chinese revertWorker chinese ,"""func (p *Pool) retrieveWorker() *Worker
{\r\n\tvar w *Worker\r\n\r\n\t**p.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\n\t\tif cacheWorker := [...]
-github:GithubIssue:1:483164833,https://github.com/panjf2000/ants/issues/42,,42,"
chinese , chinese functional options chinese ",""" chinese \r\n chinese
functional options, chinese \r\n```\r\nants.NewPool(10)\r\n```\r\n chinese ,
chinese option, chinese , chinese options chinese 。 chinese option, chinese
\r\n```\r\nants.NewPool(10, ants.WithNonblocking(true))\r\n```\r\n chinese
。\r\n\r\n chinese Option chinese , chinese , chinese 。\r\n chinese
functional options chinese rob p [...]
-github:GithubIssue:1:483736247,https://github.com/panjf2000/ants/issues/43,,43,1.3.0
chinese ,"""Pool chinese (PanicHandler chinese ) chinese , chinese ,
chinese
。""",,,DONE,closed,0,2019-08-22T13:22:10.000+00:00,2019-08-22T02:29:34.000+00:00,2019-08-22T13:22:10.000+00:00,652,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,49,
-github:GithubIssue:1:484311063,https://github.com/panjf2000/ants/issues/44,,44,1.1.1
-> 1.2.0 chinese ,"""Pool.Release chinese
""",,,DONE,closed,0,2019-08-25T06:36:14.000+00:00,2019-08-23T03:27:38.000+00:00,2019-08-25T06:36:14.000+00:00,3068,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,github:GithubAccount:1:0,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,50,
+github:GithubIssue:1:346842831,https://github.com/panjf2000/ants/issues/5,,5,"
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 chines [...]
+github:GithubIssue:1:347255859,https://github.com/panjf2000/ants/issues/6,,6,"
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,DONE,closed,0,2018-08-04T10:18:41.000+00:00,2018-08-03T04:32:28.000+00:00,2018-08-04T10:18:41.000+00:00,1786,,,0,0,0,github:GithubAccount:1:13118848,lovelly,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,12,
+github:GithubIssue:1:348630179,https://github.com/panjf2000/ants/issues/7,,7,"
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 {\ [...]
+github:GithubIssue:1:356703393,https://github.com/panjf2000/ants/issues/10,,10,"
chinese worker chinese ",""" chinese cpu chinese
?""",,,DONE,closed,0,2018-09-29T11:45:00.000+00:00,2018-09-04T08:26:55.000+00:00,2018-09-29T11:45:00.000+00:00,36198,,,0,0,0,github:GithubAccount:1:11763614,Moonlight-Zhao,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,16,
+github:GithubIssue:1:364361014,https://github.com/panjf2000/ants/issues/12,,12,"
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
)""",,,DONE,closed,0,2018-09-28T06:05:58.000+00:00,2018-09-27T08:32:25.000+00:00,2019-04-21T08:19:58.000+00:00,1293,,,0,0,0,github:GithubAccount:1:29452204,edcismybrother,,,,,
[...]
+github:GithubIssue:1:381941219,https://github.com/panjf2000/ants/issues/17,,17,"
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. [...]
+github:GithubIssue:1:382039050,https://github.com/panjf2000/ants/issues/18,,18,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
?\""""",,,DONE,closed,0,2018-12-03T03:53:50.000+00:00,2018-11-19T02:59:53.000+00:00,2018-12-03T03:53:50.000+00:00,20213,,,0,0,0,github:GithubAccount:1:13944100,LinuxForY
[...]
+github:GithubIssue:1:382574800,https://github.com/panjf2000/ants/issues/20,,20,"
chinese
","""#""",,,DONE,closed,0,2019-01-25T15:34:03.000+00:00,2018-11-20T09:36:02.000+00:00,2019-01-25T15:34:03.000+00:00,95398,,,0,0,0,github:GithubAccount:1:5668717,kklinan,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,26,
+github:GithubIssue:1:388907811,https://github.com/panjf2000/ants/issues/21,,21,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 [...]
+github:GithubIssue:1:401277739,https://github.com/panjf2000/ants/issues/22,,22,"
chinese worker chinese PanicHandler ?",""" chinese Pool chinese
PanicHandler, chinese worker chinese recover chinese PanicHandler
chinese 。 chinese panic chinese
。""",,,DONE,closed,0,2019-01-22T05:41:34.000+00:00,2019-01-21T10:06:56.000+00:00,2019-01-22T05:41:34.000+00:00,1174,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github
[...]
+github:GithubIssue:1:402513849,https://github.com/panjf2000/ants/issues/24,,24,"
chinese ","""`Pool.Submit` chinese `PoolWithFunc.Server` chinese , chinese
worker, chinese 。 chinese , chinese
。""",,,DONE,closed,0,2019-08-20T10:56:30.000+00:00,2019-01-24T02:24:13.000+00:00,2019-08-20T10:56:30.000+00:00,300032,,,0,0,0,github:GithubAccount:1:5044825,tenfyzhong,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,30,
+github:GithubIssue:1:405951301,https://github.com/panjf2000/ants/issues/25,,25,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""",,,DONE,closed,0,2019-02-04T09:11:52.000+00:00,2019-02-02T05:43:38.000+00:00,2019-02-04T09:11:52.000+00:00,3088,,,0,0,0,github:GithubAccount:1:5244267,jia
[...]
+github:GithubIssue:1:413968505,https://github.com/panjf2000/ants/issues/26,,26,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 [...]
+github:GithubIssue:1:419183961,https://github.com/panjf2000/ants/issues/27,,27,"
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""",,,DONE,closed,0,2019-04-05T14:05:20.000+00:00,2019-03-10T13:08:52.000+00:00,2019-0
[...]
+github:GithubIssue:1:419268851,https://github.com/panjf2000/ants/issues/28,,28,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
""",,,DONE,closed,0,2019-08-22T16:27:37.000+00:00,2019-03-11T02:24:41.000+00:00,2019-08-22T16:27:37.000+00:00,237002,,,0,0,0,github:GithubAccount:1:29243953,naiba,,,,,"{""ConnectionId
[...]
+github:GithubIssue:1:424634533,https://github.com/panjf2000/ants/issues/29,,29,"
chinese ",""" chinese , chinese
👍\r\n\r\nhttps://github.com/panjf2000/ants/blob/master/pool.go#L124 chinese ,
chinese
?\r\n""",,,DONE,closed,0,2019-03-25T09:32:11.000+00:00,2019-03-24T16:52:21.000+00:00,2019-03-25T09:45:05.000+00:00,999,,,0,0,0,github:GithubAccount:1:8509898,prprprus,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,35,
+github:GithubIssue:1:429972115,https://github.com/panjf2000/ants/issues/31,,31,Add
go.mod,"""""",,,DONE,closed,0,2019-04-08T09:45:31.000+00:00,2019-04-05T23:50:36.000+00:00,2019-10-17T03:12:19.000+00:00,3474,,,0,0,0,github:GithubAccount:1:48135919,tsatke,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,37,
+github:GithubIssue:1:433564955,https://github.com/panjf2000/ants/issues/32,,32,"
chinese , chinese (0.0.x) chinese ?",""" chinese , chinese 。\r\n\r\n chinese
\r\n\r\n chinese , chinese
。""",,,DONE,closed,0,2019-04-21T07:16:26.000+00:00,2019-04-16T03:16:02.000+00:00,2019-04-21T07:16:26.000+00:00,7440,,,0,0,0,github:GithubAccount:1:7931755,zplzpl,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,38,
+github:GithubIssue:1:434069015,https://github.com/panjf2000/ants/issues/33,,33,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""",,,DONE,closed,0,2019-04-21T08:25:20.000+00:00,2019-04-17T02:55:11.000+00:00,2019-04-21T08:25:20.000+00:00,6090,,,0,0,0,github:GithubAccount:1:1284892,jjeffcaii,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,39,
+github:GithubIssue:1:435486645,https://github.com/panjf2000/ants/issues/34,,34,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 st [...]
+github:GithubIssue:1:461280653,https://github.com/panjf2000/ants/issues/35,,35,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
。""",,,DONE,closed,0,2019-08-17T20:33:10.000+00:00,2019-06-27T03:11:49.000+00:00,2019-08-17T20:33:10.000+00:00,74481,,,0,0,0,github:GithubAccount:1:38849208,king526,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_
[...]
+github:GithubIssue:1:462631417,https://github.com/panjf2000/ants/issues/37,,37,"
chinese 。。。",""" chinese 3.9.9, chinese , chinese , chinese 1.0.0。 chinese 。
chinese
""",,,DONE,closed,0,2019-07-01T12:37:55.000+00:00,2019-07-01T10:17:15.000+00:00,2019-07-02T10:17:31.000+00:00,140,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,43,
+github:GithubIssue:1:472125082,https://github.com/panjf2000/ants/issues/38,,38,retrieveWorker
chinese revertWorker chinese ,"""func (p *Pool) retrieveWorker() *Worker
{\r\n\tvar w *Worker\r\n\r\n\t**p.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\n\t\tif cacheWorker := [...]
+github:GithubIssue:1:483164833,https://github.com/panjf2000/ants/issues/42,,42,"
chinese , chinese functional options chinese ",""" chinese \r\n chinese
functional options, chinese \r\n```\r\nants.NewPool(10)\r\n```\r\n chinese ,
chinese option, chinese , chinese options chinese 。 chinese option, chinese
\r\n```\r\nants.NewPool(10, ants.WithNonblocking(true))\r\n```\r\n chinese
。\r\n\r\n chinese Option chinese , chinese , chinese 。\r\n chinese
functional options chinese rob p [...]
+github:GithubIssue:1:483736247,https://github.com/panjf2000/ants/issues/43,,43,1.3.0
chinese ,"""Pool chinese (PanicHandler chinese ) chinese , chinese ,
chinese
。""",,,DONE,closed,0,2019-08-22T13:22:10.000+00:00,2019-08-22T02:29:34.000+00:00,2019-08-22T13:22:10.000+00:00,652,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,49,
+github:GithubIssue:1:484311063,https://github.com/panjf2000/ants/issues/44,,44,1.1.1
-> 1.2.0 chinese ,"""Pool.Release chinese
""",,,DONE,closed,0,2019-08-25T06:36:14.000+00:00,2019-08-23T03:27:38.000+00:00,2019-08-25T06:36:14.000+00:00,3068,,,0,0,0,github:GithubAccount:1:8923413,choleraehyq,,,,,"{""ConnectionId"":1,""Name"":""panjf2000/ants""}",_raw_github_api_issues,50,
diff --git a/backend/plugins/github/tasks/issue_convertor.go
b/backend/plugins/github/tasks/issue_convertor.go
index e9465b57b..9aa6cccf4 100644
--- a/backend/plugins/github/tasks/issue_convertor.go
+++ b/backend/plugins/github/tasks/issue_convertor.go
@@ -80,9 +80,7 @@ func ConvertIssues(taskCtx plugin.SubTaskContext)
errors.Error {
Type: issue.StdType,
OriginalType: issue.Type,
OriginalStatus: issue.State,
- AssigneeId:
accountIdGen.Generate(data.Options.ConnectionId, issue.AssigneeId),
AssigneeName: issue.AssigneeName,
- CreatorId:
accountIdGen.Generate(data.Options.ConnectionId, issue.AuthorId),
CreatorName: issue.AuthorName,
LeadTimeMinutes: int64(issue.LeadTimeMinutes),
Url: issue.Url,
@@ -92,6 +90,12 @@ func ConvertIssues(taskCtx plugin.SubTaskContext)
errors.Error {
Severity: issue.Severity,
Component: issue.Component,
}
+ if issue.AssigneeId != 0 {
+ domainIssue.AssigneeId =
accountIdGen.Generate(data.Options.ConnectionId, issue.AssigneeId)
+ }
+ if issue.AuthorId != 0 {
+ domainIssue.CreatorId =
accountIdGen.Generate(data.Options.ConnectionId, issue.AuthorId)
+ }
if strings.ToUpper(issue.State) == "CLOSED" {
domainIssue.Status = ticket.DONE
} else {
diff --git a/backend/plugins/github_graphql/tasks/issue_collector.go
b/backend/plugins/github_graphql/tasks/issue_collector.go
index 3379d860b..f65cb5c6b 100644
--- a/backend/plugins/github_graphql/tasks/issue_collector.go
+++ b/backend/plugins/github_graphql/tasks/issue_collector.go
@@ -61,7 +61,7 @@ type GraphqlQueryIssue struct {
AssigneeList struct {
// FIXME now domain layer just support one assignee
Assignees []GraphqlInlineAccountQuery `graphql:"nodes"`
- } `graphql:"assignees(first: 1)"`
+ } `graphql:"assignees(first: 100)"`
Milestone *struct {
Number int
} `json:"milestone"`