diff --git a/.gitattributes b/.gitattributes index ff1fe4eae..0c23166c3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,12 +4,13 @@ # Collapse vendored and generated files on GitHub vendor/* linguist-vendored rules.mk linguist-vendored -*/vendor/* linguist-vendored +vendor/* linguist-vendored *.gen.* linguist-generated *.pb.go linguist-generated go.sum linguist-generated go.mod linguist-generated gen.sum linguist-generated +golden.*.* linguist-generated # Reduce conflicts on markdown files *.md merge=union diff --git a/go.mod b/go.mod index dc2c14925..9bd4459ae 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,7 @@ replace github.com/brianloveswords/airtable => github.com/moul/brianloveswords-a require ( github.com/cayleygraph/cayley v0.7.7 - github.com/cayleygraph/quad v1.1.0 - github.com/cespare/xxhash/v2 v2.1.1 // indirect + github.com/cayleygraph/quad v1.2.1 github.com/go-chi/chi v4.0.2+incompatible github.com/go-chi/render v1.0.1 github.com/gobuffalo/envy v1.8.1 // indirect @@ -22,23 +21,23 @@ require ( github.com/oklog/run v1.0.0 github.com/patrickmn/go-cache v2.1.0+incompatible github.com/peterbourgon/ff v1.6.1-0.20190916204019-6cd704ec2eeb - github.com/prometheus/client_golang v1.2.1 // indirect - github.com/prometheus/client_model v0.0.0-20191202183732-d1d2010b5bee // indirect - github.com/prometheus/procfs v0.0.8 // indirect + github.com/prometheus/client_golang v1.3.0 // indirect + github.com/rogpeppe/go-internal v1.5.1 // indirect github.com/rs/cors v1.7.0 + github.com/stretchr/testify v1.4.0 github.com/treastech/logger v0.0.0-20180705232552-e381e9ecf2e3 go.uber.org/atomic v1.5.1 // indirect go.uber.org/multierr v1.4.0 // indirect go.uber.org/zap v1.13.0 - golang.org/x/crypto v0.0.0-20191202143827-86a70503ff7e // indirect + golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876 // indirect golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f // indirect - golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933 // indirect + golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 // indirect golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 - golang.org/x/sys v0.0.0-20191128015809-6d18c012aee9 // indirect - golang.org/x/tools v0.0.0-20191203134012-c197fd4bf371 // indirect + golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8 // indirect + golang.org/x/tools v0.0.0-20191230220329-2aa90c603ae3 // indirect google.golang.org/appengine v1.6.5 // indirect - google.golang.org/genproto v0.0.0-20191203145615-049a07e0debe - google.golang.org/grpc v1.25.1 + google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb + google.golang.org/grpc v1.26.0 gopkg.in/yaml.v2 v2.2.7 gopkg.in/yaml.v3 v3.0.0-20191120175047-4206685974f2 // indirect moul.io/godev v1.3.0 diff --git a/go.sum b/go.sum index 08637f81b..c9b9a04b4 100644 --- a/go.sum +++ b/go.sum @@ -31,12 +31,12 @@ github.com/cayleygraph/cayley v0.7.7 h1:z+7xkAbg6bKiXJOtOkEG3zCm2K084sr/aGwFV7xc github.com/cayleygraph/cayley v0.7.7/go.mod h1:VUd+PInYf94/VY41ePeFtFyP99BAs953kFT4N+6F7Ko= github.com/cayleygraph/quad v1.1.0 h1:w1nXAmn+nz07+qlw89dke9LwWkYpeX+OcvfTvGQRBpM= github.com/cayleygraph/quad v1.1.0/go.mod h1:maWODEekEhrO0mdc9h5n/oP7cH1h/OTgqQ2qWbuI9M4= +github.com/cayleygraph/quad v1.2.1 h1:PqqP+F8BLICaAWoGvSlrx1U11pXEc2BBodmTv30uSLM= +github.com/cayleygraph/quad v1.2.1/go.mod h1:maWODEekEhrO0mdc9h5n/oP7cH1h/OTgqQ2qWbuI9M4= github.com/cenkalti/backoff v2.1.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/cespare/xxhash/v2 v2.1.0 h1:yTUvW7Vhb89inJ+8irsUqiWjh8iT6sQPZiQzI6ReGkA= -github.com/cespare/xxhash/v2 v2.1.0/go.mod h1:dgIUBU3pDso/gPgZ1osOZ0iQf77oPR28Tjxl5dIMyVM= github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= @@ -79,7 +79,7 @@ github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25Kn github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/flimzy/diff v0.1.5/go.mod h1:lFJtC7SPsK0EroDmGTSrdtWKAxOk3rO+q+e04LL05Hs= github.com/flimzy/diff v0.1.6/go.mod h1:lFJtC7SPsK0EroDmGTSrdtWKAxOk3rO+q+e04LL05Hs= @@ -194,7 +194,7 @@ github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= @@ -269,16 +269,16 @@ github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod github.com/prometheus/client_golang v0.9.3 h1:9iH4JKXLzFbOAdtqv/a+j8aewx2Y8lAjAydhbaScPF8= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.2.1 h1:JnMpQc6ppsNgw9QPAGF6Dod479itz7lvlsMzzNayLOI= -github.com/prometheus/client_golang v1.2.1/go.mod h1:XMU6Z2MjaRKVu/dC1qupJI9SiNkDYzz3xecMgSW/F+U= +github.com/prometheus/client_golang v1.3.0 h1:miYCvYqFXtl/J9FIy8eNpBfYthAEFg+Ys0XyUVEcDsc= +github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 h1:S/YWwWx/RA8rT8tKFRuGUZhuA90OyIBpPCXkcbwU8DE= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20191202183732-d1d2010b5bee h1:iBZPTYkGLvdu6+A5TsMUJQkQX9Ad4aCEnSQtdxPuTCQ= -github.com/prometheus/client_model v0.0.0-20191202183732-d1d2010b5bee/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.1.0 h1:ElTg5tNp4DqfV7UQjDqv2+RJlNzsDtvNAWccbItceIE= +github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.0 h1:7etb9YClo3a6HjLzfl6rIQaU+FDfi0VSX39io3aQ+DM= @@ -291,7 +291,6 @@ github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084 h1:sofwID9zm4tzrgykg80hfFph1mryUeLRsUfoocVVmRY= github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= github.com/prometheus/procfs v0.0.8 h1:+fpWZdT24pJBiqJdAwYBjPSk+5YmQzYNPYzQsdzLkt8= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= @@ -304,6 +303,8 @@ github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTE github.com/rogpeppe/go-internal v1.4.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.5.0 h1:Usqs0/lDK/NqTkvrmKSwA/3XkZAs7ZAW/eLeQ2MVBTw= github.com/rogpeppe/go-internal v1.5.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= +github.com/rogpeppe/go-internal v1.5.1 h1:asQ0uD7BN9RU5Im41SEEZTwCi/zAXdMOLS3npYaos2g= +github.com/rogpeppe/go-internal v1.5.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rs/cors v1.7.0 h1:+88SsELBHx5r+hZ8TCkggzSstaWNbDvThkVK8H6f9ik= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= @@ -386,10 +387,11 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc h1:c0o/qxkaO2LF5t6fQrT4b5hzyggAkLLlCUjqfRxd8Q4= golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191122220453-ac88ee75c92c h1:/nJuwDLoL/zrqY6gf57vxC+Pi+pZ8bfhpPkicO5H7W4= golang.org/x/crypto v0.0.0-20191122220453-ac88ee75c92c/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20191202143827-86a70503ff7e h1:egKlR8l7Nu9vHGWbcUV8lqR4987UfUbBd7GbhqGzNYU= -golang.org/x/crypto v0.0.0-20191202143827-86a70503ff7e/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876 h1:sKJQZMuxjOAR/Uo2LBfU90onWEf1dF4C+0hPJCc9Mpc= +golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= @@ -400,6 +402,7 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f h1:J5lckAjkw6qYlOZNj90mLYNTEKDvWeuc1yieZ8qUzUE= golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -417,8 +420,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20190628185345-da137c7871d7 h1:rTIdg5QFRR7XCaK4LCjBiPbx8j4DQRpdYMnGn/bJUEU= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191002035440-2ec189313ef0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933 h1:e6HwijUxhDe+hPNjZQQn9bA5PW3vNmnN64U2ZW759Lk= -golang.org/x/net v0.0.0-20191126235420-ef20fe5d7933/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a h1:tImsplftrFpALCYumobsd0K86vlAs/eXGFms2txfJfA= @@ -448,9 +451,9 @@ golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190614160838-b47fdc937951/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191009170203-06d7bd2c5f4f h1:hjzMYz/7Ea1mNKfOnFOfktR0mlA5jqhvywClCMHM/qw= golang.org/x/sys v0.0.0-20191009170203-06d7bd2c5f4f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191010194322-b09406accb47/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191128015809-6d18c012aee9 h1:ZBzSG/7F4eNKz2L3GE9o300RX0Az1Bw5HF7PDraD+qU= -golang.org/x/sys v0.0.0-20191128015809-6d18c012aee9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8 h1:JA8d3MPx/IToSyXZG/RhwYEtfrKO1Fxrqe8KrkiLXKM= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= @@ -476,10 +479,12 @@ golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f h1:kDxGY2VmgABOe55qheT/TFqUMtcTHnomIPS1iv3G4Ms= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191203134012-c197fd4bf371 h1:Cjq6sG3gnKDchzWy7ouGQklhxMtWvh4AhSNJ0qGIeo4= -golang.org/x/tools v0.0.0-20191203134012-c197fd4bf371/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191230220329-2aa90c603ae3 h1:2+KluhQfJ1YhW+TB1KrISS2SfiG1pLEoseB0D4VF/bo= +golang.org/x/tools v0.0.0-20191230220329-2aa90c603ae3/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898 h1:/atklqdjdhuosWIl6AIbOeHJjicWYPqR9bpxqxYG2pA= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.3.2/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= @@ -496,8 +501,8 @@ google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c h1:hrpEMCZ2O7DR5gC1n2AJGVhrwiEjOi35+jxtIuZpTMo= google.golang.org/genproto v0.0.0-20190927181202-20e1ac93f88c/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191203145615-049a07e0debe h1:0EkA3qqli9cSQy9bNxscnbYwbEs/z2YKoL0eOsAbcRc= -google.golang.org/genproto v0.0.0-20191203145615-049a07e0debe/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb h1:ADPHZzpzM4tk4V4S5cnCrr5SwzvlrPRmqqCuJDB8UTs= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= @@ -506,8 +511,8 @@ google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ij google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.24.0 h1:vb/1TCsVn3DcJlQ0Gs1yB1pKI6Do2/QNwxdKqmc/b0s= google.golang.org/grpc v1.24.0/go.mod h1:XDChyiUovWa60DnaeDeZmSW86xtLtjtZbwvSiRnRtcA= -google.golang.org/grpc v1.25.1 h1:wdKvqQk7IttEw92GoRyKG2IDrUIpgpj6H6m81yfeMW0= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0 h1:2dTRdpdFEEhJYQD8EMLB61nnrzSCTbG38PhqdhvOltg= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= diff --git a/internal/dvcore/run.go b/internal/dvcore/run.go index a4c5d64dc..3536b6271 100644 --- a/internal/dvcore/run.go +++ b/internal/dvcore/run.go @@ -195,7 +195,9 @@ func pullBatches(targets []multipmuri.Entity, h *cayley.Handle, githubToken stri logger.Warn("failed to get last updated issue", zap.Error(err)) } - ghOpts.Since = &since + if !since.IsZero() && since.Unix() > 0 { + ghOpts.Since = &since + } } githubprovider.FetchRepo(ctx, repo, githubToken, out, ghOpts) diff --git a/internal/dvcore/run_test.go b/internal/dvcore/run_test.go new file mode 100644 index 000000000..cb950a4d6 --- /dev/null +++ b/internal/dvcore/run_test.go @@ -0,0 +1,94 @@ +package dvcore + +import ( + "bytes" + "io/ioutil" + "os" + "testing" + + "github.com/cayleygraph/cayley/graph" + "github.com/cayleygraph/quad" + "github.com/stretchr/testify/assert" + "moul.io/depviz/internal/dvstore" + "moul.io/depviz/internal/testutil" + "moul.io/multipmuri" +) + +func TestPullAndSave(t *testing.T) { + if testing.Short() { + t.Skip("skipping slow test (--short)") + } + githubToken := os.Getenv("GITHUB_TOKEN") + if githubToken == "" { + t.Skip("missing GITHUB_TOKEN") + } + schema := dvstore.Schema() + gitlabToken := "" + logger := testutil.Logger(t) + + tests := []struct { + name string + targets []multipmuri.Entity + }{ + { + "moul-depviz-test", + []multipmuri.Entity{ + multipmuri.NewGitHubRepo("github.com", "moul", "depviz-test"), + }, + }, + { + "moulbot-depviz-test", + []multipmuri.Entity{ + multipmuri.NewGitHubRepo("github.com", "moul-bot", "depviz-test"), + }, + }, + { + "all-depviz-test", + []multipmuri.Entity{ + multipmuri.NewGitHubRepo("github.com", "moul", "depviz-test"), + multipmuri.NewGitHubRepo("github.com", "moul-bot", "depviz-test"), + }, + }, + } + + for _, test := range tests { + store, close := dvstore.TestingStore(t) + defer close() + changed, err := PullAndSave(test.targets, store, schema, githubToken, gitlabToken, false, logger) + assert.NoError(t, err, test.name) + assert.True(t, changed, test.name) + changed, err = PullAndSave(test.targets, store, schema, githubToken, gitlabToken, false, logger) + assert.NoError(t, err, test.name) + assert.False(t, changed, test.name) + changed, err = PullAndSave(test.targets, store, schema, githubToken, gitlabToken, true, logger) + assert.NoError(t, err, test.name) + assert.True(t, changed, test.name) + + var b bytes.Buffer + qr := graph.NewQuadStoreReader(store.QuadStore) + assert.NotNil(t, qr, test.name) + defer qr.Close() + + format := quad.FormatByName(dvstore.GoldenFormat) + assert.NotNil(t, format, test.name) + + qw := format.Writer(&b) + assert.NotNil(t, qw, test.name) + defer qw.Close() + + n, err := quad.Copy(qw, qr) + assert.Greater(t, n, 0, test.name) + assert.NoError(t, err, test.name) + + gp := dvstore.TestingGoldenDumpPath(t, test.name) + if testutil.UpdateGolden() { + t.Logf("update golden file: %s", gp) + err := ioutil.WriteFile(gp, b.Bytes(), 0644) + assert.NoError(t, err, test.name) + } + + g, err := ioutil.ReadFile(gp) + assert.NoError(t, err, test.name) + assert.Equal(t, string(g), b.String()) + } +} diff --git a/internal/dvstore/query_test.go b/internal/dvstore/query_test.go new file mode 100644 index 000000000..7bbb8d716 --- /dev/null +++ b/internal/dvstore/query_test.go @@ -0,0 +1,83 @@ +package dvstore + +import ( + "fmt" + "io/ioutil" + "strings" + "testing" + + _ "github.com/cayleygraph/quad/json" + "github.com/stretchr/testify/assert" + "moul.io/depviz/internal/dvparser" + "moul.io/depviz/internal/testutil" + "moul.io/godev" + "moul.io/multipmuri" +) + +func TestLoadTasks(t *testing.T) { + tests := []struct { + golden string + name string + filters LoadTasksFilters + expectedErr error + }{ + {"all-depviz-test", "theworld", LoadTasksFilters{TheWorld: true}, nil}, + {"all-depviz-test", "theworld-light", LoadTasksFilters{TheWorld: true, WithoutPRs: true, WithClosed: false, WithoutExternalDeps: true}, nil}, + {"all-depviz-test", "theworld-with-closed", LoadTasksFilters{TheWorld: true, WithClosed: true}, nil}, + {"all-depviz-test", "theworld-without-prs", LoadTasksFilters{TheWorld: true, WithoutPRs: true}, nil}, + {"all-depviz-test", "theworld-without-isolated", LoadTasksFilters{TheWorld: true, WithoutIsolated: true}, nil}, + {"all-depviz-test", "theworld-without-external-deps", LoadTasksFilters{TheWorld: true, WithoutExternalDeps: true}, nil}, + {"all-depviz-test", "theworld-all-flags", LoadTasksFilters{TheWorld: true, WithClosed: true, WithoutPRs: true, WithoutIsolated: true, WithoutExternalDeps: true}, nil}, + {"all-depviz-test", "moul-depviz-test", LoadTasksFilters{Targets: parseTargets(t, "moul/depviz-test")}, nil}, + {"all-depviz-test", "moulbot-depviz-test", LoadTasksFilters{Targets: parseTargets(t, "moul-bot/depviz-test")}, nil}, + {"all-depviz-test", "moul-and-moulbot-depviz-test", LoadTasksFilters{Targets: parseTargets(t, "moul/depviz-test, moul-bot/depviz-test")}, nil}, + } + alreadySeen := map[string]bool{} + for _, testptr := range tests { + test := testptr + name := fmt.Sprintf("%s/%s", test.golden, test.name) + gp := TestingGoldenJSONPath(t, name) + if _, found := alreadySeen[gp]; found { + t.Fatalf("duplicate key: %q (golden files conflict)", gp) + } + alreadySeen[gp] = true + + t.Run(name, func(t *testing.T) { + t.Parallel() + logger := testutil.Logger(t) + store, close := TestingGoldenStore(t, test.golden) + defer close() + tasks, err := LoadTasks(store, schemaConfig, test.filters, logger) + assert.Equal(t, test.expectedErr, err) + if err != nil { + return + } + assert.NotNil(t, tasks) + assert.NoError(t, err) + + actual := godev.JSON(test.filters) + "\n" + for _, task := range tasks { + actual += godev.JSON(task) + "\n" + } + + if testutil.UpdateGolden() { + t.Logf("update golden file: %s", gp) + err := ioutil.WriteFile(gp, []byte(actual), 0644) + assert.NoError(t, err, name) + } + + g, err := ioutil.ReadFile(gp) + assert.NoError(t, err, name) + assert.Equal(t, len(string(g)), len(actual), gp) + }) + } +} + +func parseTargets(t *testing.T, input string) []multipmuri.Entity { + t.Helper() + targets, err := dvparser.ParseTargets(strings.Split(input, ", ")) + if !assert.NoError(t, err) { + t.Fatalf("parse targets: %v", input) + } + return targets +} diff --git a/internal/dvstore/testdata/.gitkeep b/internal/dvstore/testdata/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/internal/dvstore/testdata/golden.all-depviz-test.pq b/internal/dvstore/testdata/golden.all-depviz-test.pq new file mode 100644 index 000000000..1d8214ec5 Binary files /dev/null and b/internal/dvstore/testdata/golden.all-depviz-test.pq differ diff --git a/internal/dvstore/testdata/golden.all-depviz-test_moul-and-moulbot-depviz-test.json b/internal/dvstore/testdata/golden.all-depviz-test_moul-and-moulbot-depviz-test.json new file mode 100644 index 000000000..aae7f5cb3 --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_moul-and-moulbot-depviz-test.json @@ -0,0 +1,52 @@ +{"Targets":[{"Project":{}},{"Project":{}}],"TheWorld":false,"WithClosed":false,"WithoutIsolated":false,"WithoutPRs":false,"WithoutExternalDeps":false} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/1","created_at":"2019-08-06T15:35:49Z","updated_at":"2019-08-06T15:35:49Z","local_id":"moul/depviz-test#1","kind":1,"title":"I'm a standard issue","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/11","created_at":"2019-11-04T11:59:52Z","updated_at":"2019-11-04T12:05:12Z","local_id":"moul/depviz-test#11","kind":1,"title":"test short names","description":"https://github.com/moul/depviz-test/issues/2\r\nhttps://github.com/moul/depviz-test/issues/10\r\nhttps://github.com/moul/depviz-test-two-issues/pull/4\r\nhttps://github.com/moul/depviz-test-two-issues/pull/3\r\nhttps://github.com/moul/depviz-test-two-issues/projects/1#card-28544696\r\nhttps://github.com/moul/depviz-test-two-issues/milestone/1\r\nhttps://github.com/moul\r\nhttps://github.com/berty","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_moul-depviz-test.json b/internal/dvstore/testdata/golden.all-depviz-test_moul-depviz-test.json new file mode 100644 index 000000000..0c4b757f1 --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_moul-depviz-test.json @@ -0,0 +1,31 @@ +{"Targets":[{"Project":{}}],"TheWorld":false,"WithClosed":false,"WithoutIsolated":false,"WithoutPRs":false,"WithoutExternalDeps":false} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/1","created_at":"2019-08-06T15:35:49Z","updated_at":"2019-08-06T15:35:49Z","local_id":"moul/depviz-test#1","kind":1,"title":"I'm a standard issue","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/11","created_at":"2019-11-04T11:59:52Z","updated_at":"2019-11-04T12:05:12Z","local_id":"moul/depviz-test#11","kind":1,"title":"test short names","description":"https://github.com/moul/depviz-test/issues/2\r\nhttps://github.com/moul/depviz-test/issues/10\r\nhttps://github.com/moul/depviz-test-two-issues/pull/4\r\nhttps://github.com/moul/depviz-test-two-issues/pull/3\r\nhttps://github.com/moul/depviz-test-two-issues/projects/1#card-28544696\r\nhttps://github.com/moul/depviz-test-two-issues/milestone/1\r\nhttps://github.com/moul\r\nhttps://github.com/berty","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_moulbot-depviz-test.json b/internal/dvstore/testdata/golden.all-depviz-test_moulbot-depviz-test.json new file mode 100644 index 000000000..320d4ed8c --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_moulbot-depviz-test.json @@ -0,0 +1,22 @@ +{"Targets":[{"Project":{}}],"TheWorld":false,"WithClosed":false,"WithoutIsolated":false,"WithoutPRs":false,"WithoutExternalDeps":false} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_theworld-all-flags.json b/internal/dvstore/testdata/golden.all-depviz-test_theworld-all-flags.json new file mode 100644 index 000000000..3099142bd --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_theworld-all-flags.json @@ -0,0 +1,14 @@ +{"Targets":null,"TheWorld":true,"WithClosed":true,"WithoutIsolated":true,"WithoutPRs":true,"WithoutExternalDeps":true} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_theworld-light.json b/internal/dvstore/testdata/golden.all-depviz-test_theworld-light.json new file mode 100644 index 000000000..e7c8e63ba --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_theworld-light.json @@ -0,0 +1,18 @@ +{"Targets":null,"TheWorld":true,"WithClosed":false,"WithoutIsolated":false,"WithoutPRs":true,"WithoutExternalDeps":true} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/1","created_at":"2019-08-06T15:35:49Z","updated_at":"2019-08-06T15:35:49Z","local_id":"moul/depviz-test#1","kind":1,"title":"I'm a standard issue","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/11","created_at":"2019-11-04T11:59:52Z","updated_at":"2019-11-04T12:05:12Z","local_id":"moul/depviz-test#11","kind":1,"title":"test short names","description":"https://github.com/moul/depviz-test/issues/2\r\nhttps://github.com/moul/depviz-test/issues/10\r\nhttps://github.com/moul/depviz-test-two-issues/pull/4\r\nhttps://github.com/moul/depviz-test-two-issues/pull/3\r\nhttps://github.com/moul/depviz-test-two-issues/projects/1#card-28544696\r\nhttps://github.com/moul/depviz-test-two-issues/milestone/1\r\nhttps://github.com/moul\r\nhttps://github.com/berty","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_theworld-with-closed.json b/internal/dvstore/testdata/golden.all-depviz-test_theworld-with-closed.json new file mode 100644 index 000000000..d179c91a2 --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_theworld-with-closed.json @@ -0,0 +1,60 @@ +{"Targets":null,"TheWorld":true,"WithClosed":true,"WithoutIsolated":false,"WithoutPRs":false,"WithoutExternalDeps":false} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/1","created_at":"2019-08-06T15:35:49Z","updated_at":"2019-08-06T15:35:49Z","local_id":"moul/depviz-test#1","kind":1,"title":"I'm a standard issue","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/11","created_at":"2019-11-04T11:59:52Z","updated_at":"2019-11-04T12:05:12Z","local_id":"moul/depviz-test#11","kind":1,"title":"test short names","description":"https://github.com/moul/depviz-test/issues/2\r\nhttps://github.com/moul/depviz-test/issues/10\r\nhttps://github.com/moul/depviz-test-two-issues/pull/4\r\nhttps://github.com/moul/depviz-test-two-issues/pull/3\r\nhttps://github.com/moul/depviz-test-two-issues/projects/1#card-28544696\r\nhttps://github.com/moul/depviz-test-two-issues/milestone/1\r\nhttps://github.com/moul\r\nhttps://github.com/berty","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-external-deps.json b/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-external-deps.json new file mode 100644 index 000000000..a87a53515 --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-external-deps.json @@ -0,0 +1,18 @@ +{"Targets":null,"TheWorld":true,"WithClosed":false,"WithoutIsolated":false,"WithoutPRs":false,"WithoutExternalDeps":true} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/1","created_at":"2019-08-06T15:35:49Z","updated_at":"2019-08-06T15:35:49Z","local_id":"moul/depviz-test#1","kind":1,"title":"I'm a standard issue","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/11","created_at":"2019-11-04T11:59:52Z","updated_at":"2019-11-04T12:05:12Z","local_id":"moul/depviz-test#11","kind":1,"title":"test short names","description":"https://github.com/moul/depviz-test/issues/2\r\nhttps://github.com/moul/depviz-test/issues/10\r\nhttps://github.com/moul/depviz-test-two-issues/pull/4\r\nhttps://github.com/moul/depviz-test-two-issues/pull/3\r\nhttps://github.com/moul/depviz-test-two-issues/projects/1#card-28544696\r\nhttps://github.com/moul/depviz-test-two-issues/milestone/1\r\nhttps://github.com/moul\r\nhttps://github.com/berty","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-isolated.json b/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-isolated.json new file mode 100644 index 000000000..4ad898d93 --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-isolated.json @@ -0,0 +1,14 @@ +{"Targets":null,"TheWorld":true,"WithClosed":false,"WithoutIsolated":true,"WithoutPRs":false,"WithoutExternalDeps":false} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-prs.json b/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-prs.json new file mode 100644 index 000000000..86506126a --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_theworld-without-prs.json @@ -0,0 +1,52 @@ +{"Targets":null,"TheWorld":true,"WithClosed":false,"WithoutIsolated":false,"WithoutPRs":true,"WithoutExternalDeps":false} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/1","created_at":"2019-08-06T15:35:49Z","updated_at":"2019-08-06T15:35:49Z","local_id":"moul/depviz-test#1","kind":1,"title":"I'm a standard issue","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/11","created_at":"2019-11-04T11:59:52Z","updated_at":"2019-11-04T12:05:12Z","local_id":"moul/depviz-test#11","kind":1,"title":"test short names","description":"https://github.com/moul/depviz-test/issues/2\r\nhttps://github.com/moul/depviz-test/issues/10\r\nhttps://github.com/moul/depviz-test-two-issues/pull/4\r\nhttps://github.com/moul/depviz-test-two-issues/pull/3\r\nhttps://github.com/moul/depviz-test-two-issues/projects/1#card-28544696\r\nhttps://github.com/moul/depviz-test-two-issues/milestone/1\r\nhttps://github.com/moul\r\nhttps://github.com/berty","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.all-depviz-test_theworld.json b/internal/dvstore/testdata/golden.all-depviz-test_theworld.json new file mode 100644 index 000000000..8c867337d --- /dev/null +++ b/internal/dvstore/testdata/golden.all-depviz-test_theworld.json @@ -0,0 +1,52 @@ +{"Targets":null,"TheWorld":true,"WithClosed":false,"WithoutIsolated":false,"WithoutPRs":false,"WithoutExternalDeps":false} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/1","created_at":"2019-08-08T18:55:07Z","updated_at":"2019-08-08T18:55:07Z","local_id":"moul-bot/depviz-test#1","kind":1,"title":"Issue 1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/2","created_at":"2019-08-08T18:55:13Z","updated_at":"2019-08-08T18:55:13Z","local_id":"moul-bot/depviz-test#2","kind":1,"title":"Issue 2","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/3","created_at":"2019-08-08T18:55:19Z","updated_at":"2019-08-08T18:55:19Z","local_id":"moul-bot/depviz-test#3","kind":1,"title":"Issue 3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test"} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/4","created_at":"2019-08-08T18:55:34Z","updated_at":"2019-08-08T18:55:34Z","local_id":"moul-bot/depviz-test#4","kind":1,"title":"Issue #4","description":"Depends on #1 \r\nDepends on #2 \r\nDepends on #3","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/1","https://github.com/moul-bot/depviz-test/issues/2","https://github.com/moul-bot/depviz-test/issues/3"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/5","created_at":"2019-08-08T18:55:47Z","updated_at":"2019-08-08T18:55:47Z","local_id":"moul-bot/depviz-test#5","kind":1,"title":"Issue 5","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/6","created_at":"2019-08-08T18:56:04Z","updated_at":"2019-08-08T18:56:04Z","local_id":"moul-bot/depviz-test#6","kind":1,"title":"Issue 6","description":"Depends on #4","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul-bot/depviz-test/issues/7","created_at":"2019-08-08T18:56:14Z","updated_at":"2019-09-03T09:07:03Z","local_id":"moul-bot/depviz-test#7","kind":1,"title":"Issue 7","description":"Depends on #4\r\nDepends on https://github.com/moul/depviz-test/milestone/1","driver":1,"state":1,"has_author":"https://github.com/moul-bot","has_owner":"https://github.com/moul-bot/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/4","https://github.com/moul/depviz-test/milestone/1"]} +{"id":"https://github.com/moul/depviz-test/issues/1","created_at":"2019-08-06T15:35:49Z","updated_at":"2019-08-06T15:35:49Z","local_id":"moul/depviz-test#1","kind":1,"title":"I'm a standard issue","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/10","created_at":"2019-09-03T08:51:47Z","updated_at":"2019-12-03T17:35:06Z","local_id":"moul/depviz-test#10","kind":1,"title":"New test","description":"Depends on #4 \r\nDepends on #6 \r\nBlocks #7 \r\nDepends on https://github.com/moul-bot/depviz-test/issues/5","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul-bot/depviz-test/issues/5","https://github.com/moul/depviz-test/issues/4","https://github.com/moul/depviz-test/issues/6"],"is_blocking":["https://github.com/moul/depviz-test/issues/7"]} +{"id":"https://github.com/moul/depviz-test/issues/11","created_at":"2019-11-04T11:59:52Z","updated_at":"2019-11-04T12:05:12Z","local_id":"moul/depviz-test#11","kind":1,"title":"test short names","description":"https://github.com/moul/depviz-test/issues/2\r\nhttps://github.com/moul/depviz-test/issues/10\r\nhttps://github.com/moul/depviz-test-two-issues/pull/4\r\nhttps://github.com/moul/depviz-test-two-issues/pull/3\r\nhttps://github.com/moul/depviz-test-two-issues/projects/1#card-28544696\r\nhttps://github.com/moul/depviz-test-two-issues/milestone/1\r\nhttps://github.com/moul\r\nhttps://github.com/berty","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/2","created_at":"2019-08-06T15:36:09Z","updated_at":"2019-10-29T08:59:41Z","local_id":"moul/depviz-test#2","kind":1,"title":"I'm an issue with a milestone, some projects, and some labels","driver":1,"completed_at":"2019-10-29T08:59:41Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","has_label":["https://github.com/moul/depviz-test/labels/bug","https://github.com/moul/depviz-test/labels/documentation","https://github.com/moul/depviz-test/labels/enhancement"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/3","created_at":"2019-08-06T15:36:45Z","updated_at":"2019-08-06T15:36:45Z","local_id":"moul/depviz-test#3","kind":1,"title":"I'm an issue that depends on another","description":"Depends on #2 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/4","created_at":"2019-08-06T15:36:58Z","updated_at":"2019-08-06T15:36:58Z","local_id":"moul/depviz-test#4","kind":1,"title":"I'm an issue that also depends on another","description":"Depends on #2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/5","created_at":"2019-08-06T15:37:21Z","updated_at":"2019-10-29T08:59:38Z","local_id":"moul/depviz-test#5","kind":1,"title":"I'm an issue that depends on multiple issues","description":"Depends on #4 \r\nDepends on #3 ","driver":1,"completed_at":"2019-10-29T08:59:38Z","state":2,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/4"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/6","created_at":"2019-08-06T15:37:44Z","updated_at":"2019-08-06T15:37:44Z","local_id":"moul/depviz-test#6","kind":1,"title":"I'm an issue that depends on the same issue at different levels","description":"Depends on #2 \r\nDepends on #3 \r\nDepends on #5 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","is_depending_on":["https://github.com/moul/depviz-test/issues/2","https://github.com/moul/depviz-test/issues/3","https://github.com/moul/depviz-test/issues/5"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/7","created_at":"2019-08-06T15:38:05Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#7","kind":1,"title":"I'm an issue that depends on an issue that itself depends on multiple ones","description":"Depends on #6 ","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/6"]} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/8","created_at":"2019-08-06T15:40:58Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#8","kind":1,"title":"An issue in an isolated group of 2","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1"} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/issues/9","created_at":"2019-08-06T15:41:14Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test#9","kind":1,"title":"Another issue in an isolated group of 2","description":"Depends on #8","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test","has_milestone":"https://github.com/moul/depviz-test/milestone/1","is_depending_on":["https://github.com/moul/depviz-test/issues/8"]} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} +{"id":"https://github.com/moul/depviz-test/milestone/1","created_at":"2019-08-06T15:36:28Z","updated_at":"2019-11-19T17:30:28Z","local_id":"moul/depviz-test/milestone/1","kind":3,"title":"lorem-ipsum-milestone","driver":1,"state":1,"has_author":"https://github.com/moul","has_owner":"https://github.com/moul/depviz-test"} diff --git a/internal/dvstore/testdata/golden.moul-depviz-test.pq b/internal/dvstore/testdata/golden.moul-depviz-test.pq new file mode 100644 index 000000000..bfa2c7794 Binary files /dev/null and b/internal/dvstore/testdata/golden.moul-depviz-test.pq differ diff --git a/internal/dvstore/testdata/golden.moulbot-depviz-test.pq b/internal/dvstore/testdata/golden.moulbot-depviz-test.pq new file mode 100644 index 000000000..1653f834f Binary files /dev/null and b/internal/dvstore/testdata/golden.moulbot-depviz-test.pq differ diff --git a/internal/dvstore/testing.go b/internal/dvstore/testing.go new file mode 100644 index 000000000..f5d5efd2c --- /dev/null +++ b/internal/dvstore/testing.go @@ -0,0 +1,89 @@ +package dvstore + +import ( + "io/ioutil" + "os" + "path/filepath" + "strings" + "testing" + + "github.com/cayleygraph/cayley" + "github.com/cayleygraph/cayley/graph" + _ "github.com/cayleygraph/cayley/graph/kv/bolt" // required by cayley + "github.com/cayleygraph/quad" + _ "github.com/cayleygraph/quad/gml" // required by cayley + _ "github.com/cayleygraph/quad/graphml" // required by cayley + _ "github.com/cayleygraph/quad/json" // required by cayley + _ "github.com/cayleygraph/quad/jsonld" // required by cayley + _ "github.com/cayleygraph/quad/nquads" // required by cayley + _ "github.com/cayleygraph/quad/pquads" // required by cayley + "github.com/stretchr/testify/assert" +) + +const GoldenFormat = "pquads" + +func TestingGoldenDumpPath(t *testing.T, name string) string { + return filepath.Join("..", "dvstore", "testdata", "golden."+name+".pq") +} + +func TestingGoldenJSONPath(t *testing.T, name string) string { + nameWithoutSlashes := strings.Replace(name, "/", "_", -1) + return filepath.Join("..", "dvstore", "testdata", "golden."+nameWithoutSlashes+".json") +} + +func TestingGoldenStore(t *testing.T, name string) (*cayley.Handle, func()) { + t.Helper() + + store, closeFunc := TestingStore(t) + + gp := TestingGoldenDumpPath(t, name) + f, err := os.Open(gp) + assert.NoError(t, err, name) + defer f.Close() + + qw, err := store.NewQuadWriter() + assert.NoError(t, err, name) + assert.NotNil(t, qw, name) + defer qw.Close() + + format := quad.FormatByName(GoldenFormat) + assert.NotNil(t, format, name) + + qr := format.Reader(f) + assert.NotNil(t, qr, name) + defer qr.Close() + + n, err := quad.CopyBatch(qw, qr, quad.DefaultBatch) + assert.NoError(t, err, name) + assert.Greater(t, n, 0, name) + + return store, closeFunc +} + +func TestingStore(t *testing.T) (*cayley.Handle, func()) { + t.Helper() + + dir, err := ioutil.TempDir("", "depviz") + if !assert.NoError(t, err) { + t.Fatal("create temp dir") + } + + err = graph.InitQuadStore("bolt", dir, nil) + if !assert.NoError(t, err) { + t.Fatal("init quadstore") + } + + store, err := cayley.NewGraph("bolt", dir, nil) + if !assert.NoError(t, err) { + t.Fatal("init cayley") + } + + closeFunc := func() { + if store != nil { + _ = store.Close() + } + _ = os.RemoveAll(dir) + } + + return store, closeFunc +} diff --git a/internal/dvstore/testing_test.go b/internal/dvstore/testing_test.go new file mode 100644 index 000000000..24a9e56b9 --- /dev/null +++ b/internal/dvstore/testing_test.go @@ -0,0 +1,30 @@ +package dvstore + +import ( + "context" + "testing" + + "github.com/cayleygraph/cayley/schema" + "github.com/stretchr/testify/assert" +) + +var schemaConfig *schema.Config + +func init() { + schemaConfig = Schema() +} + +func TestTestingGoldenStore(t *testing.T) { + store, close := TestingGoldenStore(t, "all-depviz-test") + assert.NotNil(t, store) + defer close() + + ctx := context.Background() + it := store.QuadsAllIterator() + count := 0 + for it.Next(ctx) { + count++ + } + // FIXME: check if contain some specific data + assert.Greater(t, count, 0) +} diff --git a/internal/testutil/doc.go b/internal/testutil/doc.go new file mode 100644 index 000000000..b17ae8ae2 --- /dev/null +++ b/internal/testutil/doc.go @@ -0,0 +1 @@ +package testutil // import "moul.io/depviz/internal/testutil" diff --git a/internal/testutil/golden.go b/internal/testutil/golden.go new file mode 100644 index 000000000..30453ab8d --- /dev/null +++ b/internal/testutil/golden.go @@ -0,0 +1,9 @@ +package testutil + +import "flag" + +var update = flag.Bool("update", false, "update golden files") + +func UpdateGolden() bool { + return *update +} diff --git a/internal/testutil/logging.go b/internal/testutil/logging.go new file mode 100644 index 000000000..4a56c0f03 --- /dev/null +++ b/internal/testutil/logging.go @@ -0,0 +1,29 @@ +package testutil + +import ( + "flag" + "testing" + + "go.uber.org/zap" + "go.uber.org/zap/zapcore" +) + +var debug = flag.Bool("debug", false, "more verbose logging") + +func Logger(t *testing.T) *zap.Logger { + t.Helper() + if !*debug { + return zap.NewNop() + } + + config := zap.NewDevelopmentConfig() + config.DisableStacktrace = true + config.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder + config.Level.SetLevel(zap.DebugLevel) + logger, err := config.Build() + if err != nil { + t.Errorf("debug logger: %v", err) + return zap.NewNop() + } + return logger +} diff --git a/internal/testutil/skip.go b/internal/testutil/skip.go new file mode 100644 index 000000000..096107649 --- /dev/null +++ b/internal/testutil/skip.go @@ -0,0 +1,14 @@ +package testutil + +import ( + "fmt" + "os" + "testing" +) + +func SkipSlow(t *testing.T) { + t.Helper() + if os.Getenv("SKIP_SLOW_TESTS") == "1" { + t.Skip(fmt.Sprintf("slow test skipped")) + } +} diff --git a/tool/go.mod b/tool/go.mod index 876c7c259..b57003e68 100644 --- a/tool/go.mod +++ b/tool/go.mod @@ -6,8 +6,8 @@ require ( github.com/gilliek/go-opml v1.0.0 github.com/golang/protobuf v1.3.2 // indirect github.com/google/go-github/v28 v28.1.1 - golang.org/x/crypto v0.0.0-20191122220453-ac88ee75c92c // indirect - golang.org/x/net v0.0.0-20191125084936-ffdde1057850 // indirect - golang.org/x/oauth2 v0.0.0-20191122200657-5d9234df094c + golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876 // indirect + golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 // indirect + golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 google.golang.org/appengine v1.6.5 // indirect ) diff --git a/tool/go.sum b/tool/go.sum index e5f30a8f1..8e14e1ce8 100644 --- a/tool/go.sum +++ b/tool/go.sum @@ -12,19 +12,19 @@ github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASu github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 h1:VklqNMn3ovrHsnt90PveolxSbWFaJdECFbxSq0Mqo2M= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191122220453-ac88ee75c92c h1:/nJuwDLoL/zrqY6gf57vxC+Pi+pZ8bfhpPkicO5H7W4= -golang.org/x/crypto v0.0.0-20191122220453-ac88ee75c92c/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876 h1:sKJQZMuxjOAR/Uo2LBfU90onWEf1dF4C+0hPJCc9Mpc= +golang.org/x/crypto v0.0.0-20191227163750-53104e6ec876/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20191125084936-ffdde1057850 h1:Vq85/r8R9IdcUHmZ0/nQlUg1v15rzvQ2sHdnZAj/x7s= -golang.org/x/net v0.0.0-20191125084936-ffdde1057850/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20191122200657-5d9234df094c h1:HjRaKPaiWks0f5tA6ELVF7ZfqSppfPwOEEAvsrKUTO4= -golang.org/x/oauth2 v0.0.0-20191122200657-5d9234df094c/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 h1:pE8b58s1HRDMi8RDc79m0HISf9D4TzseP40cEA6IGfs= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 h1:bjcUS9ztw9kFmmIxJInhon/0Is3p+EHBKNgquIzo1OI= golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=