Skip to content

Commit

Permalink
fix Not Found error on update of dashboard element
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike DeAngelo committed Apr 30, 2019
1 parent 1a17561 commit 96dd5ed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 10 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
gazer (0.2.12)
gazer (0.2.13)
looker-sdk (~> 0.0.6)
netrc (~> 0.11.0)
pastel (~> 0.7.2)
Expand All @@ -19,7 +19,6 @@ GEM
equatable (0.5.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
hitimes (1.3.0)
kramdown (1.16.2)
looker-sdk (0.0.6)
faraday (>= 0.9.0, < 1.0)
Expand All @@ -39,7 +38,7 @@ GEM
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.1)
rspec-expectations (3.8.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
Expand All @@ -49,14 +48,13 @@ GEM
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
strings (0.1.3)
strings-ansi (~> 0.1.0)
unicode-display_width (~> 1.4.0)
unicode_utils (~> 1.4.0)
strings (0.1.5)
strings-ansi (~> 0.1)
unicode-display_width (~> 1.5)
unicode_utils (~> 1.4)
strings-ansi (0.1.0)
thor (0.20.0)
timers (4.1.2)
hitimes
thor (0.20.3)
timers (4.3.0)
tty (0.8.1)
bundler (~> 1.16, < 2.0)
equatable (~> 0.5.0)
Expand Down Expand Up @@ -129,7 +127,7 @@ GEM
tty-screen (~> 0.6.4)
tty-tree (0.1.0)
tty-which (0.3.0)
unicode-display_width (1.4.0)
unicode-display_width (1.5.0)
unicode_utils (1.4.0)
wisper (2.0.0)

Expand All @@ -147,4 +145,4 @@ RUBY VERSION
ruby 2.3.3p222

BUNDLED WITH
1.16.1
1.16.2
2 changes: 2 additions & 0 deletions lib/gzr/commands/dashboard/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ def sync_dashboard_element(new_element,existing_element,dashboard_id)
[e,nil]
end.to_h

element[:dashboard_id] = dashboard_id

element.merge!( new_element.select do |k,v|
(keys_to_keep('update_dashboard_element') - [:dashboard_id, :look_id, :query_id, :merge_result_id]).include? k
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gzr/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

module Gzr
VERSION = "0.2.12"
VERSION = "0.2.13"
end

0 comments on commit 96dd5ed

Please sign in to comment.