opsask 2.1.4 → 2.1.5

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
  SHA1:
3
- metadata.gz: 4ce138895960f65fce46e09577b18f380e61dd6e
4
- data.tar.gz: 64570d094d77d62fb6c673e91e57cb58c855f034
3
+ metadata.gz: 07d5f94aff9cfc77ae9f8566db11891c1028c3a4
4
+ data.tar.gz: d92da7b7cbabe21ca415985ad2cb137defc475f8
5
5
  SHA512:
6
- metadata.gz: 67191a0f13c028c44a2868359265a57d33ce8169a308b6c6fcc5ab9edae858e3cb3ec5b1aa71b792857ed5c53e45f3ce930b38b83b93dbe2222a1f60a5f60c89
7
- data.tar.gz: 1d4940331aa5a544d41e91009a018d5bee4dbef173d4a7dfcdb7101dd4039ff5f31c7d5edee77ab34829cd2b36e21c46f292e5effc3b540934fb91b3f511918c
6
+ metadata.gz: 431378a878b5d1898b3f91d78ee1074e5ec0940728dd1e8b3cdba2d324f1437a6125d3bb2a73e00070020f2155e3808b87de948f939b2f277c0d77adbcaaa118
7
+ data.tar.gz: 6690b98cbbd0b7d64532afcb53aa72cc70f42d80290a4dd79bf86e9cfce4746ae2a9178a274375313c672f8e3d7d06dca9e570627bdd7d65d02c3b0dfde82a8a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.4
1
+ 2.1.5
@@ -291,6 +291,8 @@ module OpsAsk
291
291
  end
292
292
 
293
293
  def room_for_new_jiras_for? date
294
+ return true if params[:force]
295
+ return false if params[:full]
294
296
  return true if ops?
295
297
  jira_count_for(date) < settings.config[:queue_size]
296
298
  end
@@ -306,6 +308,8 @@ module OpsAsk
306
308
  end
307
309
 
308
310
  def room_for_new_jiras?
311
+ return true if params[:force]
312
+ return false if params[:full]
309
313
  return true if ops?
310
314
  !date_for_new_jiras.nil?
311
315
  end
data/public/js/opsask.js CHANGED
@@ -1,10 +1,10 @@
1
1
  ;(function(){
2
2
  $(document).ready(function(){
3
3
  var sawmillLink = document.location.search + document.location.hash;
4
- sawmillLink = sawmillLink.replace('?sawmill=', '');
4
+ var sawmillPrefix = '?sawmill=';
5
5
 
6
- if (sawmillLink !== '') {
7
- console.log(sawmillLink);
6
+ if (sawmillLink.indexOf(sawmillPrefix) == 0) {
7
+ sawmillLink = sawmillLink.replace(sawmillPrefix, '');
8
8
  $('#jira-description').val("Add details for IDs, GUIDs, timeframe, queries, ...\n\n" + sawmillLink);
9
9
  }
10
10
 
data/views/_form.erb CHANGED
@@ -4,9 +4,10 @@
4
4
  <% elsif not room_for_new_jiras? %>
5
5
  <h3 class="ops-queues-are-full">Sorry, we&#8217;re out of room</h3>
6
6
  <p class="ops-queues-are-full">
7
- Ops has reached the maximum number of JIRAs filed for the next couple
8
- of days. If you think your request is urgent feel free to stop by one
9
- of our desks. Otherwise, maybe fight amongst yourselves?</p>
7
+ We've reached the maximum number of OpsAsks filed for the next couple of
8
+ days. Please send your request to the Network Operations mailing list
9
+ (<a href="mailto:netops@bluejeans.com">netops@bluejeans.com</a>), and we'll
10
+ respond shortly. Our apologies for any inconvenience.</p>
10
11
 
11
12
  <% else %>
12
13
  <form method="post" action="/" data-abide>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsask
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-14 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor