aframe-babia-components 1.2.2 → 1.2.5

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.
Files changed (120) hide show
  1. package/components/filters/babia-selector.js +256 -79
  2. package/components/filters/babia-treebuilder.js +1 -2
  3. package/components/geometries/babia-bar.js +13 -1
  4. package/components/geometries/babia-cyl.js +189 -0
  5. package/components/others/assets/tooltip.png +0 -0
  6. package/components/others/babia-camera.js +195 -0
  7. package/components/others/babia-controls.js +56 -31
  8. package/components/others/babia-navigator.js +55 -49
  9. package/components/others/babia-range-selector.js +218 -0
  10. package/components/others/babia-slider.js +36 -8
  11. package/components/others/babia-ui.js +246 -73
  12. package/components/others/common.js +91 -83
  13. package/components/queriers/babia-querycsv.js +96 -0
  14. package/components/queriers/babia-queryes.js +209 -131
  15. package/components/visualizers/babia-bars.js +15 -38
  16. package/components/visualizers/babia-barsmap.js +19 -34
  17. package/components/visualizers/babia-boats.js +221 -134
  18. package/components/visualizers/babia-bubbles.js +13 -26
  19. package/components/visualizers/babia-cyls.js +203 -201
  20. package/components/visualizers/babia-cylsmap.js +173 -241
  21. package/components/visualizers/babia-doughnut.js +6 -28
  22. package/components/visualizers/babia-network.js +191 -124
  23. package/components/visualizers/babia-pie.js +6 -30
  24. package/dist/aframe-babia-components.js +21913 -19571
  25. package/dist/aframe-babia-components.min.js +7 -1
  26. package/dist/aframe-babia-components.min.js.map +1 -1
  27. package/docs/APIs/CHARTS.md +33 -14
  28. package/docs/APIs/DATAMANAGEMENT.md +7 -0
  29. package/docs/APIs/OTHERS.md +42 -0
  30. package/docs/APIs/QUERIERS.md +18 -0
  31. package/docs/RELEASE_NOTES.md +58 -21
  32. package/docs/Tutorials/multiuser.md +47 -2
  33. package/examples/assets/door/New Bitmap Image.jpg +0 -0
  34. package/examples/assets/door/door.mtl +26 -0
  35. package/examples/assets/door/door.obj +6927 -0
  36. package/examples/assets/popups/0.png +0 -0
  37. package/examples/assets/popups/1.png +0 -0
  38. package/examples/assets/popups/10.png +0 -0
  39. package/examples/assets/popups/2.png +0 -0
  40. package/examples/assets/popups/3.png +0 -0
  41. package/examples/assets/popups/4.png +0 -0
  42. package/examples/assets/popups/5.png +0 -0
  43. package/examples/assets/popups/6.png +0 -0
  44. package/examples/assets/popups/7.png +0 -0
  45. package/examples/assets/popups/8.png +0 -0
  46. package/examples/assets/popups/9.png +0 -0
  47. package/examples/assets/popups/close.jpg +0 -0
  48. package/examples/assets/popups/info.jpg +0 -0
  49. package/examples/assets/textures/brownwall.png +0 -0
  50. package/examples/assets/textures/concrete.png +0 -0
  51. package/examples/assets/textures/white-wall-texture.jpg +0 -0
  52. package/examples/charts/cyls/index.html +13 -4
  53. package/examples/charts/cyls/primitive.html +76 -0
  54. package/examples/charts/cylsmap/index.html +14 -5
  55. package/examples/charts_querier/bars_querier/data.csv +10 -0
  56. package/examples/charts_querier/bars_querier/index_csv.html +80 -0
  57. package/examples/charts_querier/multichart_querier/manual_colors.html +81 -0
  58. package/examples/dashboard/chaoss-dashboards.html +259 -0
  59. package/examples/dashboard/chaoss-issues.html +248 -0
  60. package/examples/dashboard/chaoss-pr.html +248 -0
  61. package/examples/dashboard/index.html +247 -0
  62. package/examples/dashboard/issues_queries/80-percent-open-time.json +123 -0
  63. package/examples/dashboard/issues_queries/issues-by-organization.json +107 -0
  64. package/examples/dashboard/issues_queries/issues.json +117 -0
  65. package/examples/dashboard/issues_queries/median-open-time.json +123 -0
  66. package/examples/dashboard/issues_queries/organizations.json +130 -0
  67. package/examples/dashboard/issues_queries/projects.json +130 -0
  68. package/examples/dashboard/issues_queries/repositories.json +130 -0
  69. package/examples/dashboard/issues_queries/status.json +107 -0
  70. package/examples/dashboard/issues_queries/submitter.json +125 -0
  71. package/examples/dashboard/issues_queries/submitters.json +113 -0
  72. package/examples/dashboard/pullrequests_queries/80-percent-open-time.json +123 -0
  73. package/examples/dashboard/pullrequests_queries/median-open-time.json +123 -0
  74. package/examples/dashboard/pullrequests_queries/organizations.json +130 -0
  75. package/examples/dashboard/pullrequests_queries/projects.json +130 -0
  76. package/examples/dashboard/pullrequests_queries/pull-requests-by-organization.json +107 -0
  77. package/examples/dashboard/pullrequests_queries/pull-requests.json +117 -0
  78. package/examples/dashboard/pullrequests_queries/repositories.json +130 -0
  79. package/examples/dashboard/pullrequests_queries/status.json +107 -0
  80. package/examples/dashboard/pullrequests_queries/submitter.json +125 -0
  81. package/examples/dashboard/pullrequests_queries/submitters.json +113 -0
  82. package/examples/dashboard/range.html +88 -0
  83. package/examples/dashboard/template.html +136 -0
  84. package/examples/demos/1.0.11/index_multiuser_ui.html +1 -1
  85. package/examples/multi_bars/data.json +14 -0
  86. package/examples/multi_bars/data2.json +15 -0
  87. package/examples/multi_bars/data3.json +23 -0
  88. package/examples/multi_bars/easyrtc.js +11984 -0
  89. package/examples/multi_bars/index.html +97 -0
  90. package/examples/multi_bars/index1.html +111 -0
  91. package/examples/multi_bars/index2.html +102 -0
  92. package/examples/multi_bars/index3.html +104 -0
  93. package/examples/multi_boats/data3.json +174 -0
  94. package/examples/multi_boats/data4.json +192 -0
  95. package/examples/multi_boats/{index.html → index_multi_boats.html} +50 -55
  96. package/examples/multi_boats/jetuml.html +124 -115
  97. package/examples/multi_boats/jetuml_evolution_experiment.html +419 -0
  98. package/examples/multi_boats/only_queryjson.html +132 -0
  99. package/examples/multi_boats/only_queryjson2.html +167 -0
  100. package/examples/multi_boats/only_queryjson3.html +165 -0
  101. package/examples/multi_boats/queryjson_treebuilder.html +132 -0
  102. package/examples/multi_boats/with_selector.html +121 -111
  103. package/examples/multiuser/choose_avatar/index.html +18 -8
  104. package/examples/selector_boats/jetuml_from_3_2_to_1_0.json +62382 -0
  105. package/examples/ui/network/data.json +123 -0
  106. package/examples/ui/network/links.json +13 -0
  107. package/examples/ui/network/network.html +75 -0
  108. package/examples/ui/network/network_nodes_links.html +82 -0
  109. package/examples/ui/network/nodes.json +12 -0
  110. package/index.html +69 -3
  111. package/index.js +6 -1
  112. package/package.json +4 -3
  113. package/tests/screenshots/other_snapshots.js/chaoss-issues.png +0 -0
  114. package/tests/screenshots/other_snapshots.js/chaoss-pr.png +0 -0
  115. package/tests/screenshots/other_snapshots.js/template.png +0 -0
  116. package/tests/ui.js +7 -0
  117. package/webpack.common.js +1 -1
  118. package/webpack.devnossl.js +16 -0
  119. package/.idea/vcs.xml +0 -6
  120. package/.idea/workspace.xml +0 -79
@@ -0,0 +1,123 @@
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
+ "1": {
12
+ "percentiles": {
13
+ "script": {
14
+ "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}",
15
+ "lang": "painless"
16
+ },
17
+ "percents": [
18
+ 80
19
+ ],
20
+ "keyed": false
21
+ }
22
+ }
23
+ }
24
+ }
25
+ },
26
+ "size": 0,
27
+ "highlight": {
28
+ "pre_tags": [
29
+ "@kibana-highlighted-field@"
30
+ ],
31
+ "post_tags": [
32
+ "@/kibana-highlighted-field@"
33
+ ],
34
+ "fields": {
35
+ "*": {}
36
+ },
37
+ "require_field_match": false,
38
+ "fragment_size": 2147483647
39
+ },
40
+ "_source": {
41
+ "excludes": []
42
+ },
43
+ "stored_fields": [
44
+ "*"
45
+ ],
46
+ "script_fields": {
47
+ "painless_delay": {
48
+ "script": {
49
+ "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}",
50
+ "lang": "painless"
51
+ }
52
+ }
53
+ },
54
+ "docvalue_fields": [
55
+ {
56
+ "field": "closed_at",
57
+ "format": "date_time"
58
+ },
59
+ {
60
+ "field": "created_at",
61
+ "format": "date_time"
62
+ },
63
+ {
64
+ "field": "grimoire_creation_date",
65
+ "format": "date_time"
66
+ },
67
+ {
68
+ "field": "merged_at",
69
+ "format": "date_time"
70
+ },
71
+ {
72
+ "field": "metadata__enriched_on",
73
+ "format": "date_time"
74
+ },
75
+ {
76
+ "field": "metadata__timestamp",
77
+ "format": "date_time"
78
+ },
79
+ {
80
+ "field": "metadata__updated_on",
81
+ "format": "date_time"
82
+ },
83
+ {
84
+ "field": "updated_at",
85
+ "format": "date_time"
86
+ }
87
+ ],
88
+ "query": {
89
+ "bool": {
90
+ "must": [
91
+ {
92
+ "query_string": {
93
+ "analyze_wildcard": true,
94
+ "default_field": "*",
95
+ "query": "*"
96
+ }
97
+ },
98
+ {
99
+ "match_all": {}
100
+ },
101
+ {
102
+ "query_string": {
103
+ "query": "pull_request:false",
104
+ "analyze_wildcard": true,
105
+ "default_field": "*"
106
+ }
107
+ },
108
+ {
109
+ "range": {
110
+ "grimoire_creation_date": {
111
+ "gte": 1486022007273,
112
+ "lte": 1643788407273,
113
+ "format": "epoch_millis"
114
+ }
115
+ }
116
+ }
117
+ ],
118
+ "filter": [],
119
+ "should": [],
120
+ "must_not": []
121
+ }
122
+ }
123
+ }
@@ -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
+ "default_field": "*",
82
+ "query": "*"
83
+ }
84
+ },
85
+ {
86
+ "query_string": {
87
+ "query": "pull_request:false",
88
+ "analyze_wildcard": true,
89
+ "default_field": "*"
90
+ }
91
+ },
92
+ {
93
+ "range": {
94
+ "grimoire_creation_date": {
95
+ "gte": 1486022007272,
96
+ "lte": 1643788407272,
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
+ "default_field": "*",
92
+ "query": "*"
93
+ }
94
+ },
95
+ {
96
+ "query_string": {
97
+ "query": "pull_request:false",
98
+ "analyze_wildcard": true,
99
+ "default_field": "*"
100
+ }
101
+ },
102
+ {
103
+ "range": {
104
+ "grimoire_creation_date": {
105
+ "gte": 1486022007273,
106
+ "lte": 1643788407273,
107
+ "format": "epoch_millis"
108
+ }
109
+ }
110
+ }
111
+ ],
112
+ "filter": [],
113
+ "should": [],
114
+ "must_not": []
115
+ }
116
+ }
117
+ }
@@ -0,0 +1,123 @@
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
+ "1": {
12
+ "percentiles": {
13
+ "script": {
14
+ "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}",
15
+ "lang": "painless"
16
+ },
17
+ "percents": [
18
+ 50
19
+ ],
20
+ "keyed": false
21
+ }
22
+ }
23
+ }
24
+ }
25
+ },
26
+ "size": 0,
27
+ "highlight": {
28
+ "pre_tags": [
29
+ "@kibana-highlighted-field@"
30
+ ],
31
+ "post_tags": [
32
+ "@/kibana-highlighted-field@"
33
+ ],
34
+ "fields": {
35
+ "*": {}
36
+ },
37
+ "require_field_match": false,
38
+ "fragment_size": 2147483647
39
+ },
40
+ "_source": {
41
+ "excludes": []
42
+ },
43
+ "stored_fields": [
44
+ "*"
45
+ ],
46
+ "script_fields": {
47
+ "painless_delay": {
48
+ "script": {
49
+ "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}",
50
+ "lang": "painless"
51
+ }
52
+ }
53
+ },
54
+ "docvalue_fields": [
55
+ {
56
+ "field": "closed_at",
57
+ "format": "date_time"
58
+ },
59
+ {
60
+ "field": "created_at",
61
+ "format": "date_time"
62
+ },
63
+ {
64
+ "field": "grimoire_creation_date",
65
+ "format": "date_time"
66
+ },
67
+ {
68
+ "field": "merged_at",
69
+ "format": "date_time"
70
+ },
71
+ {
72
+ "field": "metadata__enriched_on",
73
+ "format": "date_time"
74
+ },
75
+ {
76
+ "field": "metadata__timestamp",
77
+ "format": "date_time"
78
+ },
79
+ {
80
+ "field": "metadata__updated_on",
81
+ "format": "date_time"
82
+ },
83
+ {
84
+ "field": "updated_at",
85
+ "format": "date_time"
86
+ }
87
+ ],
88
+ "query": {
89
+ "bool": {
90
+ "must": [
91
+ {
92
+ "query_string": {
93
+ "analyze_wildcard": true,
94
+ "default_field": "*",
95
+ "query": "*"
96
+ }
97
+ },
98
+ {
99
+ "match_all": {}
100
+ },
101
+ {
102
+ "query_string": {
103
+ "query": "pull_request:false",
104
+ "analyze_wildcard": true,
105
+ "default_field": "*"
106
+ }
107
+ },
108
+ {
109
+ "range": {
110
+ "grimoire_creation_date": {
111
+ "gte": 1486022007272,
112
+ "lte": 1643788407272,
113
+ "format": "epoch_millis"
114
+ }
115
+ }
116
+ }
117
+ ],
118
+ "filter": [],
119
+ "should": [],
120
+ "must_not": []
121
+ }
122
+ }
123
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "aggs": {
3
+ "Issues Open": {
4
+ "terms": {
5
+ "field": "author_org_name",
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
+ "default_field": "*",
102
+ "query": "*"
103
+ }
104
+ },
105
+ {
106
+ "match_all": {}
107
+ },
108
+ {
109
+ "query_string": {
110
+ "query": "pull_request:false",
111
+ "analyze_wildcard": true,
112
+ "default_field": "*"
113
+ }
114
+ },
115
+ {
116
+ "range": {
117
+ "grimoire_creation_date": {
118
+ "gte": 1486022009170,
119
+ "lte": 1643788409170,
120
+ "format": "epoch_millis"
121
+ }
122
+ }
123
+ }
124
+ ],
125
+ "filter": [],
126
+ "should": [],
127
+ "must_not": []
128
+ }
129
+ }
130
+ }