Преглед изворни кода

Update UIs and test to use blocking query parameter

Christopher Mullins пре 6 година
родитељ
комит
c09d87f5ed
4 измењених фајлова са 5 додато и 5 уклоњено
  1. 2 2
      dist/index.html.gz.h
  2. 1 1
      test/remote/lib/api_client.rb
  3. 1 1
      test/remote/spec/rest_spec.rb
  4. 1 1
      web/src/js/script.js

Разлика између датотеке није приказан због своје велике величине
+ 2 - 2
dist/index.html.gz.h


+ 1 - 1
test/remote/lib/api_client.rb

@@ -83,7 +83,7 @@ class ApiClient
   end
 
   def state_path(params = {})
-    "/gateways/#{params[:id]}/#{params[:type]}/#{params[:group_id]}"
+    "/gateways/#{params[:id]}/#{params[:type]}/#{params[:group_id]}?blockOnQueue=true"
   end
 
   def delete_state(params = {})

+ 1 - 1
test/remote/spec/rest_spec.rb

@@ -139,7 +139,7 @@ RSpec.describe 'REST Server' do
     end
 
     it 'should update state for known alias' do
-      path = "/gateways/#{@alias}"
+      path = "/gateways/#{@alias}?blockOnQueue=true"
 
       @client.put(path, status: 'ON', hue: 100)
       state = @client.get(path)

+ 1 - 1
web/src/js/script.js

@@ -493,7 +493,7 @@ var updateGroup = _.throttle(
   function(params) {
     try {
       $.ajax({
-        url: activeUrl(),
+        url: activeUrl() + "?blockOnQueue=true",
         method: 'PUT',
         data: JSON.stringify(params),
         contentType: 'application/json',