redash
redash copied to clipboard
Added New Env variable for Unpublished queries
What type of PR is this?
- [ ] Refactor
- [X] Feature
- [ ] Bug Fix
- [ ] New Query Runner (Data Source)
- [ ] New Alert Destination
- [ ] Other
Description
Added new Env Variable REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES and updated include_drafts param to get value from REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES
- Application shows all the unpublished queries from other users on the UI by default, which is due to Hard coded value with
Truefor the include_draft param. - Added new Env Variable
REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES(boolean) through which application can be configured to view unpublished queries - By Default
REDASH_FEATURE_VIEW_UNPUBLISH_QUERIESwill betrueand can be configure through tofalseby adding the variable to env file.
How is this tested?
- [ ] Unit tests (pytest, jest)
- [ ] E2E Tests (Cypress)
- [ ] Manually
- [ ] N/A