Skip to content

Commit

Permalink
Update UIs and test to use blocking query parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoh committed Jun 24, 2019
1 parent 713a0bf commit c09d87f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.html.gz.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/remote/lib/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def delete(path)
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 = {})
Expand Down
2 changes: 1 addition & 1 deletion test/remote/spec/rest_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
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)
Expand Down
2 changes: 1 addition & 1 deletion web/src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c09d87f

Please sign in to comment.