Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: migrate to API 4.0 #154

Merged
merged 1 commit into from
Mar 29, 2023
Merged

fix: migrate to API 4.0 #154

merged 1 commit into from
Mar 29, 2023

Conversation

drstrangelooker
Copy link
Collaborator

No description provided.

Copy link

@deanlooker deanlooker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@drstrangelooker drstrangelooker merged commit eecdfd4 into main Mar 29, 2023
@drstrangelooker drstrangelooker deleted the drstrangelove/api-40 branch March 29, 2023 18:55
@dliu9999
Copy link

Hi @drstrangelooker,

I'm getting this error when trying to import a dashboard after the latest update. Do you know why this might be happening?

image

@drstrangelooker
Copy link
Collaborator Author

drstrangelooker commented Mar 30, 2023 via email

@dliu9999
Copy link

dliu9999 commented Mar 31, 2023

Here's the dashboard_layouts key in the json. The only tile in this dashboard is a text tile that says the word "Test." For more context, we were able to import without issues before. I have also tried importing with different versions of ruby (2.7, 2.7.7, 2.7.8), same error each time

image

@jlu2
Copy link

jlu2 commented Mar 31, 2023

We also had the similar issue after this code change as well. This is our error msg.

rrors.ShellProcessError: Shell process exited with code 1: /usr/local/bundle/gems/gazer-0.2.59/lib/gzr/commands/dashboard/import.rb:170:in sync_dashboard': undefined method each' for nil:NilClass (NoMethodError)
from /usr/local/bundle/gems/gazer-0.2.59/lib/gzr/commands/dashboard/import.rb:66:in block (2 levels) in execute' from /usr/local/bundle/gems/gazer-0.2.59/lib/gzr/modules/filehelper.rb:88:in read_file'
from /usr/local/bundle/gems/gazer-0.2.59/lib/gzr/commands/dashboard/import.rb:54:in block in execute' from /usr/local/bundle/gems/gazer-0.2.59/lib/gzr/modules/session.rb:249:in with_session'
from /usr/local/bundle/gems/gazer-0.2.59/lib/gzr/commands/dashboard/import.rb:50:in execute' from /usr/local/bundle/gems/gazer-0.2.59/lib/gzr/commands/dashboard.rb:78:in import'
from /usr/local/bundle/gems/thor-1.2.1/lib/thor/command.rb:27:in run' from /usr/local/bundle/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command'
from /usr/local/bundle/gems/thor-1.2.1/lib/thor.rb:392:in dispatch' from /usr/local/bundle/gems/thor-1.2.1/lib/thor/invocation.rb:116:in invoke'
from /usr/local/bundle/gems/thor-1.2.1/lib/thor.rb:243:in block in subcommand' from /usr/local/bundle/gems/thor-1.2.1/lib/thor/command.rb:27:in run'
from /usr/local/bundle/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command' from /usr/local/bundle/gems/thor-1.2.1/lib/thor.rb:392:in dispatch'
from /usr/local/bundle/gems/thor-1.2.1/lib/thor/base.rb:485:in start' from /usr/local/bundle/gems/gazer-0.2.59/exe/gzr:36:in <top (required)>'
from /usr/local/bundle/bin/gzr:23:in load' from /usr/local/bundle/bin/gzr:23:in

'

During handling of the above exception, another exception occurred:

@shcsd-ctownsend
Copy link

Same here

@suatceyhan
Copy link

I have the same issue after this code change.

/var/lib/gems/3.0.0/gems/looker-sdk-0.1.2/lib/looker-sdk/client/dynamic.rb:106:in method_missing': undefined method space'
from /var/lib/gems/3.0.0/gems/gazer-0.2.59/lib/gzr/modules/space.rb:65:in query_space' from /var/lib/gems/3.0.0/gems/gazer-0.2.59/lib/gzr/commands/space/export.rb:89:in process_space'
from /var/lib/gems/3.0.0/gems/gazer-0.2.59/lib/gzr/commands/space/export.rb:83:in block in execute' from /var/lib/gems/3.0.0/gems/gazer-0.2.59/lib/gzr/modules/session.rb:249:in with_session'
from /var/lib/gems/3.0.0/gems/gazer-0.2.59/lib/gzr/commands/space/export.rb:51:in execute' from /var/lib/gems/3.0.0/gems/gazer-0.2.59/lib/gzr/commands/space.rb:82:in export'
from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in run' from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command'
from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in dispatch' from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:116:in invoke'
from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:243:in block in subcommand' from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in run'
from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in invoke_command' from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in dispatch'
from /var/lib/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in start' from /var/lib/gems/3.0.0/gems/gazer-0.2.59/exe/gzr:36:in <top (required)>'
from /usr/local/bin/gzr:25:in load' from /usr/local/bin/gzr:25:in

'

@drstrangelooker
Copy link
Collaborator Author

I'm working on the bug fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants