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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bcbe3b44a1fef17915db67a9aa20e2d6b1f0509fa3f92ac76de0788dcb798f3
4
- data.tar.gz: e08e62be8def44d0a8513bf618d0423d9a2ed1e529293801fd28f4b3194020d9
3
+ metadata.gz: 426436e8e53c81f6f4dab914b5e876ab510cd8cbf712332a4c73c0cb31a9fb99
4
+ data.tar.gz: a2b64cc31a8bf755f0bf4904baaf3c1a36e39d302eb248ac0775c95c42139b92
5
5
  SHA512:
6
- metadata.gz: fe01604c9c67f438c53709a44d28031fcd3638de4c86366f328b2f6a839a8b5c7e36c57aaab654e853570be2e526330841b4daaf30f91fa86f0c9e3ef77129e4
7
- data.tar.gz: 9382d4f9c0c61cef75490b080f48d4a9a518dc8db338bfa6fb9b7ba094b9b566f038febb032df1ac1fa5c18856932fbe7991d51541609e48ea50ab0e1e31c8fc
6
+ metadata.gz: 93a4a9154c505ac7d91ba280bce2372e10a7c37724da406220e9e3f0ea56a7c55d9fbad7b39f043f3ed485c16f047cc0dd21736ae2bfec4619de37e1ba5de64b
7
+ data.tar.gz: 8c4ad8540bccebef00bfa457c92a13991d05403dc57a0e8973ee142f328d19c2cf61c735674bcb24d58f311b8913e5ea43b1cfc9400c6b7166f13c4e75dcca7d
@@ -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
@@ -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
  },
@@ -1,3 +1,3 @@
1
1
  module Shiftzilla
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
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.9
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-03 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler