redash icon indicating copy to clipboard operation
redash copied to clipboard

Added New Env variable for Unpublished queries

Open adithyapathipaka opened this issue 3 years ago • 1 comments

What type of PR is this? (check all applicable)

  • [x] Feature

Description

Added new Env Variable REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES and updated include_drafts param to get value from REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES

  1. Application shows all the unpublished queries from other users on the UI by default, which is due to Hard coded value with True for the include_draft param.
  2. Added new Env Variable REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES (boolean) through which application can be configured to view unpublished queries
  3. By Default REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES will be true and can be configure through to false by adding the variable to env file.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

adithyapathipaka avatar Dec 02 '22 20:12 adithyapathipaka

Whoops, that looks like a merge commit instead. We can squash the commits later, heh :)

guidopetri avatar Jul 15 '23 13:07 guidopetri