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

CLI: Restore ability to pass JSON options string for a new data source #882

Merged
merged 1 commit into from Mar 6, 2016

Conversation

tsibley
Copy link
Contributor

@tsibley tsibley commented Mar 4, 2016

Commit "Encapsulate data source/query runner configuration in an
object." (ed99b84) accidentally removed that functionality by not
inflating the passed in JSON into a ConfigurationContainer object.

This led to errors of the form if you passed -o:

Traceback (most recent call last):
  ...
  File "/opt/redash/redash-git/redash/models.py", line 321, in db_value
return value.to_json()
AttributeError: 'unicode' object has no attribute 'to_json'

Commit "Encapsulate data source/query runner configuration in an
object." (ed99b84) accidentally removed that functionality by not
inflating the passed in JSON into a ConfigurationContainer object.

This led to errors of the form if you passed -o:

    Traceback (most recent call last):
      ...
      File "/opt/redash/redash-git/redash/models.py", line 321, in db_value
	return value.to_json()
    AttributeError: 'unicode' object has no attribute 'to_json'
arikfr added a commit that referenced this pull request Mar 6, 2016
CLI: Restore ability to pass JSON options string for a new data source
@arikfr arikfr merged commit bac4025 into getredash:master Mar 6, 2016
@arikfr
Copy link
Member

arikfr commented Mar 6, 2016

Thanks!

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.

None yet

2 participants