shiftzilla 0.2.23 → 0.2.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6120a38d461b58efc1f748b11b18d47c28500221480b8add0857edefa7f7fe21
4
- data.tar.gz: 9e5f15558b012781ff0a0936b8f3e994719427d9a4c4949fb9bbb872474356ff
3
+ metadata.gz: cecae2d90020a501778d287e70fa660c766e91c5acb9f14fdffa6a80c86260ed
4
+ data.tar.gz: 5c31148722ce6bf81823b23a7188ff9e0779337059c728fa0f3fc1203c02b99a
5
5
  SHA512:
6
- metadata.gz: 5c1729bd4c0493aa0c5507778b67083abf019b973f071aaddfa6046e800b12987a7103ed1ad56f513f173e01ebbf8543f204cfdd22a4dbe059592ce856e7e5aa
7
- data.tar.gz: 55eab99d47d28c12137b51927c14b092fe21fbd0e0f2602f4d1d1057f6c1bf0e515f9c28c752f0543f560d6900a451f9c4dee8bd66bd3a4175916db47aec15b1
6
+ metadata.gz: d5f74bf58dee2608735e0724402990d207314e7e5009b66acc33caaabe06c8aa8e05dd1fa5a11ee8d0e4308d4c45371b3e54a4dbb73d71d8a65a2307d8baa113
7
+ data.tar.gz: 061fc2bc9251a635dd19392e13f68dd2c357fada8c54a543ec4d40320ff1bbea272d12055243a66e7314acd62fe2bde15a094f5f785d402a78064b069c7224b1
@@ -1,11 +1,12 @@
1
1
  module Shiftzilla
2
2
  class Bug
3
- attr_reader :id, :first_seen, :last_seen, :test_blocker, :ops_blocker, :online_blocker, :owner, :component, :pm_score, :cust_cases, :tgt_release, :summary, :status
3
+ attr_reader :id, :first_seen, :last_seen, :beta_blocker, :test_blocker, :ops_blocker, :online_blocker, :owner, :component, :pm_score, :cust_cases, :tgt_release, :summary, :status
4
4
 
5
5
  def initialize(bzid,binfo)
6
6
  @id = bzid
7
7
  @first_seen = binfo[:snapdate]
8
8
  @last_seen = binfo[:snapdate]
9
+ @beta_blocker = binfo[:beta_blocker]
9
10
  @test_blocker = binfo[:test_blocker]
10
11
  @ops_blocker = binfo[:ops_blocker]
11
12
  @online_blocker = binfo[:online_blocker]
@@ -20,6 +21,7 @@ module Shiftzilla
20
21
 
21
22
  def update(binfo)
22
23
  @last_seen = binfo[:snapdate]
24
+ @beta_blocker = binfo[:beta_blocker]
23
25
  @test_blocker = binfo[:test_blocker]
24
26
  @ops_blocker = binfo[:ops_blocker]
25
27
  @online_blocker = binfo[:online_blocker]
@@ -6,13 +6,14 @@ require 'shiftzilla/team'
6
6
 
7
7
  module Shiftzilla
8
8
  class Config
9
- attr_reader :teams, :groups, :sources, :releases, :ssh
9
+ attr_reader :teams, :groups, :sources, :releases, :ssh, :org_title
10
10
 
11
11
  def initialize
12
- @teams = []
13
- @groups = []
14
- @sources = []
15
- group_map = {}
12
+ @org_title = cfg_file['OrgTitle']
13
+ @teams = []
14
+ @groups = []
15
+ @sources = []
16
+ group_map = {}
16
17
  cfg_file['Groups'].each do |group|
17
18
  gobj = Shiftzilla::Group.new(group)
18
19
  @groups << gobj
@@ -191,7 +191,7 @@ module Shiftzilla
191
191
  puts "#{CFG_FILE} did not get parsed as a hash."
192
192
  exit
193
193
  end
194
- missing_keys = ['Groups','Teams','Sources','Releases','SSH'].select{ |k| not raw_cfg.has_key?(k) }
194
+ missing_keys = ['OrgTitle','Groups','Teams','Sources','Releases','SSH'].select{ |k| not raw_cfg.has_key?(k) }
195
195
  if missing_keys.length > 0
196
196
  if missing_keys.length > 1
197
197
  puts "#{CFG_FILE} is missing the following keys: #{missing_keys.join(', ')}"
@@ -212,6 +212,11 @@ module Shiftzilla
212
212
 
213
213
  errors = []
214
214
 
215
+ # OrgTitle check
216
+ if not valid_config_string?(raw_cfg['OrgTitle'])
217
+ errors << "OrgTitle value is nil or zero-length"
218
+ end
219
+
215
220
  # Group checks
216
221
  list_idx = 0
217
222
  seen_gids = {}
@@ -15,7 +15,7 @@ module Shiftzilla
15
15
  @teams = config.teams
16
16
  @releases = config.releases
17
17
  @tmp_dir = Shiftzilla::Helpers.tmp_dir
18
- @org_data = { '_overall' => Shiftzilla::TeamData.new('_overall') }
18
+ @org_data = { '_overall' => Shiftzilla::TeamData.new('_overall',config) }
19
19
  end
20
20
 
21
21
  def populate_releases
@@ -45,6 +45,7 @@ module Shiftzilla
45
45
  # Package up bug data
46
46
  binfo = {
47
47
  :snapdate => snapdate,
48
+ :beta_blocker => keyw.include?('BetaBlocker'),
48
49
  :test_blocker => keyw.include?('TestBlocker'),
49
50
  :ops_blocker => keyw.include?('OpsBlocker'),
50
51
  :online_blocker => keyw.include?('OnlineStarter'),
@@ -87,7 +88,7 @@ module Shiftzilla
87
88
 
88
89
  # Add info to the snapshot
89
90
  snapdata.bug_ids << bzid
90
- if bug.test_blocker or bug.ops_blocker or bug.online_blocker
91
+ if bug.beta_blocker or bug.test_blocker or bug.ops_blocker or bug.online_blocker
91
92
  snapdata.tb_ids << bzid
92
93
  end
93
94
  if bug.cust_cases
@@ -5,7 +5,7 @@ module Shiftzilla
5
5
  attr_reader :name, :targets, :milestones, :default, :token
6
6
 
7
7
  def initialize(release,builtin=false)
8
- @name = release['name']
8
+ @name = release['name'].to_s
9
9
  @token = @name.tr(' .', '_')
10
10
  @targets = release['targets']
11
11
  @default = release.has_key?('default') ? release['default'] : false
@@ -4,17 +4,18 @@ module Shiftzilla
4
4
  class TeamData
5
5
  attr_reader :name
6
6
 
7
- def initialize(tname)
7
+ def initialize(tname,config=nil)
8
8
  @name = tname
9
+ @config = config
9
10
  @release_data = {}
10
11
  end
11
12
 
12
13
  def title
13
- @title ||= (@name == '_overall' ? 'Atomic / OpenShift' : @name)
14
+ @title ||= (@name == '_overall' ? @config.org_title : @name)
14
15
  end
15
16
 
16
17
  def prefix
17
- @prefix ||= (@name == '_overall' ? "all_aos" : "team_#{@name.tr(' ?()', '')}")
18
+ @prefix ||= (@name == '_overall' ? "all_org" : "team_#{@name.tr(' ?()', '')}")
18
19
  end
19
20
 
20
21
  def file
@@ -1,3 +1,3 @@
1
1
  module Shiftzilla
2
- VERSION = "0.2.23"
2
+ VERSION = "0.2.26"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  ---
2
+ OrgTitle: Org Title for Reports
2
3
  Teams:
3
4
  - name: <team name>
4
5
  lead: Jane Doe <jdoe@example.com>
@@ -130,7 +130,7 @@
130
130
  %thead
131
131
  %tr
132
132
  %th
133
- %abbr{ :title => 'Test Blocker, Ops Blocker, or Online Blocker?' } Blocker
133
+ %abbr{ :title => 'Beta Blocker, Test Blocker, Ops Blocker, or Online Blocker?' } Blocker
134
134
  %th
135
135
  %abbr{ :title => 'See https://mojo.redhat.com/docs/DOC-1159309' } PM
136
136
  %th
@@ -146,6 +146,7 @@
146
146
  - all_bugs.each do |b|
147
147
  %tr
148
148
  %td
149
+ = b.beta_blocker ? "<span class='badge badge-info'>&#946;eta</span>" : ''
149
150
  = b.test_blocker ? "<span class='badge badge-danger'>Test</span>" : ''
150
151
  = b.ops_blocker ? "<span class='badge badge-dark'>Ops</span>" : ''
151
152
  = b.online_blocker ? "<span class='badge badge-warning'>Online</span>" : ''
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.23
4
+ version: 0.2.26
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: 2019-01-23 00:00:00.000000000 Z
11
+ date: 2019-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler