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

Added New Env variable for Unpublished queries #5867

Conversation

adithyapathipaka
Copy link

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

  • 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)

@@ -19,6 +19,7 @@ x-redash-environment: &redash-environment
REDASH_MAIL_SERVER: "email"
REDASH_ENFORCE_CSRF: "true"
REDASH_GUNICORN_TIMEOUT: 60
REDASH_FEATURE_VIEW_UNPUBLISH_QUERIES: "false"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we switch the default to true to maintain the old behavior if nobody does additional changes?

Copy link
Contributor

@guidopetri guidopetri left a comment

Choose a reason for hiding this comment

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

Thanks for this change @adithyapathipaka ! Would you mind opening an accompanying PR modifying this file in the docs to document this new env var and its behavior?

Additionally, I'm rebasing this branch on master to run the CI.

@guidopetri
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation easy review Frontend python Pull requests that update Python code UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants