shiftzilla 0.2.9 → 0.2.10
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.
- checksums.yaml +4 -4
- data/lib/shiftzilla/bug.rb +3 -5
- data/lib/shiftzilla/org_data.rb +10 -0
- data/lib/shiftzilla/version.rb +1 -1
- data/template.haml +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 426436e8e53c81f6f4dab914b5e876ab510cd8cbf712332a4c73c0cb31a9fb99
|
|
4
|
+
data.tar.gz: a2b64cc31a8bf755f0bf4904baaf3c1a36e39d302eb248ac0775c95c42139b92
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93a4a9154c505ac7d91ba280bce2372e10a7c37724da406220e9e3f0ea56a7c55d9fbad7b39f043f3ed485c16f047cc0dd21736ae2bfec4619de37e1ba5de64b
|
|
7
|
+
data.tar.gz: 8c4ad8540bccebef00bfa457c92a13991d05403dc57a0e8973ee142f328d19c2cf61c735674bcb24d58f311b8913e5ea43b1cfc9400c6b7166f13c4e75dcca7d
|
data/lib/shiftzilla/bug.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Shiftzilla
|
|
2
2
|
class Bug
|
|
3
|
-
attr_reader :id, :first_seen, :last_seen, :test_blocker, :ops_blocker, :owner, :component, :pm_score, :cust_cases, :tgt_release, :summary
|
|
3
|
+
attr_reader :id, :first_seen, :last_seen, :test_blocker, :ops_blocker, :owner, :component, :pm_score, :cust_cases, :tgt_release, :summary, :status
|
|
4
4
|
|
|
5
5
|
def initialize(bzid,binfo)
|
|
6
6
|
@id = bzid
|
|
@@ -10,6 +10,7 @@ module Shiftzilla
|
|
|
10
10
|
@ops_blocker = binfo[:ops_blocker]
|
|
11
11
|
@owner = binfo[:owner]
|
|
12
12
|
@summary = binfo[:summary]
|
|
13
|
+
@status = binfo[:status]
|
|
13
14
|
@component = binfo[:component]
|
|
14
15
|
@pm_score = binfo[:pm_score]
|
|
15
16
|
@cust_cases = binfo[:cust_cases]
|
|
@@ -22,16 +23,13 @@ module Shiftzilla
|
|
|
22
23
|
@ops_blocker = binfo[:ops_blocker]
|
|
23
24
|
@owner = binfo[:owner]
|
|
24
25
|
@summary = binfo[:summary]
|
|
26
|
+
@status = binfo[:status]
|
|
25
27
|
@component = binfo[:component]
|
|
26
28
|
@pm_score = binfo[:pm_score]
|
|
27
29
|
@cust_cases = binfo[:cust_cases]
|
|
28
30
|
@tgt_release = binfo[:tgt_release]
|
|
29
31
|
end
|
|
30
32
|
|
|
31
|
-
def short_summary
|
|
32
|
-
@summary[0..30].gsub(/\s\w+\s*$/, '...')
|
|
33
|
-
end
|
|
34
|
-
|
|
35
33
|
def age
|
|
36
34
|
(@last_seen - @first_seen).to_i
|
|
37
35
|
end
|
data/lib/shiftzilla/org_data.rb
CHANGED
|
@@ -35,6 +35,12 @@ module Shiftzilla
|
|
|
35
35
|
pmsc = row[7].nil? ? '0' : row[7].strip
|
|
36
36
|
cust = row[8].nil? ? 0 : row[8]
|
|
37
37
|
|
|
38
|
+
# TODO: REMOVE BUSINESS LOGIC EMBEDDED IN CODE
|
|
39
|
+
if comp == 'Security' and keyw.include?('Unconfirmed')
|
|
40
|
+
puts "NB: This report has a hardcoded exclusion of 'Security' component bugs with the 'Unconfirmed' keyword."
|
|
41
|
+
next
|
|
42
|
+
end
|
|
43
|
+
|
|
38
44
|
# Package up bug data
|
|
39
45
|
binfo = {
|
|
40
46
|
:snapdate => snapdate,
|
|
@@ -42,6 +48,7 @@ module Shiftzilla
|
|
|
42
48
|
:ops_blocker => keyw.include?('OpsBlocker'),
|
|
43
49
|
:owner => owns,
|
|
44
50
|
:summary => summ,
|
|
51
|
+
:status => stat,
|
|
45
52
|
:component => comp,
|
|
46
53
|
:pm_score => pmsc,
|
|
47
54
|
:cust_cases => (cust == 1),
|
|
@@ -305,6 +312,9 @@ module Shiftzilla
|
|
|
305
312
|
data << { :label => s[:label], :data => dlist }
|
|
306
313
|
end
|
|
307
314
|
options = {
|
|
315
|
+
:legend => {
|
|
316
|
+
:position => 'nw'
|
|
317
|
+
},
|
|
308
318
|
:xaxis => {
|
|
309
319
|
:ticks => tlist,
|
|
310
320
|
},
|
data/lib/shiftzilla/version.rb
CHANGED
data/template.haml
CHANGED
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
%abbr{ :title => 'Has attached customer cases?'} CC
|
|
134
134
|
%th Target
|
|
135
135
|
%th Bug
|
|
136
|
+
%th Status
|
|
136
137
|
%th Component
|
|
137
138
|
%th Age
|
|
138
139
|
%th Owner
|
|
@@ -148,6 +149,7 @@
|
|
|
148
149
|
%td(data-order="#{b.semver}")= b.tgt_release
|
|
149
150
|
%td
|
|
150
151
|
%a{ :href => "#{bug_url}#{b.id}", :target => '_blank' }= b.id
|
|
152
|
+
%td= b.status
|
|
151
153
|
%td= b.component
|
|
152
154
|
%td= b.age
|
|
153
155
|
%td
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shiftzilla
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- N. Harrison Ripps
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-04-
|
|
11
|
+
date: 2018-04-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|