Comments (1)
See the below script:
from redash_toolbelt.examples.refresh_query import get_fresh_query_result
HOST = "<your Redash url>"
KEY = "<your api key>"
ID = "<your query id>"
# My test query uses a query-based dropdown parameter named `foo`
# The underlying query returns integers 1 - 5. These are acceptable parameter values.
# The following call succeeds
result = get_fresh_query_result(
redash_url=HOST,
query_id=ID,
api_key=KEY,
params={"foo": 1},
)
# But this fails...
result = get_fresh_query_result(
redash_url=HOST,
query_id=ID,
api_key=KEY,
params={"foo": 6},
)
# Because 6 is not an allowed value for `foo`
from redash-toolbelt.
Related Issues (20)
- Add an option to skip user sync in destination instance with `redash-migrate users` HOT 1
- Query creation at destination failed: 403 Client Error: FORBIDDEN with `redash-migrate queries` HOT 10
- redash-migrate: show traceback on exceptions
- Migrated Self Hosted Server Is Bit Slow HOT 1
- Question: Ordering the returned rows like in the UI HOT 2
- redash-migrate doesn't migrate dashboards HOT 2
- Redash-migrate not migrating queries and dashboard
- export dashboard example
- dashboard(slug) does not work
- Export users not working
- Can you show an example of the parameters used to fully clone a dashboard
- redash-migrate: some settings are not migrated
- redash-migrate: queries using "redash:query_results" not correctly migrated HOT 1
- redash-migrate: command not found HOT 1
- Data sources migration doesn't work HOT 3
- `Favorites - ERROR - list index out of range` with `redash-migrate favorites` HOT 2
- The creator of migrated alerts are the account of `redash-migrate` HOT 2
- Redash configuration options on hosted redash to avoid out of memory? HOT 2
- Prevent double association of `default` group when importing users
- redash-migrate: Add script to automatically convert mssql data sources to mssql_odbc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redash-toolbelt.