aframe-babia-components 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/filters/babia-selector.js +256 -79
- package/components/filters/babia-treebuilder.js +1 -2
- package/components/geometries/babia-cyl.js +180 -0
- package/components/others/assets/tooltip.png +0 -0
- package/components/others/babia-camera.js +195 -0
- package/components/others/babia-controls.js +56 -31
- package/components/others/babia-navigator.js +55 -49
- package/components/others/babia-range-selector.js +208 -0
- package/components/others/babia-slider.js +36 -8
- package/components/others/babia-ui.js +246 -73
- package/components/others/common.js +60 -73
- package/components/queriers/babia-querycsv.js +96 -0
- package/components/queriers/babia-queryes.js +203 -132
- package/components/visualizers/babia-bars.js +4 -35
- package/components/visualizers/babia-barsmap.js +2 -30
- package/components/visualizers/babia-boats.js +92 -100
- package/components/visualizers/babia-bubbles.js +9 -26
- package/components/visualizers/babia-cyls.js +197 -201
- package/components/visualizers/babia-cylsmap.js +171 -241
- package/components/visualizers/babia-doughnut.js +2 -28
- package/components/visualizers/babia-network.js +191 -124
- package/components/visualizers/babia-pie.js +2 -30
- package/dist/aframe-babia-components.js +21678 -19529
- package/dist/aframe-babia-components.min.js +7 -1
- package/dist/aframe-babia-components.min.js.map +1 -1
- package/docs/APIs/CHARTS.md +10 -4
- package/docs/APIs/DATAMANAGEMENT.md +7 -0
- package/docs/APIs/OTHERS.md +27 -0
- package/docs/APIs/QUERIERS.md +16 -0
- package/docs/RELEASE_NOTES.md +32 -21
- package/docs/Tutorials/multiuser.md +47 -2
- package/examples/assets/door/New Bitmap Image.jpg +0 -0
- package/examples/assets/door/door.mtl +26 -0
- package/examples/assets/door/door.obj +6927 -0
- package/examples/assets/popups/0.png +0 -0
- package/examples/assets/popups/1.png +0 -0
- package/examples/assets/popups/10.png +0 -0
- package/examples/assets/popups/2.png +0 -0
- package/examples/assets/popups/3.png +0 -0
- package/examples/assets/popups/4.png +0 -0
- package/examples/assets/popups/5.png +0 -0
- package/examples/assets/popups/6.png +0 -0
- package/examples/assets/popups/7.png +0 -0
- package/examples/assets/popups/8.png +0 -0
- package/examples/assets/popups/9.png +0 -0
- package/examples/assets/popups/close.jpg +0 -0
- package/examples/assets/popups/info.jpg +0 -0
- package/examples/assets/textures/brownwall.png +0 -0
- package/examples/assets/textures/concrete.png +0 -0
- package/examples/assets/textures/white-wall-texture.jpg +0 -0
- package/examples/charts/cyls/index.html +13 -4
- package/examples/charts/cyls/primitive.html +76 -0
- package/examples/charts/cylsmap/index.html +14 -5
- package/examples/charts_querier/bars_querier/data.csv +10 -0
- package/examples/charts_querier/bars_querier/index_csv.html +80 -0
- package/examples/dashboard/chaoss-dashboards.html +259 -0
- package/examples/dashboard/chaoss-issues.html +248 -0
- package/examples/dashboard/chaoss-pr.html +248 -0
- package/examples/dashboard/index.html +247 -0
- package/examples/dashboard/issues_queries/80-percent-open-time.json +123 -0
- package/examples/dashboard/issues_queries/issues-by-organization.json +107 -0
- package/examples/dashboard/issues_queries/issues.json +117 -0
- package/examples/dashboard/issues_queries/median-open-time.json +123 -0
- package/examples/dashboard/issues_queries/organizations.json +130 -0
- package/examples/dashboard/issues_queries/projects.json +130 -0
- package/examples/dashboard/issues_queries/repositories.json +130 -0
- package/examples/dashboard/issues_queries/status.json +107 -0
- package/examples/dashboard/issues_queries/submitter.json +125 -0
- package/examples/dashboard/issues_queries/submitters.json +113 -0
- package/examples/dashboard/pullrequests_queries/80-percent-open-time.json +123 -0
- package/examples/dashboard/pullrequests_queries/median-open-time.json +123 -0
- package/examples/dashboard/pullrequests_queries/organizations.json +130 -0
- package/examples/dashboard/pullrequests_queries/projects.json +130 -0
- package/examples/dashboard/pullrequests_queries/pull-requests-by-organization.json +107 -0
- package/examples/dashboard/pullrequests_queries/pull-requests.json +117 -0
- package/examples/dashboard/pullrequests_queries/repositories.json +130 -0
- package/examples/dashboard/pullrequests_queries/status.json +107 -0
- package/examples/dashboard/pullrequests_queries/submitter.json +125 -0
- package/examples/dashboard/pullrequests_queries/submitters.json +113 -0
- package/examples/dashboard/range.html +88 -0
- package/examples/dashboard/template.html +136 -0
- package/examples/demos/1.0.11/index_multiuser_ui.html +1 -1
- package/examples/multi_bars/data.json +14 -0
- package/examples/multi_bars/data2.json +15 -0
- package/examples/multi_bars/data3.json +23 -0
- package/examples/multi_bars/easyrtc.js +11984 -0
- package/examples/multi_bars/index.html +97 -0
- package/examples/multi_bars/index1.html +111 -0
- package/examples/multi_bars/index2.html +102 -0
- package/examples/multi_bars/index3.html +104 -0
- package/examples/multi_boats/data3.json +174 -0
- package/examples/multi_boats/data4.json +192 -0
- package/examples/multi_boats/{index.html → index_multi_boats.html} +50 -55
- package/examples/multi_boats/jetuml.html +124 -115
- package/examples/multi_boats/jetuml_evolution_experiment.html +419 -0
- package/examples/multi_boats/only_queryjson.html +132 -0
- package/examples/multi_boats/only_queryjson2.html +167 -0
- package/examples/multi_boats/only_queryjson3.html +165 -0
- package/examples/multi_boats/queryjson_treebuilder.html +132 -0
- package/examples/multi_boats/with_selector.html +121 -111
- package/examples/multiuser/choose_avatar/index.html +18 -8
- package/examples/selector_boats/jetuml_from_3_2_to_1_0.json +62382 -0
- package/examples/ui/network/data.json +123 -0
- package/examples/ui/network/links.json +13 -0
- package/examples/ui/network/network.html +75 -0
- package/examples/ui/network/network_nodes_links.html +82 -0
- package/examples/ui/network/nodes.json +12 -0
- package/index.html +69 -3
- package/index.js +6 -1
- package/package.json +4 -3
- package/tests/screenshots/other_snapshots.js/chaoss-issues.png +0 -0
- package/tests/screenshots/other_snapshots.js/chaoss-pr.png +0 -0
- package/tests/screenshots/other_snapshots.js/template.png +0 -0
- package/tests/ui.js +7 -0
- package/webpack.common.js +1 -1
- package/webpack.devnossl.js +16 -0
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -79
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aggs": {
|
|
3
|
+
"Pull requests": {
|
|
4
|
+
"terms": {
|
|
5
|
+
"field": "project",
|
|
6
|
+
"size": 50000,
|
|
7
|
+
"order": {
|
|
8
|
+
"_count": "desc"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"aggs": {
|
|
12
|
+
"Submitters": {
|
|
13
|
+
"cardinality": {
|
|
14
|
+
"field": "author_uuid"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"Repositories": {
|
|
18
|
+
"cardinality": {
|
|
19
|
+
"field": "repository"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"Avg. Days Open": {
|
|
23
|
+
"avg": {
|
|
24
|
+
"script": {
|
|
25
|
+
"source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
|
|
26
|
+
"lang": "painless"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"size": 0,
|
|
34
|
+
"highlight": {
|
|
35
|
+
"pre_tags": [
|
|
36
|
+
"@kibana-highlighted-field@"
|
|
37
|
+
],
|
|
38
|
+
"post_tags": [
|
|
39
|
+
"@/kibana-highlighted-field@"
|
|
40
|
+
],
|
|
41
|
+
"fields": {
|
|
42
|
+
"*": {}
|
|
43
|
+
},
|
|
44
|
+
"require_field_match": false,
|
|
45
|
+
"fragment_size": 2147483647
|
|
46
|
+
},
|
|
47
|
+
"_source": {
|
|
48
|
+
"excludes": []
|
|
49
|
+
},
|
|
50
|
+
"stored_fields": [
|
|
51
|
+
"*"
|
|
52
|
+
],
|
|
53
|
+
"script_fields": {
|
|
54
|
+
"painless_delay": {
|
|
55
|
+
"script": {
|
|
56
|
+
"source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
|
|
57
|
+
"lang": "painless"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"docvalue_fields": [
|
|
62
|
+
{
|
|
63
|
+
"field": "closed_at",
|
|
64
|
+
"format": "date_time"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"field": "created_at",
|
|
68
|
+
"format": "date_time"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"field": "grimoire_creation_date",
|
|
72
|
+
"format": "date_time"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"field": "merged_at",
|
|
76
|
+
"format": "date_time"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"field": "metadata__enriched_on",
|
|
80
|
+
"format": "date_time"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"field": "metadata__timestamp",
|
|
84
|
+
"format": "date_time"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"field": "metadata__updated_on",
|
|
88
|
+
"format": "date_time"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"field": "updated_at",
|
|
92
|
+
"format": "date_time"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"query": {
|
|
96
|
+
"bool": {
|
|
97
|
+
"must": [
|
|
98
|
+
{
|
|
99
|
+
"query_string": {
|
|
100
|
+
"analyze_wildcard": true,
|
|
101
|
+
"query": "*",
|
|
102
|
+
"default_field": "*"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"match_all": {}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"query_string": {
|
|
110
|
+
"query": "pull_request:true",
|
|
111
|
+
"analyze_wildcard": true,
|
|
112
|
+
"default_field": "*"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"range": {
|
|
117
|
+
"grimoire_creation_date": {
|
|
118
|
+
"gte": 1484889675945,
|
|
119
|
+
"lte": 1642656075945,
|
|
120
|
+
"format": "epoch_millis"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"filter": [],
|
|
126
|
+
"should": [],
|
|
127
|
+
"must_not": []
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aggs": {
|
|
3
|
+
"2": {
|
|
4
|
+
"terms": {
|
|
5
|
+
"field": "author_org_name",
|
|
6
|
+
"size": 1000,
|
|
7
|
+
"order": {
|
|
8
|
+
"_count": "desc"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"size": 0,
|
|
14
|
+
"highlight": {
|
|
15
|
+
"pre_tags": [
|
|
16
|
+
"@kibana-highlighted-field@"
|
|
17
|
+
],
|
|
18
|
+
"post_tags": [
|
|
19
|
+
"@/kibana-highlighted-field@"
|
|
20
|
+
],
|
|
21
|
+
"fields": {
|
|
22
|
+
"*": {}
|
|
23
|
+
},
|
|
24
|
+
"require_field_match": false,
|
|
25
|
+
"fragment_size": 2147483647
|
|
26
|
+
},
|
|
27
|
+
"_source": {
|
|
28
|
+
"excludes": []
|
|
29
|
+
},
|
|
30
|
+
"stored_fields": [
|
|
31
|
+
"*"
|
|
32
|
+
],
|
|
33
|
+
"script_fields": {
|
|
34
|
+
"painless_delay": {
|
|
35
|
+
"script": {
|
|
36
|
+
"source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
|
|
37
|
+
"lang": "painless"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"docvalue_fields": [
|
|
42
|
+
{
|
|
43
|
+
"field": "closed_at",
|
|
44
|
+
"format": "date_time"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"field": "created_at",
|
|
48
|
+
"format": "date_time"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"field": "grimoire_creation_date",
|
|
52
|
+
"format": "date_time"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"field": "merged_at",
|
|
56
|
+
"format": "date_time"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"field": "metadata__enriched_on",
|
|
60
|
+
"format": "date_time"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"field": "metadata__timestamp",
|
|
64
|
+
"format": "date_time"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"field": "metadata__updated_on",
|
|
68
|
+
"format": "date_time"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"field": "updated_at",
|
|
72
|
+
"format": "date_time"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"query": {
|
|
76
|
+
"bool": {
|
|
77
|
+
"must": [
|
|
78
|
+
{
|
|
79
|
+
"query_string": {
|
|
80
|
+
"analyze_wildcard": true,
|
|
81
|
+
"query": "*",
|
|
82
|
+
"default_field": "*"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"query_string": {
|
|
87
|
+
"query": "pull_request:true",
|
|
88
|
+
"analyze_wildcard": true,
|
|
89
|
+
"default_field": "*"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"range": {
|
|
94
|
+
"grimoire_creation_date": {
|
|
95
|
+
"gte": 1484037937243,
|
|
96
|
+
"lte": 1641804337244,
|
|
97
|
+
"format": "epoch_millis"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"filter": [],
|
|
103
|
+
"should": [],
|
|
104
|
+
"must_not": []
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aggs": {
|
|
3
|
+
"2": {
|
|
4
|
+
"date_histogram": {
|
|
5
|
+
"field": "grimoire_creation_date",
|
|
6
|
+
"interval": "30d",
|
|
7
|
+
"time_zone": "Europe/Berlin",
|
|
8
|
+
"min_doc_count": 1
|
|
9
|
+
},
|
|
10
|
+
"aggs": {
|
|
11
|
+
"3": {
|
|
12
|
+
"terms": {
|
|
13
|
+
"field": "state",
|
|
14
|
+
"size": 1000,
|
|
15
|
+
"order": {
|
|
16
|
+
"_count": "desc"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"size": 0,
|
|
24
|
+
"highlight": {
|
|
25
|
+
"pre_tags": [
|
|
26
|
+
"@kibana-highlighted-field@"
|
|
27
|
+
],
|
|
28
|
+
"post_tags": [
|
|
29
|
+
"@/kibana-highlighted-field@"
|
|
30
|
+
],
|
|
31
|
+
"fields": {
|
|
32
|
+
"*": {}
|
|
33
|
+
},
|
|
34
|
+
"require_field_match": false,
|
|
35
|
+
"fragment_size": 2147483647
|
|
36
|
+
},
|
|
37
|
+
"_source": {
|
|
38
|
+
"excludes": []
|
|
39
|
+
},
|
|
40
|
+
"stored_fields": [
|
|
41
|
+
"*"
|
|
42
|
+
],
|
|
43
|
+
"script_fields": {
|
|
44
|
+
"painless_delay": {
|
|
45
|
+
"script": {
|
|
46
|
+
"source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
|
|
47
|
+
"lang": "painless"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"docvalue_fields": [
|
|
52
|
+
{
|
|
53
|
+
"field": "closed_at",
|
|
54
|
+
"format": "date_time"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"field": "created_at",
|
|
58
|
+
"format": "date_time"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"field": "grimoire_creation_date",
|
|
62
|
+
"format": "date_time"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"field": "merged_at",
|
|
66
|
+
"format": "date_time"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"field": "metadata__enriched_on",
|
|
70
|
+
"format": "date_time"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"field": "metadata__timestamp",
|
|
74
|
+
"format": "date_time"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"field": "metadata__updated_on",
|
|
78
|
+
"format": "date_time"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"field": "updated_at",
|
|
82
|
+
"format": "date_time"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"query": {
|
|
86
|
+
"bool": {
|
|
87
|
+
"must": [
|
|
88
|
+
{
|
|
89
|
+
"query_string": {
|
|
90
|
+
"analyze_wildcard": true,
|
|
91
|
+
"query": "*",
|
|
92
|
+
"default_field": "*"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"query_string": {
|
|
97
|
+
"query": "pull_request:true",
|
|
98
|
+
"analyze_wildcard": true,
|
|
99
|
+
"default_field": "*"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"range": {
|
|
104
|
+
"grimoire_creation_date": {
|
|
105
|
+
"gte": 1484639502501,
|
|
106
|
+
"lte": 1642405902501,
|
|
107
|
+
"format": "epoch_millis"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"filter": [],
|
|
113
|
+
"should": [],
|
|
114
|
+
"must_not": []
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aggs": {
|
|
3
|
+
"Pull requests": {
|
|
4
|
+
"terms": {
|
|
5
|
+
"field": "github_repo",
|
|
6
|
+
"size": 1000,
|
|
7
|
+
"order": {
|
|
8
|
+
"_count": "desc"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"aggs": {
|
|
12
|
+
"Submitters": {
|
|
13
|
+
"cardinality": {
|
|
14
|
+
"field": "author_uuid"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"Assignees": {
|
|
18
|
+
"cardinality": {
|
|
19
|
+
"field": "assignee_data_uuid"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"Avg. Days Open": {
|
|
23
|
+
"avg": {
|
|
24
|
+
"script": {
|
|
25
|
+
"source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
|
|
26
|
+
"lang": "painless"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"size": 0,
|
|
34
|
+
"highlight": {
|
|
35
|
+
"pre_tags": [
|
|
36
|
+
"@kibana-highlighted-field@"
|
|
37
|
+
],
|
|
38
|
+
"post_tags": [
|
|
39
|
+
"@/kibana-highlighted-field@"
|
|
40
|
+
],
|
|
41
|
+
"fields": {
|
|
42
|
+
"*": {}
|
|
43
|
+
},
|
|
44
|
+
"require_field_match": false,
|
|
45
|
+
"fragment_size": 2147483647
|
|
46
|
+
},
|
|
47
|
+
"_source": {
|
|
48
|
+
"excludes": []
|
|
49
|
+
},
|
|
50
|
+
"stored_fields": [
|
|
51
|
+
"*"
|
|
52
|
+
],
|
|
53
|
+
"script_fields": {
|
|
54
|
+
"painless_delay": {
|
|
55
|
+
"script": {
|
|
56
|
+
"source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
|
|
57
|
+
"lang": "painless"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"docvalue_fields": [
|
|
62
|
+
{
|
|
63
|
+
"field": "closed_at",
|
|
64
|
+
"format": "date_time"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"field": "created_at",
|
|
68
|
+
"format": "date_time"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"field": "grimoire_creation_date",
|
|
72
|
+
"format": "date_time"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"field": "merged_at",
|
|
76
|
+
"format": "date_time"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"field": "metadata__enriched_on",
|
|
80
|
+
"format": "date_time"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"field": "metadata__timestamp",
|
|
84
|
+
"format": "date_time"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"field": "metadata__updated_on",
|
|
88
|
+
"format": "date_time"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"field": "updated_at",
|
|
92
|
+
"format": "date_time"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"query": {
|
|
96
|
+
"bool": {
|
|
97
|
+
"must": [
|
|
98
|
+
{
|
|
99
|
+
"query_string": {
|
|
100
|
+
"analyze_wildcard": true,
|
|
101
|
+
"query": "*",
|
|
102
|
+
"default_field": "*"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"match_all": {}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"query_string": {
|
|
110
|
+
"query": "pull_request:true",
|
|
111
|
+
"analyze_wildcard": true,
|
|
112
|
+
"default_field": "*"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"range": {
|
|
117
|
+
"grimoire_creation_date": {
|
|
118
|
+
"gte": 1484889675945,
|
|
119
|
+
"lte": 1642656075945,
|
|
120
|
+
"format": "epoch_millis"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"filter": [],
|
|
126
|
+
"should": [],
|
|
127
|
+
"must_not": []
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aggs": {
|
|
3
|
+
"2": {
|
|
4
|
+
"terms": {
|
|
5
|
+
"field": "state",
|
|
6
|
+
"size": 10,
|
|
7
|
+
"order": {
|
|
8
|
+
"_count": "desc"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"size": 0,
|
|
14
|
+
"highlight": {
|
|
15
|
+
"pre_tags": [
|
|
16
|
+
"@kibana-highlighted-field@"
|
|
17
|
+
],
|
|
18
|
+
"post_tags": [
|
|
19
|
+
"@/kibana-highlighted-field@"
|
|
20
|
+
],
|
|
21
|
+
"fields": {
|
|
22
|
+
"*": {}
|
|
23
|
+
},
|
|
24
|
+
"require_field_match": false,
|
|
25
|
+
"fragment_size": 2147483647
|
|
26
|
+
},
|
|
27
|
+
"_source": {
|
|
28
|
+
"excludes": []
|
|
29
|
+
},
|
|
30
|
+
"stored_fields": [
|
|
31
|
+
"*"
|
|
32
|
+
],
|
|
33
|
+
"script_fields": {
|
|
34
|
+
"painless_delay": {
|
|
35
|
+
"script": {
|
|
36
|
+
"source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
|
|
37
|
+
"lang": "painless"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"docvalue_fields": [
|
|
42
|
+
{
|
|
43
|
+
"field": "closed_at",
|
|
44
|
+
"format": "date_time"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"field": "created_at",
|
|
48
|
+
"format": "date_time"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"field": "grimoire_creation_date",
|
|
52
|
+
"format": "date_time"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"field": "merged_at",
|
|
56
|
+
"format": "date_time"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"field": "metadata__enriched_on",
|
|
60
|
+
"format": "date_time"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"field": "metadata__timestamp",
|
|
64
|
+
"format": "date_time"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"field": "metadata__updated_on",
|
|
68
|
+
"format": "date_time"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"field": "updated_at",
|
|
72
|
+
"format": "date_time"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"query": {
|
|
76
|
+
"bool": {
|
|
77
|
+
"must": [
|
|
78
|
+
{
|
|
79
|
+
"query_string": {
|
|
80
|
+
"analyze_wildcard": true,
|
|
81
|
+
"query": "*",
|
|
82
|
+
"default_field": "*"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"query_string": {
|
|
87
|
+
"query": "pull_request:true",
|
|
88
|
+
"analyze_wildcard": true,
|
|
89
|
+
"default_field": "*"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"range": {
|
|
94
|
+
"grimoire_creation_date": {
|
|
95
|
+
"gte": 1481707347694,
|
|
96
|
+
"lte": 1639473747694,
|
|
97
|
+
"format": "epoch_millis"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"filter": [],
|
|
103
|
+
"should": [],
|
|
104
|
+
"must_not": []
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|