diff --git a/.ci/Dockerfile.cypress b/.ci/Dockerfile.cypress
new file mode 100644
index 0000000000..ca0653ee87
--- /dev/null
+++ b/.ci/Dockerfile.cypress
@@ -0,0 +1,12 @@
+FROM cypress/browsers:node-24.14.0-chrome-145.0.7632.116-1-ff-148.0-edge-145.0.3800.70-1
+
+ENV APP /usr/src/app
+WORKDIR $APP
+
+COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc $APP/
+COPY viz-lib $APP/viz-lib
+RUN npm install -g pnpm@10.30.3 && pnpm install --frozen-lockfile > /dev/null
+
+COPY . $APP
+
+RUN ./node_modules/.bin/cypress verify
diff --git a/.circleci/docker-compose.circle.yml b/.ci/compose.ci.yaml
similarity index 55%
rename from .circleci/docker-compose.circle.yml
rename to .ci/compose.ci.yaml
index 84ef76a823..984bf7b123 100644
--- a/.circleci/docker-compose.circle.yml
+++ b/.ci/compose.ci.yaml
@@ -1,4 +1,3 @@
-version: '2.2'
services:
redash:
build: ../
@@ -12,11 +11,15 @@ services:
PYTHONUNBUFFERED: 0
REDASH_LOG_LEVEL: "INFO"
REDASH_REDIS_URL: "redis://redis:6379/0"
- REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
+ POSTGRES_PASSWORD: "FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb"
+ REDASH_DATABASE_URL: "postgresql://postgres:FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb@postgres/postgres"
+ REDASH_COOKIE_SECRET: "2H9gNG9obnAQ9qnR9BDTQUph6CbXKCzF"
redis:
- image: redis:3.0-alpine
+ image: redis:7-alpine
restart: unless-stopped
postgres:
- image: postgres:9.5.6-alpine
+ image: postgres:18-alpine
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
restart: unless-stopped
+ environment:
+ POSTGRES_HOST_AUTH_METHOD: "trust"
diff --git a/.circleci/docker-compose.cypress.yml b/.ci/compose.cypress.yaml
similarity index 80%
rename from .circleci/docker-compose.cypress.yml
rename to .ci/compose.cypress.yaml
index d265c85744..ba95f53fec 100644
--- a/.circleci/docker-compose.cypress.yml
+++ b/.ci/compose.cypress.yaml
@@ -1,17 +1,17 @@
-version: "2.2"
x-redash-service: &redash-service
build:
context: ../
args:
- skip_dev_deps: "true"
- skip_ds_deps: "true"
+ install_groups: "main"
code_coverage: ${CODE_COVERAGE}
x-redash-environment: &redash-environment
REDASH_LOG_LEVEL: "INFO"
REDASH_REDIS_URL: "redis://redis:6379/0"
- REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
+ POSTGRES_PASSWORD: "FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb"
+ REDASH_DATABASE_URL: "postgresql://postgres:FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb@postgres/postgres"
REDASH_RATELIMIT_ENABLED: "false"
REDASH_ENFORCE_CSRF: "true"
+ REDASH_COOKIE_SECRET: "2H9gNG9obnAQ9qnR9BDTQUph6CbXKCzF"
services:
server:
<<: *redash-service
@@ -43,7 +43,7 @@ services:
ipc: host
build:
context: ../
- dockerfile: .circleci/Dockerfile.cypress
+ dockerfile: .ci/Dockerfile.cypress
depends_on:
- server
- worker
@@ -63,9 +63,11 @@ services:
CYPRESS_PROJECT_ID: ${CYPRESS_PROJECT_ID}
CYPRESS_RECORD_KEY: ${CYPRESS_RECORD_KEY}
redis:
- image: redis:3.0-alpine
+ image: redis:7-alpine
restart: unless-stopped
postgres:
- image: postgres:9.5.6-alpine
+ image: postgres:18-alpine
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
restart: unless-stopped
+ environment:
+ POSTGRES_HOST_AUTH_METHOD: "trust"
diff --git a/.ci/docker_build b/.ci/docker_build
new file mode 100755
index 0000000000..324c7e996e
--- /dev/null
+++ b/.ci/docker_build
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# This script only needs to run on the main Redash repo
+
+if [ "${GITHUB_REPOSITORY}" != "getredash/redash" ]; then
+ echo "Skipping image build for Docker Hub, as this isn't the main Redash repository"
+ exit 0
+fi
+
+if [ "${GITHUB_REF_NAME}" != "master" ] && [ "${GITHUB_REF_NAME}" != "preview-image" ]; then
+ echo "Skipping image build for Docker Hub, as this isn't the 'master' nor 'preview-image' branch"
+ exit 0
+fi
+
+if [ "x${DOCKER_USER}" = "x" ] || [ "x${DOCKER_PASS}" = "x" ]; then
+ echo "Skipping image build for Docker Hub, as the login details aren't available"
+ exit 0
+fi
+
+set -e
+VERSION=$(jq -r .version package.json)
+VERSION_TAG="$VERSION.b${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}"
+
+export DOCKER_BUILDKIT=1
+export COMPOSE_DOCKER_CLI_BUILD=1
+
+docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}"
+
+DOCKERHUB_REPO="redash/redash"
+DOCKER_TAGS="-t redash/redash:preview -t redash/preview:${VERSION_TAG}"
+
+# Build the docker container
+docker build --build-arg install_groups="main,all_ds,dev" ${DOCKER_TAGS} .
+
+# Push the container to the preview build locations
+docker push "${DOCKERHUB_REPO}:preview"
+docker push "redash/preview:${VERSION_TAG}"
+
+echo "Built: ${VERSION_TAG}"
diff --git a/.circleci/pack b/.ci/pack
similarity index 100%
rename from .circleci/pack
rename to .ci/pack
diff --git a/.ci/update_version b/.ci/update_version
new file mode 100755
index 0000000000..53b537208c
--- /dev/null
+++ b/.ci/update_version
@@ -0,0 +1,6 @@
+#!/bin/bash
+VERSION=$(jq -r .version package.json)
+FULL_VERSION=${VERSION}+b${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}
+
+sed -ri "s/^__version__ = '([A-Za-z0-9.-]*)'/__version__ = '${FULL_VERSION}'/" redash/__init__.py
+sed -i "s/dev/${GITHUB_SHA}/" client/app/version.json
diff --git a/.circleci/Dockerfile.cypress b/.circleci/Dockerfile.cypress
deleted file mode 100644
index 0681a9910f..0000000000
--- a/.circleci/Dockerfile.cypress
+++ /dev/null
@@ -1,12 +0,0 @@
-FROM cypress/browsers:node14.0.0-chrome84
-
-ENV APP /usr/src/app
-WORKDIR $APP
-
-COPY package.json package-lock.json $APP/
-COPY viz-lib $APP/viz-lib
-RUN npm ci > /dev/null
-
-COPY . $APP
-
-RUN ./node_modules/.bin/cypress verify
diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index ded3ad6dee..0000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,177 +0,0 @@
-version: 2.0
-
-build-docker-image-job: &build-docker-image-job
- docker:
- - image: circleci/node:12
- steps:
- - setup_remote_docker
- - checkout
- - run: sudo apt update
- - run: sudo apt install python3-pip
- - run: sudo pip3 install -r requirements_bundles.txt
- - run: .circleci/update_version
- - run: npm run bundle
- - run: .circleci/docker_build
-jobs:
- backend-lint:
- docker:
- - image: circleci/python:3.7.0
- steps:
- - checkout
- - run: sudo pip install flake8
- - run: ./bin/flake8_tests.sh
- backend-unit-tests:
- environment:
- COMPOSE_FILE: .circleci/docker-compose.circle.yml
- COMPOSE_PROJECT_NAME: redash
- docker:
- - image: circleci/buildpack-deps:xenial
- steps:
- - setup_remote_docker
- - checkout
- - run:
- name: Build Docker Images
- command: |
- set -x
- docker-compose build --build-arg skip_ds_deps=true --build-arg skip_frontend_build=true
- docker-compose up -d
- sleep 10
- - run:
- name: Create Test Database
- command: docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests;"
- - run:
- name: List Enabled Query Runners
- command: docker-compose run --rm redash manage ds list_types
- - run:
- name: Run Tests
- command: docker-compose run --name tests redash tests --junitxml=junit.xml --cov-report xml --cov=redash --cov-config .coveragerc tests/
- - run:
- name: Copy Test Results
- command: |
- mkdir -p /tmp/test-results/unit-tests
- docker cp tests:/app/coverage.xml ./coverage.xml
- docker cp tests:/app/junit.xml /tmp/test-results/unit-tests/results.xml
- when: always
- - store_test_results:
- path: /tmp/test-results
- - store_artifacts:
- path: coverage.xml
- frontend-lint:
- environment:
- CYPRESS_INSTALL_BINARY: 0
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- docker:
- - image: circleci/node:12
- steps:
- - checkout
- - run: mkdir -p /tmp/test-results/eslint
- - run: npm ci
- - run: npm run lint:ci
- - store_test_results:
- path: /tmp/test-results
- frontend-unit-tests:
- environment:
- CYPRESS_INSTALL_BINARY: 0
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- docker:
- - image: circleci/node:12
- steps:
- - checkout
- - run: sudo apt update
- - run: sudo apt install python3-pip
- - run: sudo pip3 install -r requirements_bundles.txt
- - run: npm ci
- - run: npm run bundle
- - run:
- name: Run App Tests
- command: npm test
- - run:
- name: Run Visualizations Tests
- command: (cd viz-lib && npm test)
- - run: npm run lint
- frontend-e2e-tests:
- environment:
- COMPOSE_FILE: .circleci/docker-compose.cypress.yml
- COMPOSE_PROJECT_NAME: cypress
- PERCY_TOKEN_ENCODED: ZGRiY2ZmZDQ0OTdjMzM5ZWE0ZGQzNTZiOWNkMDRjOTk4Zjg0ZjMxMWRmMDZiM2RjOTYxNDZhOGExMjI4ZDE3MA==
- CYPRESS_PROJECT_ID_ENCODED: OTI0Y2th
- CYPRESS_RECORD_KEY_ENCODED: YzA1OTIxMTUtYTA1Yy00NzQ2LWEyMDMtZmZjMDgwZGI2ODgx
- CYPRESS_INSTALL_BINARY: 0
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
- docker:
- - image: circleci/node:12
- steps:
- - setup_remote_docker
- - checkout
- - run:
- name: Enable Code Coverage report for master branch
- command: |
- if [ "$CIRCLE_BRANCH" = "master" ]; then
- echo 'export CODE_COVERAGE=true' >> $BASH_ENV
- source $BASH_ENV
- fi
- - run:
- name: Install npm dependencies
- command: |
- npm ci
- - run:
- name: Setup Redash server
- command: |
- npm run cypress build
- npm run cypress start -- --skip-db-seed
- docker-compose run cypress npm run cypress db-seed
- - run:
- name: Execute Cypress tests
- command: npm run cypress run-ci
- - run:
- name: "Failure: output container logs to console"
- command: |
- docker-compose logs
- when: on_fail
- - run:
- name: Copy Code Coverage results
- command: |
- docker cp cypress:/usr/src/app/coverage ./coverage || true
- when: always
- - store_artifacts:
- path: coverage
- build-docker-image: *build-docker-image-job
- build-preview-docker-image: *build-docker-image-job
-workflows:
- version: 2
- build:
- jobs:
- - backend-lint
- - backend-unit-tests:
- requires:
- - backend-lint
- - frontend-lint
- - frontend-unit-tests:
- requires:
- - backend-lint
- - frontend-lint
- - frontend-e2e-tests:
- requires:
- - frontend-lint
- - build-preview-docker-image:
- requires:
- - backend-unit-tests
- - frontend-unit-tests
- - frontend-e2e-tests
- filters:
- branches:
- only:
- - master
- - hold:
- type: approval
- requires:
- - backend-unit-tests
- - frontend-unit-tests
- - frontend-e2e-tests
- filters:
- branches:
- only:
- - /release\/.*/
- - build-docker-image:
- requires:
- - hold
diff --git a/.circleci/docker_build b/.circleci/docker_build
deleted file mode 100755
index e105c584e0..0000000000
--- a/.circleci/docker_build
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-VERSION=$(jq -r .version package.json)
-VERSION_TAG=$VERSION.b$CIRCLE_BUILD_NUM
-
-docker login -u $DOCKER_USER -p $DOCKER_PASS
-
-if [ $CIRCLE_BRANCH = master ] || [ $CIRCLE_BRANCH = preview-image ]
-then
- docker build --build-arg skip_dev_deps=true -t redash/redash:preview -t redash/preview:$VERSION_TAG .
- docker push redash/redash:preview
- docker push redash/preview:$VERSION_TAG
-else
- docker build --build-arg skip_dev_deps=true -t redash/redash:$VERSION_TAG .
- docker push redash/redash:$VERSION_TAG
-fi
-
-echo "Built: $VERSION_TAG"
\ No newline at end of file
diff --git a/.circleci/update_version b/.circleci/update_version
deleted file mode 100755
index d397fb23df..0000000000
--- a/.circleci/update_version
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-VERSION=$(jq -r .version package.json)
-FULL_VERSION=$VERSION+b$CIRCLE_BUILD_NUM
-
-sed -ri "s/^__version__ = '([A-Za-z0-9.-]*)'/__version__ = '$FULL_VERSION'/" redash/__init__.py
-sed -i "s/dev/$CIRCLE_SHA1/" client/app/version.json
diff --git a/.dockerignore b/.dockerignore
index 8e3dfae173..b5a2c33ebb 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,5 +1,4 @@
client/.tmp/
-client/dist/
node_modules/
viz-lib/node_modules/
.tmp/
diff --git a/.github/ISSUE_TEMPLATE/---bug_report.md b/.github/ISSUE_TEMPLATE/---bug_report.md
index f376d6f1ce..1399ef7791 100644
--- a/.github/ISSUE_TEMPLATE/---bug_report.md
+++ b/.github/ISSUE_TEMPLATE/---bug_report.md
@@ -7,10 +7,10 @@ about: Report reproducible software issues so we can improve
We use GitHub only for bug reports 🐛
-Anything else should be posted to https://discuss.redash.io 👫
+Anything else should be a discussion: https://github.com/getredash/redash/discussions/ 👫
-🚨For support, help & questions use https://discuss.redash.io/c/support
-💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests
+🚨For support, help & questions use https://github.com/getredash/redash/discussions/categories/q-a
+💡For feature requests & ideas use https://github.com/getredash/redash/discussions/categories/ideas
**Found a security vulnerability?** Please email security@redash.io to report any security vulnerabilities. We will acknowledge receipt of your vulnerability and strive to send you regular updates about our progress. If you're curious about the status of your disclosure please feel free to email us again. If you want to encrypt your disclosure email, you can use this PGP key.
diff --git a/.github/ISSUE_TEMPLATE/--anything_else.md b/.github/ISSUE_TEMPLATE/--anything_else.md
index 9db411b781..d6886cc4ce 100644
--- a/.github/ISSUE_TEMPLATE/--anything_else.md
+++ b/.github/ISSUE_TEMPLATE/--anything_else.md
@@ -1,17 +1,17 @@
---
name: "\U0001F4A1Anything else"
-about: "For help, support, features & ideas - please use https://discuss.redash.io \U0001F46B "
+about: "For help, support, features & ideas - please use Discussions \U0001F46B "
labels: "Support Question"
---
We use GitHub only for bug reports 🐛
-Anything else should be posted to https://discuss.redash.io 👫
+Anything else should be a discussion: https://github.com/getredash/redash/discussions/ 👫
-🚨For support, help & questions use https://discuss.redash.io/c/support
-💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests
+🚨For support, help & questions use https://github.com/getredash/redash/discussions/categories/q-a
+💡For feature requests & ideas use https://github.com/getredash/redash/discussions/categories/ideas
Alternatively, check out these resources below. Thanks! 😁.
-- [Forum](https://disucss.redash.io)
+- [Discussions](https://github.com/getredash/redash/discussions/)
- [Knowledge Base](https://redash.io/help)
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index a4e1d25210..8b6e58a6f2 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -1,15 +1,26 @@
-## What type of PR is this? (check all applicable)
-
+## What type of PR is this?
+
- [ ] Refactor
- [ ] Feature
- [ ] Bug Fix
-- [ ] New Query Runner (Data Source)
+- [ ] New Query Runner (Data Source)
- [ ] New Alert Destination
- [ ] Other
## Description
+
+
+## How is this tested?
+
+- [ ] Unit tests (pytest, jest)
+- [ ] E2E Tests (Cypress)
+- [ ] Manually
+- [ ] N/A
+
+
## Related Tickets & Documents
+
## Mobile & Desktop Screenshots/Recordings (if there are UI changes)
diff --git a/.github/support.yml b/.github/support.yml
deleted file mode 100644
index 164b588b36..0000000000
--- a/.github/support.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Configuration for Support Requests - https://github.com/dessant/support-requests
-
-# Label used to mark issues as support requests
-supportLabel: Support Question
-
-# Comment to post on issues marked as support requests, `{issue-author}` is an
-# optional placeholder. Set to `false` to disable
-supportComment: >
- :wave: @{issue-author}, we use the issue tracker exclusively for bug reports
- and planned work. However, this issue appears to be a support request.
- Please use [our forum](https://discuss.redash.io) to get help.
-
-# Close issues marked as support requests
-close: true
-
-# Lock issues marked as support requests
-lock: false
-
-# Assign `off-topic` as the reason for locking. Set to `false` to disable
-setLockReason: true
-
-# Repository to extend settings from
-# _extends: repo
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000000..a6228233b8
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,180 @@
+name: Tests
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+env:
+ NODE_VERSION: 24
+ PNPM_VERSION: 10.30.3
+jobs:
+ backend-lint:
+ runs-on: ubuntu-22.04
+ steps:
+ - if: github.event.pull_request.mergeable == 'false'
+ name: Exit if PR is not mergeable
+ run: exit 1
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+ ref: ${{ github.event.pull_request.head.sha }}
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.13'
+ - run: python -m pip install black==23.1.0 ruff==0.0.287
+ - run: ruff check .
+ - run: black --check .
+
+ backend-unit-tests:
+ runs-on: ubuntu-22.04
+ needs: backend-lint
+ env:
+ COMPOSE_FILE: .ci/compose.ci.yaml
+ COMPOSE_PROJECT_NAME: redash
+ COMPOSE_DOCKER_CLI_BUILD: 1
+ DOCKER_BUILDKIT: 1
+ steps:
+ - if: github.event.pull_request.mergeable == 'false'
+ name: Exit if PR is not mergeable
+ run: exit 1
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+ ref: ${{ github.event.pull_request.head.sha }}
+ - name: Build Docker Images
+ run: |
+ set -x
+ docker compose build --build-arg install_groups="main,all_ds,dev" --build-arg skip_frontend_build=true
+ docker compose up -d
+ sleep 10
+ - name: Create Test Database
+ run: docker compose -p redash run --rm postgres psql -h postgres -U postgres -c "create database tests;"
+ - name: List Enabled Query Runners
+ run: docker compose -p redash run --rm redash manage ds list_types
+ - name: Run Tests
+ run: docker compose -p redash run --name tests redash tests --junitxml=junit.xml --cov-report=xml --cov=redash --cov-config=.coveragerc tests/
+ - name: Copy Test Results
+ run: |
+ mkdir -p /tmp/test-results/unit-tests
+ docker cp tests:/app/coverage.xml ./coverage.xml
+ docker cp tests:/app/junit.xml /tmp/test-results/unit-tests/results.xml
+ # - name: Upload coverage reports to Codecov
+ # uses: codecov/codecov-action@v3
+ # with:
+ # token: ${{ secrets.CODECOV_TOKEN }}
+ - name: Store Test Results
+ uses: actions/upload-artifact@v4
+ with:
+ name: backend-test-results
+ path: /tmp/test-results
+ - name: Store Coverage Results
+ uses: actions/upload-artifact@v4
+ with:
+ name: coverage
+ path: coverage.xml
+
+ frontend-lint:
+ runs-on: ubuntu-22.04
+ steps:
+ - if: github.event.pull_request.mergeable == 'false'
+ name: Exit if PR is not mergeable
+ run: exit 1
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+ ref: ${{ github.event.pull_request.head.sha }}
+ - uses: pnpm/action-setup@v4
+ with:
+ version: ${{ env.PNPM_VERSION }}
+ - uses: actions/setup-node@v4
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+ cache: 'pnpm'
+ - name: Install Dependencies
+ run: pnpm install --frozen-lockfile
+ - name: Run Lint
+ run: pnpm run lint:ci
+ - name: Store Test Results
+ uses: actions/upload-artifact@v4
+ with:
+ name: frontend-test-results
+ path: /tmp/test-results
+
+ frontend-unit-tests:
+ runs-on: ubuntu-22.04
+ needs: frontend-lint
+ steps:
+ - if: github.event.pull_request.mergeable == 'false'
+ name: Exit if PR is not mergeable
+ run: exit 1
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+ ref: ${{ github.event.pull_request.head.sha }}
+ - uses: pnpm/action-setup@v4
+ with:
+ version: ${{ env.PNPM_VERSION }}
+ - uses: actions/setup-node@v4
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+ cache: 'pnpm'
+ - name: Install Dependencies
+ run: pnpm install --frozen-lockfile
+ - name: Run App Tests
+ run: pnpm run test
+ - name: Run Visualizations Tests
+ run: pnpm --filter @redash/viz test
+ - run: pnpm run lint
+
+ frontend-e2e-tests:
+ runs-on: ubuntu-22.04
+ needs: frontend-lint
+ env:
+ COMPOSE_FILE: .ci/compose.cypress.yaml
+ COMPOSE_PROJECT_NAME: cypress
+ CYPRESS_INSTALL_BINARY: 0
+ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
+ # PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
+ # CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
+ # CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
+ steps:
+ - if: github.event.pull_request.mergeable == 'false'
+ name: Exit if PR is not mergeable
+ run: exit 1
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+ ref: ${{ github.event.pull_request.head.sha }}
+ - uses: pnpm/action-setup@v4
+ with:
+ version: ${{ env.PNPM_VERSION }}
+ - uses: actions/setup-node@v4
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+ cache: 'pnpm'
+ - name: Enable Code Coverage Report For Master Branch
+ if: endsWith(github.ref, '/master')
+ run: |
+ echo "CODE_COVERAGE=true" >> "$GITHUB_ENV"
+ - name: Install Dependencies
+ run: pnpm install --frozen-lockfile
+ - name: Setup Redash Server
+ run: |
+ set -x
+ pnpm run cypress build
+ pnpm run cypress start -- --skip-db-seed
+ docker compose run cypress pnpm run cypress db-seed
+ - name: Execute Cypress Tests
+ run: pnpm run cypress run-ci
+ - name: "Failure: output container logs to console"
+ if: failure()
+ run: docker compose logs
+ - name: Copy Code Coverage Results
+ run: docker cp cypress:/usr/src/app/coverage ./coverage || true
+ - name: Store Coverage Results
+ uses: actions/upload-artifact@v4
+ with:
+ name: coverage
+ path: coverage
diff --git a/.github/workflows/periodic-snapshot.yml b/.github/workflows/periodic-snapshot.yml
new file mode 100644
index 0000000000..cc9f82b855
--- /dev/null
+++ b/.github/workflows/periodic-snapshot.yml
@@ -0,0 +1,86 @@
+name: Periodic Snapshot
+
+on:
+ schedule:
+ - cron: '10 0 1 * *' # 10 minutes after midnight on the first day of every month
+ workflow_dispatch:
+ inputs:
+ bump:
+ description: 'Bump the last digit of the version'
+ required: false
+ type: boolean
+ version:
+ description: 'Specific version to set'
+ required: false
+ default: ''
+
+env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+permissions:
+ actions: write
+ contents: write
+
+jobs:
+ bump-version-and-tag:
+ runs-on: ubuntu-latest
+ if: github.ref_name == github.event.repository.default_branch
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ ssh-key: ${{ secrets.ACTION_PUSH_KEY }}
+
+ - run: |
+ git config user.name 'github-actions[bot]'
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
+
+ # Function to bump the version
+ bump_version() {
+ local version="$1"
+ local IFS=.
+ read -r major minor patch <<< "$version"
+ patch=$((patch + 1))
+ echo "$major.$minor.$patch-dev"
+ }
+
+ # Determine the new version tag
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
+ BUMP_INPUT="${{ github.event.inputs.bump }}"
+ SPECIFIC_VERSION="${{ github.event.inputs.version }}"
+
+ # Check if both bump and specific version are provided
+ if [ "$BUMP_INPUT" = "true" ] && [ -n "$SPECIFIC_VERSION" ]; then
+ echo "::error::Error: Cannot specify both bump and specific version."
+ exit 1
+ fi
+
+ if [ -n "$SPECIFIC_VERSION" ]; then
+ TAG_NAME="$SPECIFIC_VERSION-dev"
+ elif [ "$BUMP_INPUT" = "true" ]; then
+ CURRENT_VERSION=$(grep '"version":' package.json | awk -F\" '{print $4}')
+ TAG_NAME=$(bump_version "$CURRENT_VERSION")
+ else
+ echo "No version bump or specific version provided for manual dispatch."
+ exit 1
+ fi
+ else
+ TAG_NAME="$(date +%y.%m).0-dev"
+ fi
+
+ echo "New version tag: $TAG_NAME"
+
+ # Update version in files
+ gawk -i inplace -F: -v q=\" -v tag=${TAG_NAME} '/^ "version": / { print $1 FS, q tag q ","; next} { print }' package.json
+ gawk -i inplace -F= -v q=\" -v tag=${TAG_NAME} '/^__version__ =/ { print $1 FS, q tag q; next} { print }' redash/__init__.py
+ gawk -i inplace -F= -v q=\" -v tag=${TAG_NAME} '/^version =/ { print $1 FS, q tag q; next} { print }' pyproject.toml
+
+ git add package.json redash/__init__.py pyproject.toml
+ git commit -m "Snapshot: ${TAG_NAME}"
+ git tag ${TAG_NAME}
+ git push --atomic origin master refs/tags/${TAG_NAME}
+
+ # Run the 'preview-image' workflow if run this workflow manually
+ # For more information, please see the: https://docs.github.com/en/actions/security-guides/automatic-token-authentication
+ if [ "$BUMP_INPUT" = "true" ] || [ -n "$SPECIFIC_VERSION" ]; then
+ gh workflow run preview-image.yml --ref $TAG_NAME
+ fi
diff --git a/.github/workflows/preview-image.yml b/.github/workflows/preview-image.yml
new file mode 100644
index 0000000000..179953515d
--- /dev/null
+++ b/.github/workflows/preview-image.yml
@@ -0,0 +1,186 @@
+name: Preview Image
+on:
+ push:
+ tags:
+ - '*-dev'
+ workflow_dispatch:
+ inputs:
+ dockerRepository:
+ description: 'Docker repository'
+ required: true
+ default: 'preview'
+ type: choice
+ options:
+ - preview
+ - redash
+
+env:
+ NODE_VERSION: 24
+
+jobs:
+ build-skip-check:
+ runs-on: ubuntu-22.04
+ outputs:
+ skip: ${{ steps.skip-check.outputs.skip }}
+ steps:
+ - name: Skip?
+ id: skip-check
+ run: |
+ if [[ "${{ vars.DOCKER_USER }}" == '' ]]; then
+ echo 'Docker user is empty. Skipping build+push'
+ echo skip=true >> "$GITHUB_OUTPUT"
+ elif [[ "${{ secrets.DOCKER_PASS }}" == '' ]]; then
+ echo 'Docker password is empty. Skipping build+push'
+ echo skip=true >> "$GITHUB_OUTPUT"
+ elif [[ "${{ vars.DOCKER_REPOSITORY }}" == '' ]]; then
+ echo 'Docker repository is empty. Skipping build+push'
+ echo skip=true >> "$GITHUB_OUTPUT"
+ else
+ echo 'Docker user and password are set and branch is `master`.'
+ echo 'Building + pushing `preview` image.'
+ echo skip=false >> "$GITHUB_OUTPUT"
+ fi
+
+ build-docker-image:
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ arch:
+ - amd64
+ - arm64
+ include:
+ - arch: amd64
+ os: ubuntu-22.04
+ - arch: arm64
+ os: ubuntu-22.04-arm
+ outputs:
+ VERSION_TAG: ${{ steps.version.outputs.VERSION_TAG }}
+ needs:
+ - build-skip-check
+ if: needs.build-skip-check.outputs.skip == 'false'
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+ ref: ${{ github.event.push.after }}
+
+ - uses: pnpm/action-setup@v4
+ with:
+ version: 10.30.3
+ - uses: actions/setup-node@v4
+ with:
+ node-version: ${{ env.NODE_VERSION }}
+ cache: 'pnpm'
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Login to DockerHub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ vars.DOCKER_USER }}
+ password: ${{ secrets.DOCKER_PASS }}
+
+ - name: Install Dependencies
+ env:
+ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
+ run: pnpm install --frozen-lockfile
+
+ - name: Set version
+ id: version
+ run: |
+ set -x
+ .ci/update_version
+ VERSION_TAG=$(jq -r .version package.json)
+ echo "VERSION_TAG=$VERSION_TAG" >> "$GITHUB_OUTPUT"
+
+ - name: Build and push preview image to Docker Hub
+ id: build-preview
+ uses: docker/build-push-action@v4
+ if: ${{ github.event.inputs.dockerRepository == 'preview' || !github.event.workflow_run }}
+ with:
+ tags: |
+ ${{ vars.DOCKER_REPOSITORY }}/redash
+ ${{ vars.DOCKER_REPOSITORY }}/preview
+ context: .
+ build-args: |
+ test_all_deps=true
+ outputs: type=image,push-by-digest=true,push=true
+ cache-from: type=gha,scope=${{ matrix.arch }}
+ cache-to: type=gha,mode=max,scope=${{ matrix.arch }}
+ env:
+ DOCKER_CONTENT_TRUST: true
+
+ - name: Build and push release image to Docker Hub
+ id: build-release
+ uses: docker/build-push-action@v4
+ if: ${{ github.event.inputs.dockerRepository == 'redash' }}
+ with:
+ tags: |
+ ${{ vars.DOCKER_REPOSITORY }}/redash:${{ steps.version.outputs.VERSION_TAG }}
+ context: .
+ build-args: |
+ test_all_deps=true
+ outputs: type=image,push-by-digest=false,push=true
+ cache-from: type=gha,scope=${{ matrix.arch }}
+ cache-to: type=gha,mode=max,scope=${{ matrix.arch }}
+ env:
+ DOCKER_CONTENT_TRUST: true
+
+ - name: "Failure: output container logs to console"
+ if: failure()
+ run: docker compose logs
+
+ - name: Export digest
+ run: |
+ mkdir -p ${{ runner.temp }}/digests
+ if [[ "${{ github.event.inputs.dockerRepository }}" == 'preview' || !github.event.workflow_run ]]; then
+ digest="${{ steps.build-preview.outputs.digest}}"
+ else
+ digest="${{ steps.build-release.outputs.digest}}"
+ fi
+ touch "${{ runner.temp }}/digests/${digest#sha256:}"
+
+ - name: Upload digest
+ uses: actions/upload-artifact@v4
+ with:
+ name: digests-${{ matrix.arch }}
+ path: ${{ runner.temp }}/digests/*
+ if-no-files-found: error
+
+ merge-docker-image:
+ runs-on: ubuntu-22.04
+ needs: build-docker-image
+ steps:
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Login to DockerHub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ vars.DOCKER_USER }}
+ password: ${{ secrets.DOCKER_PASS }}
+
+ - name: Download digests
+ uses: actions/download-artifact@v4
+ with:
+ path: ${{ runner.temp }}/digests
+ pattern: digests-*
+ merge-multiple: true
+
+ - name: Create and push manifest for the preview image
+ if: ${{ github.event.inputs.dockerRepository == 'preview' || !github.event.workflow_run }}
+ working-directory: ${{ runner.temp }}/digests
+ run: |
+ docker buildx imagetools create -t ${{ vars.DOCKER_REPOSITORY }}/redash:preview \
+ $(printf '${{ vars.DOCKER_REPOSITORY }}/redash:preview@sha256:%s ' *)
+ docker buildx imagetools create -t ${{ vars.DOCKER_REPOSITORY }}/preview:${{ needs.build-docker-image.outputs.VERSION_TAG }} \
+ $(printf '${{ vars.DOCKER_REPOSITORY }}/preview:${{ needs.build-docker-image.outputs.VERSION_TAG }}@sha256:%s ' *)
+
+ - name: Create and push manifest for the release image
+ if: ${{ github.event.inputs.dockerRepository == 'redash' }}
+ working-directory: ${{ runner.temp }}/digests
+ run: |
+ docker buildx imagetools create -t ${{ vars.DOCKER_REPOSITORY }}/redash:${{ needs.build-docker-image.outputs.VERSION_TAG }} \
+ $(printf '${{ vars.DOCKER_REPOSITORY }}/redash:${{ needs.build-docker-image.outputs.VERSION_TAG }}@sha256:%s ' *)
diff --git a/.github/workflows/restyled.yml b/.github/workflows/restyled.yml
new file mode 100644
index 0000000000..3482740947
--- /dev/null
+++ b/.github/workflows/restyled.yml
@@ -0,0 +1,36 @@
+name: Restyled
+
+on:
+ pull_request:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ restyled:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+
+ - uses: restyled-io/actions/setup@v4
+ - id: restyler
+ uses: restyled-io/actions/run@v4
+ with:
+ fail-on-differences: true
+
+ - if: |
+ !cancelled() &&
+ steps.restyler.outputs.success == 'true' &&
+ github.event.pull_request.head.repo.full_name == github.repository
+ uses: peter-evans/create-pull-request@v6
+ with:
+ base: ${{ steps.restyler.outputs.restyled-base }}
+ branch: ${{ steps.restyler.outputs.restyled-head }}
+ title: ${{ steps.restyler.outputs.restyled-title }}
+ body: ${{ steps.restyler.outputs.restyled-body }}
+ labels: "restyled"
+ reviewers: ${{ github.event.pull_request.user.login }}
+ delete-branch: true
diff --git a/.gitignore b/.gitignore
index b324689c96..3fba4897ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ client/dist
_build
.vscode
.env
+.tool-versions
dump.rdb
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000000..cfa06864ae
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1,3 @@
+engine-strict=true
+auto-install-peers=true
+shamefully-hoist=true
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000000..54c65116f1
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+v24
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000000..e8e6795c5e
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,10 @@
+repos:
+ - repo: https://github.com/psf/black
+ rev: 23.1.0
+ hooks:
+ - id: black
+ language_version: python3
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
+ rev: "v0.0.287"
+ hooks:
+ - id: ruff
diff --git a/.restyled.yaml b/.restyled.yaml
index 9a9537ce7a..ddb249dab0 100644
--- a/.restyled.yaml
+++ b/.restyled.yaml
@@ -38,7 +38,9 @@ request_review: author
#
# These can be used to tell other automation to avoid our PRs.
#
-labels: ["Skip CI"]
+labels:
+ - restyled
+ - "Skip CI"
# Labels to ignore
#
@@ -50,13 +52,16 @@ labels: ["Skip CI"]
# Restylers to run, and how
restylers:
- name: black
- image: restyled/restyler-black:v19.10b0
+ image: restyled/restyler-black:v24.4.2
include:
- redash
- tests
- migrations/versions
- name: prettier
- image: restyled/restyler-prettier:v1.19.1-2
+ image: restyled/restyler-prettier:v3.3.2-2
+ command:
+ - prettier
+ - --write
include:
- client/app/**/*.js
- client/app/**/*.jsx
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16d33956ba..6e07704a78 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,471 @@
# Change Log
+## 26.03.0
+
+* Fix regular expression warning ([#7650](https://github.com/getredash/redash/pull/7650))
+* Update Python version to 3.13 ([#7636](https://github.com/getredash/redash/pull/7636))
+* Add last 2 years, last 3 years to the Date Range list ([#7635](https://github.com/getredash/redash/pull/7635))
+* Update plotly.js to 3.3.1, react-pivottable to 0.11.0 ([#7634](https://github.com/getredash/redash/pull/7634))
+* Add pivot chart ([#7632](https://github.com/getredash/redash/pull/7632))
+* Aggregate y value for same x ([#7631](https://github.com/getredash/redash/pull/7631))
+* cli: add --json option to users list command ([#7624](https://github.com/getredash/redash/pull/7624))
+* Update packages for compatibility with setuptools 82 ([#7622](https://github.com/getredash/redash/pull/7622))
+* Fix Elasticsearch connector configuration key mismatch ([#7607](https://github.com/getredash/redash/pull/7607))
+* Support ipv6 for server in ipv6-only kubernetes cluster ([#7596](https://github.com/getredash/redash/pull/7596))
+* fix(destinations): Handle unicode characters in webhook notifications ([#7586](https://github.com/getredash/redash/pull/7586))
+* Add lineShape option for Line and Area charts ([#7582](https://github.com/getredash/redash/pull/7582))
+* Feature/catch notsupported exception ([#7573](https://github.com/getredash/redash/pull/7573))
+* Enhance dashboard parameter handling: persist updated values and apply saved parameters ([#7570](https://github.com/getredash/redash/pull/7570))
+* Update queries.latest_query_data on save ([#7560](https://github.com/getredash/redash/pull/7560))
+* Correct custom chart help text: use newPlot() ([#7557](https://github.com/getredash/redash/pull/7557))
+* SchemaBrowser: on column comment tooltip, show newlines correctly ([#7552](https://github.com/getredash/redash/pull/7552))
+* Query Serach: avoid concurrent search API request ([#7551](https://github.com/getredash/redash/pull/7551))
+* Advanced query search syntax for multi byte search ([#7546](https://github.com/getredash/redash/pull/7546))
+* Make details visualization configurable ([#7535](https://github.com/getredash/redash/pull/7535))
+* Update ace-builds/react-ace to the latest versions ([#7532](https://github.com/getredash/redash/pull/7532))
+* Fix/too many history replace state ([#7530](https://github.com/getredash/redash/pull/7530))
+* Add range slider to the chart ([#7525](https://github.com/getredash/redash/pull/7525))
+* Add "Missing and NULL values" option to scatter chart ([#7523](https://github.com/getredash/redash/pull/7523))
+* fix: webpack missing source-map warning for @plotly/msgbox-gl ([#7522](https://github.com/getredash/redash/pull/7522))
+* keep ordering on search ([#7520](https://github.com/getredash/redash/pull/7520))
+* Fix: null is not shown for text with "Allow HTML content" ([#7519](https://github.com/getredash/redash/pull/7519))
+* Fix stacking bar chart ([#7516](https://github.com/getredash/redash/pull/7516))
+* Update plotly.js to 3.1.0 ([#7514](https://github.com/getredash/redash/pull/7514))
+* Update Poetry to 2.1.4 ([#7509](https://github.com/getredash/redash/pull/7509))
+* Update from webpack4 to webpack5 ([#7507](https://github.com/getredash/redash/pull/7507))
+* Allow HTTP request line more than 4096 bytes ([#7506](https://github.com/getredash/redash/pull/7506))
+* Add "Last 10 years" option for dynamic date range ([#7422](https://github.com/getredash/redash/pull/7422))
+* Make favorite queries/dashboard order by starred at(favorited at) ([#7351](https://github.com/getredash/redash/pull/7351))
+* Fix height for mobile safari not to overlap URL bar ([#7334](https://github.com/getredash/redash/pull/7334))
+* Multi-org: format base path, not including protocol ([#7260](https://github.com/getredash/redash/pull/7260))
+* PostgreSQL
+ * PostgreSQL: Rely on information_schema.columns for views and foreign tables ([#7521](https://github.com/getredash/redash/pull/7521))
+ * PostgreSQL: allow connection parameters to be specified ([#7579](https://github.com/getredash/redash/pull/7579))
+ * changed pg.py has_privileges function to include special characters a… ([#7574](https://github.com/getredash/redash/pull/7574))
+ * Use standard PostgreSQL image and drop clean-all target ([#7555](https://github.com/getredash/redash/pull/7555))
+* MySQL
+ * MySQL: add column type, comment, and table comment on Schema Browser ([#7544](https://github.com/getredash/redash/pull/7544))
+ * Add charset option to RDS MySQL datasource ([#7616](https://github.com/getredash/redash/pull/7616))
+ * fix(mysql): Change default charset to utf8mb4 ([#7615](https://github.com/getredash/redash/pull/7615))
+* BigQuery
+ * BigQuery: show table description tooltip in Schema Browser ([#7543](https://github.com/getredash/redash/pull/7543))
+ * BigQuery: Remove "Job ID" metadata on annotaton to avoid cache misses ([#7541](https://github.com/getredash/redash/pull/7541))
+ * BigQuery: support multiple dataset locations ([#7540](https://github.com/getredash/redash/pull/7540))
+ * BigQuery: show column description(comment) on Schema Browser ([#7538](https://github.com/getredash/redash/pull/7538))
+* DuckDB
+ * Add duckdb support ([#7548](https://github.com/getredash/redash/pull/7548))
+ * duckdb: Show catalog (database) where applicable (e.g. Motherduck) ([#7599](https://github.com/getredash/redash/pull/7599))
+* Trino
+ * Serialize Trino ROW types as JSON objects with field names ([#7644](https://github.com/getredash/redash/pull/7644))
+ * added passing client_tags option to Trino plugin ([#7633](https://github.com/getredash/redash/pull/7633))
+ * Add impersonation option in trino datasource ([#7605](https://github.com/getredash/redash/pull/7605))
+* DB2
+ * Add ibm-db package to enable DB2 as datasource: ([#7581](https://github.com/getredash/redash/pull/7581))
+* Jira
+ * Update jql.py (jira datasource) to use jira api v3 updated. ([#7527](https://github.com/getredash/redash/pull/7527))
+* Snowflake
+ * Add private_key auth method to snowflake query runner ([#7371](https://github.com/getredash/redash/pull/7371))
+
+
+## 25.08.0
+
+* MongoDB: fix for empty username/password (Issue #7486) ([#7487](https://github.com/getredash/redash/pull/7487))
+* clickhouse: display data types ([#7490](https://github.com/getredash/redash/pull/7490))
+* Clickhouse: do not display INFORMATION_SCHEMA tables ([#7489](https://github.com/getredash/redash/pull/7489))
+* Sort Dashboard and Query tags by name([#7484](https://github.com/getredash/redash/pull/7484))
+* Add migration to set default alert selector([#7475](https://github.com/getredash/redash/pull/7475))
+* Make refresh cookie name configurable([#7473](https://github.com/getredash/redash/pull/7473))
+* Make NULL values visible([#7439](https://github.com/getredash/redash/pull/7439))
+* Fix: saving empty query with auto limit crashes([#7430](https://github.com/getredash/redash/pull/7430))
+* Push image using DOCKER_REPOSITORY([#7428](https://github.com/getredash/redash/pull/7428))
+* Update assertion method in JSON dumps test([#7424](https://github.com/getredash/redash/pull/7424))
+* Add translate="no" to html tag to prevent redash from translating and crashing([#7421](https://github.com/getredash/redash/pull/7421))
+* Update Azure Data Explorer query runner to latest version([#7411](https://github.com/getredash/redash/pull/7411))
+* Use 12-column layout for dashboard grid([#7396](https://github.com/getredash/redash/pull/7396))
+* Change BigQuery super class from BaseQueryRunner to BaseSQLQueryRunner([#7378](https://github.com/getredash/redash/pull/7378))
+* Upgrade prettier version to the same version that CI is using([#7367](https://github.com/getredash/redash/pull/7367))
+* Fix table item list ordering([#7366](https://github.com/getredash/redash/pull/7366))
+* Fix to make "show data labels" works([#7363](https://github.com/getredash/redash/pull/7363))
+* Upgrade plotly.js to version 2 to fix the UI crashing issue([#7359](https://github.com/getredash/redash/pull/7359))
+* TiDB: Exclude INFORMATION_SCHEMA([#7352](https://github.com/getredash/redash/pull/7352))
+* Sanitize NaN, Infinite, -Infinite causing error when saving as PostgreSQL JSON([#7348](https://github.com/getredash/redash/pull/7348))
+* Fix UnboundLocalError when checking alerts for query([#7346](https://github.com/getredash/redash/pull/7346))
+* BigQuery: Avoid too long(10 seconds) interval for bigquery api to get results([#7342](https://github.com/getredash/redash/pull/7342))
+* Add NULLS LAST option for query list ordering([#7341](https://github.com/getredash/redash/pull/7341))
+* TypeScript sourcemap for viz-lib([#7336](https://github.com/getredash/redash/pull/7336))
+* Fix the issue that chart(scatter, bubble, line...) having data with same x-value have wrong y-value([#7330](https://github.com/getredash/redash/pull/7330))
+* Partiallly Revert "Remove workaround from check_csrf() (#6919)" ([#7327](https://github.com/getredash/redash/pull/7327))
+* Make autocomplete always available([#7326](https://github.com/getredash/redash/pull/7326))
+* Include Plotly.js localization([#7323](https://github.com/getredash/redash/pull/7323))
+* Use absolute path for image resources([#7322](https://github.com/getredash/redash/pull/7322))
+* Build/Test
+ * Require vars.DOCKER_REPOSITORY to publish image([#7400](https://github.com/getredash/redash/pull/7400))
+ * ci: snapshot only on default branch([#7355](https://github.com/getredash/redash/pull/7355))
+ * Push by tag name for Docker repository "redash"([#7321](https://github.com/getredash/redash/pull/7321))
+* Dependencies
+ * Bump tar-fs from 2.1.1 to 2.1.2([#7385](https://github.com/getredash/redash/pull/7385))
+
+## 25.01.0
+
+* Support result reuse in Athena data sources ([\#7202](https://github.com/getredash/redash/pull/7202))
+* Handle the case when query runner configuration is an empty dict ([\#7258](https://github.com/getredash/redash/pull/7258))
+* BigQuery: add date, datetime type mapping ([\#7252](https://github.com/getredash/redash/pull/7252))
+* Build/Test
+ * Create workflow trigger for publishing release image ([\#7259](https://github.com/getredash/redash/pull/7259))
+* Dependencies
+ * Bump actions/upload-artifact from v3 to v4 ([\#7266](https://github.com/getredash/redash/pull/7266))
+ * Bump jinja2 from 3.1.4 to 3.1.5 ([\#7262](https://github.com/getredash/redash/pull/7262))
+ * Bump nanoid from 3.3.6 to 3.3.8 ([\#7249](https://github.com/getredash/redash/pull/7249))
+ * Bump to paramiko-3.4.1 ([\#7240](https://github.com/getredash/redash/pull/7240))
+
+## 24.12.0
+
+* Replace ptvsd with debugpy to match modern VS Code ([\#7234](https://github.com/getredash/redash/pull/7234))
+* Alerts: Only evaluate the next state if there's a value ([\#7222](https://github.com/getredash/redash/pull/7222))
+* Bring back version check & beacon reporting ([\#7211](https://github.com/getredash/redash/pull/7211))
+
+## 24.11.0
+
+* Alerts: don't crash when there is no data ([\#7208](https://github.com/getredash/redash/pull/7208))
+* Fix issue with scheduled queries ([\#7111](https://github.com/getredash/redash/pull/7111))
+* Correctly rehash queries in a migration ([\#7184](https://github.com/getredash/redash/pull/7184))
+* Use correct redis connection ([\#7077](https://github.com/getredash/redash/pull/7077))
+* Fix RQ wrongly moving jobs to FailedJobRegistry ([\#7186](https://github.com/getredash/redash/pull/7186))
+* Build/Test
+ * Move restyled to a github action ([\#7191](https://github.com/getredash/redash/pull/7191))
+ * Docker build: use heredoc for multi-line actions ([\#7210](https://github.com/getredash/redash/pull/7210))
+* Dependencies
+ * Bump cryptography from 42.0.8 to 43.0.1 ([\#7205](https://github.com/getredash/redash/pull/7205))
+ * Bump http-proxy-middleware from 2.0.6 to 2.0.7 ([\#7204](https://github.com/getredash/redash/pull/7204))
+ * Bump snowflake-connector-python from 3.12.0 to 3.12.3 ([\#7203](https://github.com/getredash/redash/pull/7203))
+ * Bump restrictedpython from 6.2 to 7.3 ([\#7181](https://github.com/getredash/redash/pull/7181))
+ * Bump elliptic from 6.5.7 to 6.6.0 ([\#7214](https://github.com/getredash/redash/pull/7214))
+
+## 24.10.0
+
+* Get rid of the strange looking 0 following "Running..." and "runtime" ([\#7099](https://github.com/getredash/redash/pull/7099))
+* Automatically remove orphans when running make up ([\#7164](https://github.com/getredash/redash/pull/7164))
+* Update `make up` to automatically initialize the db ([\#7161](https://github.com/getredash/redash/pull/7161))
+* Better error msg for token validation ([\#7159](https://github.com/getredash/redash/pull/7159))
+* Add REDASH_HOST to the docker compose file ([\#7157](https://github.com/getredash/redash/pull/7157))
+* Make schema refresh timeout configurable via env var ([\#7114](https://github.com/getredash/redash/pull/7114))
+* Dependencies
+ * Update pymssql to fix some problems with macOS ARM64 (`2.3.1`) ([\#7140](https://github.com/getredash/redash/pull/7140))
+ * Bump body-parser from 1.20.1 to 1.20.3 ([\#7156](https://github.com/getredash/redash/pull/7156))
+ * Bump express from 4.19.2 to 4.21.0 ([\#7155](https://github.com/getredash/redash/pull/7155))
+ * Bump path-to-regexp from 3.2.0 to 3.3.0 ([\#7154](https://github.com/getredash/redash/pull/7154))
+ * Bump dompurify from 2.0.17 to 2.5.4 in /viz-lib ([\#7163](https://github.com/getredash/redash/pull/7163))
+
+## 24.09.0
+
+* Add option to choose color scheme for charts ([\#7062](https://github.com/getredash/redash/pull/7062))
+* Add data type to Athena query runner ([\#7112](https://github.com/getredash/redash/pull/7112))
+* Add data type to Redshift query runner ([\#7109](https://github.com/getredash/redash/pull/7109))
+* Fix a display order bug in MongoDB Query Runner ([\#7106](https://github.com/getredash/redash/pull/7106))
+* Add the option to take new custom version for Snapshot ([\#7096](https://github.com/getredash/redash/pull/7096))
+* Update certificates for RDS ([\#7100](https://github.com/getredash/redash/pull/7100))
+* Fix columns duplication on MongoDB Query Runner [\#6640](https://github.com/getredash/redash/pull/6640) ([\#6641](https://github.com/getredash/redash/pull/6641))
+* Get data size in memory for better logs ([\#7090](https://github.com/getredash/redash/pull/7090))
+* Adding Evaluate button for alerts to test them ([\#7032](https://github.com/getredash/redash/pull/7032))
+* Add min/max/first selector for alerts ([\#7076](https://github.com/getredash/redash/pull/7076))([\#7103](https://github.com/getredash/redash/pull/7103))
+* Add support for 'linux/arm64' platforms ([\#7094](https://github.com/getredash/redash/pull/7094))
+* Regressions
+ * Revert "Removed unused configuration class ([\#6682](https://github.com/getredash/redash/pull/6682))" ([\#7071](https://github.com/getredash/redash/pull/7071))
+ * Revert "Adding ability to fix table columns in place ([\#7019](https://github.com/getredash/redash/pull/7019))" ([\#7131](https://github.com/getredash/redash/pull/7131))
+* Dependencies
+ * Fix mismatched poetry version ([\#7122](https://github.com/getredash/redash/pull/7122))
+ * Bump cryptography to 42.0.x & snowflake-connector-python to 3.12.0 ([\#7097](https://github.com/getredash/redash/pull/7097))
+ * Bump webpack from 5.88.2 to 5.94.0 in /viz-lib ([\#7135](https://github.com/getredash/redash/pull/7135))
+ * Bump bootstrap to 3.4.1
+ * Bump sentry-sdk from 1.28.1 to 2.8.0 ([\#7069](https://github.com/getredash/redash/pull/7069))
+ * Bump python-rapidjson to 1.20 ([\#7126](https://github.com/getredash/redash/pull/7126))
+ * Bump elliptic to version 6.5.7 to fix a Dependabot warning ([\#7120](https://github.com/getredash/redash/pull/7120))
+
+## 24.08.0
+
+* Remove defaults set during schema upgrade/downgrade [\#7068](https://github.com/getredash/redash/pull/7068)
+* Athena: Support Arbitrary Catalog ID [\#7059](https://github.com/getredash/redash/pull/7059)
+* Add option to toggle sort on pie charts [\#7055](https://github.com/getredash/redash/pull/7055)
+* Conditionally render tooltip for Edit alert button [\#7054](https://github.com/getredash/redash/pull/7054)
+* Make Redash FIPS compatible [\#7049](https://github.com/getredash/redash/pull/7049)
+* Add a label for Restyler's PR and Bump component version [\#7037](https://github.com/getredash/redash/pull/7037)
+* Add new text pattern parameter input type [\#7025](https://github.com/getredash/redash/pull/7025)
+* Adding ability to fix table columns in place [\#7019](https://github.com/getredash/redash/pull/7019) (_reverted in [#7131](https://github.com/getredash/redash/pull/7131)_)
+* Fixed frontend test deprecation warnings [\#7013](https://github.com/getredash/redash/pull/7013)
+* Dependencies
+ * Bump setuptools from 69.0.3 to 70.0.0 [\#7060](https://github.com/getredash/redash/pull/7060)
+ * Bump requests to 2.32.3 [\#7057](https://github.com/getredash/redash/pull/7057)
+ * Bump zipp from 3.17.0 to 3.19.1 [\#7051](https://github.com/getredash/redash/pull/7051)
+ * Bump certifi from 2023.11.17 to 2024.7.4 [\#7047](https://github.com/getredash/redash/pull/7047)
+ * Bump ws from 5.2.3 to 5.2.4 in /viz-lib [\#7040](https://github.com/getredash/redash/pull/7040)
+
+## 24.07.0
+
+* Map() implementation fix for chart labels [\#7022](https://github.com/getredash/redash/pull/7022)
+* PostgreSQL: Only list tables where schema has USAGE permission [\#7000](https://github.com/getredash/redash/pull/7000)
+* Update to Python 3.10 / Debian 12 [\#6991](https://github.com/getredash/redash/pull/6991)
+* Dependencies
+ * Bump ws from 5.2.3 to 5.2.4 [\#7021](https://github.com/getredash/redash/pull/7021)
+ * Bump urllib3 from 1.26.18 to 1.26.19 [\#7020](https://github.com/getredash/redash/pull/7020)
+
+## 24.06.0 [broken]
+
+* Sync .nvmrc with workflow [\#6958](https://github.com/getredash/redash/pull/6958)
+* Fix 'str' object has no attribute 'pop' error when parsing query [\#6941](https://github.com/getredash/redash/pull/6941)
+* pgautoupgrade now does multi-arch builds [\#6939](https://github.com/getredash/redash/pull/6939)
+* Fix error serialization [\#6937](https://github.com/getredash/redash/pull/6937)
+* Dependencies
+ * Bump requests from 2.31.0 to 2.32.0 [\#6981](https://github.com/getredash/redash/pull/6981)
+ * Bump pyodbc from 4.0.28 to 5.1.0 [\#6962](https://github.com/getredash/redash/pull/6962)
+ * Bump jinja2 from 3.1.3 to 3.1.4 [\#6951](https://github.com/getredash/redash/pull/6951)
+
+
+## 24.05.0 [broken]
+
+* Downgrade 'codecov-action' version from v4 to v3 [\#6930](https://github.com/getredash/redash/pull/6930)
+* Update widgets.py [\#6926](https://github.com/getredash/redash/pull/6926)
+* Use staticPath var to fetch unsupportedRedirect.js [\#6923](https://github.com/getredash/redash/pull/6923)
+* Remove workaround from check\_csrf() [\#6919](https://github.com/getredash/redash/pull/6919)
+* Bugfix: unable to parse elasticsearch index mappings [\#6918](https://github.com/getredash/redash/pull/6918)
+* Consistent rq status naming and handling [\#6913](https://github.com/getredash/redash/pull/6913)
+* Fix: aws elasticsearch typo [\#6899](https://github.com/getredash/redash/pull/6899)
+* Add pydeps Makefile target for installing Python dependencies [\#6890](https://github.com/getredash/redash/pull/6890)
+* Improve the text displayed when using the command line [\#6884](https://github.com/getredash/redash/pull/6884)
+* Fixed local setup to run on ARM64 [\#6877](https://github.com/getredash/redash/pull/6877)
+* Fix for coverage [\#6872](https://github.com/getredash/redash/pull/6872)
+* Use default docker repo name if variable is not defined [\#6870](https://github.com/getredash/redash/pull/6870)
+* Fix percy for a branch [\#6868](https://github.com/getredash/redash/pull/6868)
+* Update yarn to current latest in 1.22.x series [\#6858](https://github.com/getredash/redash/pull/6858)
+* Extend \`make up\` to automatically initialise the database [\#6855](https://github.com/getredash/redash/pull/6855)
+* Remove version check and all of the data sharing [\#6852](https://github.com/getredash/redash/pull/6852)
+* Automatically use the latest version of PostgreSQL [\#6851](https://github.com/getredash/redash/pull/6851)
+* Remove Qubole query runner [\#6848](https://github.com/getredash/redash/pull/6848)
+* Update "make clean" to remove Redash dev Docker images [\#6847](https://github.com/getredash/redash/pull/6847)
+* Handle timedelta in query results [\#6846](https://github.com/getredash/redash/pull/6846)
+* Autoformat hyperlinks in Slack alerts [\#6845](https://github.com/getredash/redash/pull/6845)
+* Flatten all level for MongoDB data source [\#6844](https://github.com/getredash/redash/pull/6844)
+* Filter widget results to fix tests during repeatable execution [\#6693](https://github.com/getredash/redash/pull/6693)
+* Reuse built frontend in ci, merge compose files [\#6674](https://github.com/getredash/redash/pull/6674)
+* Show pg and athena column comments and table descriptions as antd tooltip if they are defined [\#6582](https://github.com/getredash/redash/pull/6582)
+* Dependencies
+ * Bump gunicorn to 22.0.0 [\#6900](https://github.com/getredash/redash/pull/6900)
+ * Bump sqlparse from 0.4.4 to 0.5.0 [\#6895](https://github.com/getredash/redash/pull/6895)
+ * Bump dnspython from 2.4.2 to 2.6.1 [\#6886](https://github.com/getredash/redash/pull/6886)
+ * Bump python-oracledb from 2.0.1 to 2.1.2 [\#6881](https://github.com/getredash/redash/pull/6881)
+ * Bump idna from 3.6 to 3.7 [\#6878](https://github.com/getredash/redash/pull/6878)
+ * Bump tar from 6.1.15 to 6.2.1 [\#6866](https://github.com/getredash/redash/pull/6866)
+ * Bump pymongo from 4.3.3 to 4.6.3 [\#6863](https://github.com/getredash/redash/pull/6863)
+ * Bump Rq from 1.9.0 to 1.16.1 [\#6902](https://github.com/getredash/redash/pull/6902)
+
+## 24.04.0 [broken]
+
+* Handle decimal types in query results [\#6837](https://github.com/getredash/redash/pull/6837)
+* BigQuery: use default for useQueryAnnotation option [\#6824](https://github.com/getredash/redash/pull/6824)
+* Uncaught rejection promise error in Edit Visualization Dialog Modal [\#6794](https://github.com/getredash/redash/pull/6794)
+* Add RisingWave support [\#6776](https://github.com/getredash/redash/pull/6776)
+* Schedule may not contain an until key [\#6771](https://github.com/getredash/redash/pull/6771)
+* ClickHouse query runner: fixed error message [\#6764](https://github.com/getredash/redash/pull/6764)
+* Dependencies
+ * Bump express from 4.18.2 to 4.19.2 [\#6838](https://github.com/getredash/redash/pull/6838)
+ * Bump webpack-dev-middleware from 5.3.3 to 5.3.4 [\#6829](https://github.com/getredash/redash/pull/6829)
+ * Bump jwcrypto from 1.5.1 to 1.5.6 [\#6816](https://github.com/getredash/redash/pull/6816)
+ * Bump follow-redirects from 1.15.5 to 1.15.6 in /viz-lib [\#6813](https://github.com/getredash/redash/pull/6813)
+ * Bump es5-ext from 0.10.53 to 0.10.63 in /viz-lib [\#6782](https://github.com/getredash/redash/pull/6782)
+
+## 24.03.0
+
+- Publish preview Docker image when release candidate is tagged [#6787](https://github.com/getredash/redash/pull/6787) [#6789](https://github.com/getredash/redash/pull/6789)
+
+## 24.02.0
+
+- Converted `text` columns to `jsonb` [#6687](https://github.com/getredash/redash/pull/6687) [#6713](https://github.com/getredash/redash/pull/6713)
+- Update query hash with parameters applied [#6683](https://github.com/getredash/redash/pull/6683)
+
+## 24.01.0
+
+- Prometheus:
+ - Add ssl support [#6657](https://github.com/getredash/redash/pull/6657)
+- Influxdb
+ - Add v2 query runner [#6646](https://github.com/getredash/redash/pull/6646)
+
+## 23.12.0
+
+- Add unarchive button to dashboard
+- Add fork dashboard function
+- Default to last used datasource
+- Regression fix
+ - Revert "Switch from numeral to numbro)" [#6595](https://github.com/getredash/redash/pull/6595)
+
+## 23.11.0
+
+- Add query Runner for Yandex Disk
+- New connection options for MySQL [#6538](https://github.com/getredash/redash/pull/6538)
+- Regression fix
+ - Revert "Render counter widgets using relative font size" [#6566](https://github.com/getredash/redash/pull/6566)
+
+## 23.10.0
+
+- Avoid updating query result for archived queries [#6488](https://github.com/getredash/redash/pull/6488)
+- Add Tinybird query runner [#5616](https://github.com/getredash/redash/pull/5616)
+
+## 23.09.0
+
+- Allow the X and Y tick format to be customized using a [D3 format string](https://redash.io/help/user-guide/visualizations/formatting-axis/) [#6370](https://github.com/getredash/redash/pull/6370)
+- Add support for a default alert template [#5996](https://github.com/getredash/redash/pull/5996)
+- New alert destination: Asana [#5753](https://github.com/getredash/redash/pull/5753)
+- Fix query refresh if name contain control characters [#5602](https://github.com/getredash/redash/pull/5602)
+- Allow RSA key used for JWT to be specified as a file path [#6271](https://github.com/getredash/redash/pull/6271)
+- Add 'click' functionality for Chart visualization
+
+
+
+## V10.1.0 - 2021-11-23
+
+This release includes patches for three security vulnerabilities:
+
+- Insecure default configuration affects installations where REDASH_COOKIE_SECRET is not set explicitly (CVE-2021-41192)
+- SSRF vulnerability affects installations that enabled URL-loading data sources (CVE-2021-43780)
+- Incorrect usage of state parameter in OAuth client code affects installations where Google Login is enabled (CVE-2021-43777)
+
+And a couple features that didn't merge in time for 10.0.0
+
+- Big Query: Speed up schema loading (#5632)
+- Add support for Firebolt data source (#5606)
+- Fix: Loading schema for Sqlite DB with "Order" column name fails (#5623)
+
+## v10.0.0 - 2021-10-01
+
+A few changes were merged during the V10 beta period.
+
+- New Data Source: CSV/Excel Files
+- Fix: Edit Source button disappeared for users without CanEdit permissions
+- We pinned our docker base image to Python3.7-slim-buster to avoid build issues
+- Fix: dashboard list pagination didn't work
+
+## v10.0.0-beta - 2021-06-16
+
+Just over a year since our last release, the V10 beta is ready. Since we never made a non-beta release of V9, we expect many users will upgrade directly from V8 -> V10. This will bring a lot of exciting features. Please check out the V9 beta release notes below to learn more.
+
+This V10 beta incorporates fixes for the feedback we received on the V9 beta along with a few long-requested features (horizontal bar charts!) and other changes to improve UX and reliability.
+
+This release was made possible by contributions from 35+ people (the Github API didn't let us pull handles this time around): Alex Kovar, Alexander Rusanov, Arik Fraimovich, Ben Amor, Christopher Grant, Đặng Minh Dũng, Daniel Lang, deecay, Elad Ossadon, Gabriel Dutra, iwakiriK, Jannis Leidel, Jerry, Jesse Whitehouse, Jiajie Zhong, Jim Sparkman, Jonathan Hult, Josh Bohde, Justin Talbot, koooge, Lei Ni, Levko Kravets, Lingkai Kong, max-voronov, Mike Nason, Nolan Nichols, Omer Lachish, Patrick Yang, peterlee, Rafael Wendel, Sebastian Tramp, simonschneider-db, Tim Gates, Tobias Macey, Vipul Mathur, and Vladislav Denisov
+
+Our special thanks to [Sohail Ahmed](https://pk.linkedin.com/in/sohail-ahmed-755776184) for reporting a vulnerability in our "forgot password" page (#5425)
+
+### Upgrading
+
+(This section is duplicated from the previous release - since many users will upgrade directly from V8 -> V10)
+
+Typically, if you are running your own instance of Redash and wish to upgrade, you would simply modify the Docker tag in your `docker-compose.yml` file. Since RQ has replaced Celery in this version, there are a couple extra modifications that need to be done in your `docker-compose.yml`:
+
+1. Under `services/scheduler/environment`, omit `QUEUES` and `WORKERS_COUNT` (and omit `environment` altogether if it is empty).
+2. Under `services`, add a new service for general RQ jobs:
+
+```yaml
+worker:
+ <<: *redash-service
+ command: worker
+ environment:
+ QUEUES: "periodic emails default"
+ WORKERS_COUNT: 1
+```
+
+Following that, force a recreation of your containers with `docker-compose up --force-recreate --build` and you should be good to go.
+### UX
+- Redash now uses a vertical navbar
+- Dashboard list now includes “My Dashboards” filter
+- Dashboard parameters can now be re-ordered
+- Queries can now be executed with Shift + Enter on all platforms.
+- Added New Dashboard/Query/Alert buttons to corresponding list pages
+- Dashboard text widgets now prompt to confirm before closing the text editor
+- A plus sign is now shown between tags used for search
+- On the queries list view “My Queries” has moved above “Archived”
+- Improved behavior for filtering by tags in list views
+- When a user’s session expires for inactivity, they are prompted to log-in with a pop-up so they don’t lose their place in the app
+- Numerous accessibility changes towards the a11y standard
+- Hide the “Create” menu button if current user doesn’t have permission to any data sources
+
+### Visualizations
+- Feature: Added support for horizontal box plots
+- Feature: Added support for horizontal bar charts
+- Feature: Added “Reverse” option for Chart visualization legend
+- Feature: Added option to align Chart Y-axes at zero
+- Feature: The table visualization header is now fixed when scrolling
+- Feature: Added USA map to choropleth visualization
+- Fix: Selected filters were reset when switching visualizations
+- Fix: Stacked bar chart showed the wrong Y-axis range in some cases
+- Fix: Bar chart with second y axis overlapped data series
+- Fix: Y-axis autoscale failed when min or max was set
+- Fix: Custom JS visualization was broken because of a typo
+- Fix: Too large visualization caused filters block to collapse
+- Fix: Sankey visualization looked inconsistent if the data source returned VARCHAR instead of numeric types
+
+### Structural Updates
+- Redash now prevents CSRF attacks
+- Migration to TypeScript
+- Upgrade to Antd version 4
+### Data Sources
+- New Data Sources: SPARQL Endpoint, Eccenca Corporate Memory, TrinoDB
+- Databricks
+ - Custom Schema Browser that allows switching between databases
+ - Option added to truncate large results
+ - Support for multiple-statement queries
+ - Schema browser can now use eventlet instead of RQ
+- MongoDB:
+ - Moved Username and Password out of the connection string so that password can be stored secretly
+- Oracle:
+ - Fix: Annotated queries always failed. Annotation is now disabled
+- Postgres/CockroachDB:
+ - SSL certfile/keyfile fields are now handled as secret
+- Python:
+ - Feature: Custom built-ins are now supported
+ - Fix: Query runner was not compatible with Python 3
+- Snowflake:
+ - Data source now accepts a custom host address (for use with proxies)
+- TreasureData:
+ - API key field is now handled as secret
+- Yandex:
+ - OAuth token field is now handled as secret
+
+### Alerts
+- Feature: Added ability to mute alerts without deleting them
+- Change: Non-email alert destination details are now obfuscated to avoid leaking sensitive information (webhook URLs, tokens etc.)
+- Fix: numerical comparisons failed if value from query was a string
+
+### Parameters
+- Added “Last 12 months” option for dynamic date ranges
+
+### Bug Fixes
+- Fix: Private addresses were not allowed even when enforcing was disabled
+- Fix: Python query runner wasn’t updated for Python 3
+- Fix: Sorting queries by schedule returned the wrong order
+- Fix: Counter visualization was enormous in some cases
+- Fix: Dashboard URL will now change when the dashboard title changes
+- Fix: URL parameters were removed when forking a query
+- Fix: Create link on data sources page was broken
+- Fix: Queries could be reassigned to read-only data sources
+- Fix: Multi-select dropdown was very slow if there were 1k+ options
+- Fix: Search Input couldn’t be focused or updated while editing a dashboard
+- Fix: The CLI command for “status” did not work
+- Fix: The dashboard list screen displayed too few items under certain pagination configurations
+
+### Other
+- Added an environment variable to disable public sharing links for queries and dashboards
+- Alert destinations are now encrypted at the database
+- The base query runner now has stubs to implement result truncating for other data sources
+- Static SAML configuration and assertion encryption are now supported
+- Adds new component for adding extra actions to the query and dashboard pages
+- Non-admins with at least view_only permission on a dashboard can now make GET requests to the data source resource
+- Added a BLOCKED_DOMAINS setting to prevent sign-ups from emails at specific domains
+- Added a rate limit to the “forgot password” page
+- RQ workers will now shutdown gracefully for known error codes
+- Scheduled execution failure counter now resets following a successful ad hoc execution
+- Redash now deletes locks for cancelled queries
+- Upgraded Ace Editor from v6 to v9
+- Added a periodic job to remove ghost locks
+- Removed content width limit on all pages
+- Introduce a React component
+
## v9.0.0-beta - 2020-06-11
This release was long time in the making and has several major changes:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e9c28e6bc6..e090a0f8fa 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -4,19 +4,7 @@ Thank you for taking the time to contribute! :tada::+1:
The following is a set of guidelines for contributing to Redash. These are guidelines, not rules, please use your best judgement and feel free to propose changes to this document in a pull request.
-## Quick Links:
-
-- [Feature Requests](https://discuss.redash.io/c/feature-requests)
-- [Documentation](https://redash.io/help/)
-- [Blog](https://blog.redash.io/)
-- [Twitter](https://twitter.com/getredash)
-
----
-:star: If you already here and love the project, please make sure to press the Star button. :star:
-
----
-
-
+:star: If you're already here and love the project, please make sure to press the Star button. :star:
## Table of Contents
[How can I contribute?](#how-can-i-contribute)
@@ -32,6 +20,13 @@ The following is a set of guidelines for contributing to Redash. These are guide
- [Release Method](#release-method)
- [Code of Conduct](#code-of-conduct)
+## Quick Links:
+
+- [User Forum](https://github.com/getredash/redash/discussions)
+- [Documentation](https://redash.io/help/)
+
+
+---
## How can I contribute?
### Reporting Bugs
@@ -39,25 +34,54 @@ The following is a set of guidelines for contributing to Redash. These are guide
When creating a new bug report, please make sure to:
- Search for existing issues first. If you find a previous report of your issue, please update the existing issue with additional information instead of creating a new one.
-- If you are not sure if your issue is really a bug or just some configuration/setup problem, please start a discussion in [the support forum](https://discuss.redash.io/c/support) first. Unless you can provide clear steps to reproduce, it's probably better to start with a thread in the forum and later to open an issue.
+- If you are not sure if your issue is really a bug or just some configuration/setup problem, please start a [Q&A discussion](https://github.com/getredash/redash/discussions/new?category=q-a) first. Unless you can provide clear steps to reproduce, it's probably better to start with a discussion and later to open an issue.
- If you still decide to open an issue, please review the template and guidelines and include as much details as possible.
### Suggesting Enhancements / Feature Requests
If you would like to suggest an enhancement or ask for a new feature:
-- Please check [the forum](https://discuss.redash.io/c/feature-requests/5) for existing threads about what you want to suggest/ask. If there is, feel free to upvote it to signal interest or add your comments.
+- Please check [the Ideas discussions](https://github.com/getredash/redash/discussions/categories/ideas) for existing threads about what you want to suggest/ask. If there is, feel free to upvote it to signal interest or add your comments.
- If there is no open thread, you're welcome to start one to have a discussion about what you want to suggest. Try to provide as much details and context as possible and include information about *the problem you want to solve* rather only *your proposed solution*.
### Pull Requests
-- **Code contributions are welcomed**. For big changes or significant features, it's usually better to reach out first and discuss what you want to implement and how (we recommend reading: [Pull Request First](https://medium.com/practical-blend/pull-request-first-f6bb667a9b6#.ozlqxvj36)). This to make sure that what you want to implement is aligned with our goals for the project and that no one else is already working on it.
-- Include screenshots and animated GIFs in your pull request whenever possible.
+**Code contributions are welcomed**. For big changes or significant features, it's usually better to reach out first and discuss what you want to implement and how (we recommend reading: [Pull Request First](https://medium.com/practical-blend/pull-request-first-f6bb667a9b6#.ozlqxvj36)). This is to make sure that what you want to implement is aligned with our goals for the project and that no one else is already working on it.
+
+#### Criteria for Review / Merging
+
+When you open your pull request, please follow this repository’s PR template carefully:
+
+- Indicate the type of change
+ - If you implement multiple unrelated features, bug fixes, or refactors please split them into individual pull requests.
+- Describe the change
+- If fixing a bug, please describe the bug or link to an existing github issue / forum discussion
+- Include UI screenshots / GIFs whenever possible
- Please add [documentation](#documentation) for new features or changes in functionality along with the code.
- Please follow existing code style:
- Python: we use [Black](https://github.com/psf/black) to auto format the code.
- Javascript: we use [Prettier](https://github.com/prettier/prettier) to auto-format the code.
-
+
+#### Initial Review (1 week)
+
+During this phase, a team member will apply the “Team Review” label if a pull request meets our criteria or a “Needs More Information” label if not. If more information is required, the team member will comment which criteria have not been met.
+
+If your pull request receives the “Needs More Information” label, please make the requested changes and then remove the label. This resets the 1 week timer for an initial review.
+
+Stale pull requests that remain untouched in “Needs More Information” for more than 4 weeks will be closed.
+
+If a team member closes your pull request, you may reopen it after you have made the changes requested during initial review. After you make these changes, remove the “Needs More Information” label. This again resets the timer for another initial review.
+
+#### Full Review (2 weeks)
+
+After the “Team Review” label is applied, a member of the core team will review the PR within 2 weeks.
+
+Reviews will approve, request changes, or ask questions to discuss areas of uncertainty. After you’ve responded, a member of the team will re-review within one week.
+
+#### Merging (1 week)
+
+After your pull request has been approved, a member of the core team will merge the pull request within a week.
+
### Documentation
The project's documentation can be found at [https://redash.io/help/](https://redash.io/help/). The [documentation sources](https://github.com/getredash/website/tree/master/src/pages/kb) are hosted on GitHub. To contribute edits / new pages, you can use GitHub's interface. Click the "Edit on GitHub" link on the documentation page to quickly open the edit interface.
diff --git a/Dockerfile b/Dockerfile
index dad74716f1..780d919786 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,6 @@
-FROM node:12 as frontend-builder
+FROM node:24-bookworm AS frontend-builder
+
+RUN npm install --global pnpm@10.30.3
# Controls whether to build the frontend assets
ARG skip_frontend_build
@@ -10,87 +12,110 @@ RUN useradd -m -d /frontend redash
USER redash
WORKDIR /frontend
-COPY --chown=redash package.json package-lock.json /frontend/
+COPY --chown=redash package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc /frontend/
COPY --chown=redash viz-lib /frontend/viz-lib
+COPY --chown=redash scripts /frontend/scripts
# Controls whether to instrument code for coverage information
ARG code_coverage
ENV BABEL_ENV=${code_coverage:+test}
-RUN if [ "x$skip_frontend_build" = "x" ] ; then npm ci --unsafe-perm; fi
+# Use BuildKit cache mount for pnpm store to speed rebuilds
+RUN --mount=type=cache,id=pnpm-store,target=/frontend/.cache/pnpm,uid=1001,gid=1001 \
+ pnpm config set store-dir /frontend/.cache/pnpm && \
+ if [ "x$skip_frontend_build" = "x" ] ; then pnpm install --frozen-lockfile; fi
COPY --chown=redash client /frontend/client
COPY --chown=redash webpack.config.js /frontend/
-RUN if [ "x$skip_frontend_build" = "x" ] ; then npm run build; else mkdir -p /frontend/client/dist && touch /frontend/client/dist/multi_org.html && touch /frontend/client/dist/index.html; fi
-FROM python:3.7-slim
-EXPOSE 5000
+# Use the same cache mount for the build step
+RUN --mount=type=cache,id=pnpm-store,target=/frontend/.cache/pnpm,uid=1001,gid=1001 <
## Getting Started
-* [Setting up Redash instance](https://redash.io/help/open-source/setup) (includes links to ready-made AWS/GCE images).
+* [Setting up a Redash instance](https://redash.io/help/open-source/setup) (includes links to ready-made AWS/GCE images).
* [Documentation](https://redash.io/help/).
## Supported Data Sources
@@ -32,61 +31,85 @@ Redash features:
Redash supports more than 35 SQL and NoSQL [data sources](https://redash.io/help/data-sources/supported-data-sources). It can also be extended to support more. Below is a list of built-in sources:
- Amazon Athena
+- Amazon CloudWatch / Insights
- Amazon DynamoDB
- Amazon Redshift
+- ArangoDB
- Axibase Time Series Database
-- Cassandra
+- Apache Cassandra
- ClickHouse
- CockroachDB
+- Couchbase
- CSV
-- Databricks (Apache Spark)
+- Databricks
- DB2 by IBM
-- Druid
+- Dgraph
+- Apache Drill
+- Apache Druid
+- e6data
+- Eccenca Corporate Memory
- Elasticsearch
+- Exasol
+- Microsoft Excel
+- Firebolt
+- Databend
- Google Analytics
- Google BigQuery
- Google Spreadsheets
- Graphite
- Greenplum
-- Hive
-- Impala
+- Apache Hive
+- Apache Impala
- InfluxDB
-- JIRA
+- InfluxDBv2
+- IBM Netezza Performance Server
+- JIRA (JQL)
- JSON
- Apache Kylin
- OmniSciDB (Formerly MapD)
+- MariaDB
- MemSQL
- Microsoft Azure Data Warehouse / Synapse
- Microsoft Azure SQL Database
+- Microsoft Azure Data Explorer / Kusto
- Microsoft SQL Server
- MongoDB
- MySQL
- Oracle
+- Apache Phoenix
+- Apache Pinot
- PostgreSQL
- Presto
- Prometheus
- Python
- Qubole
- Rockset
+- RisingWave
- Salesforce
- ScyllaDB
- Shell Scripts
- Snowflake
+- SPARQL
- SQLite
+- TiDB
+- Tinybird
- TreasureData
+- Trino
+- Uptycs
- Vertica
-- Yandex AppMetrrica
+- Yandex AppMetrica
- Yandex Metrica
## Getting Help
* Issues: https://github.com/getredash/redash/issues
-* Discussion Forum: https://discuss.redash.io/
+* Discussion Forum: https://github.com/getredash/redash/discussions/
+* Development Discussion: https://discord.gg/tN5MdmfGBp
## Reporting Bugs and Contributing Code
* Want to report a bug or request a feature? Please open [an issue](https://github.com/getredash/redash/issues/new).
-* Want to help us build **_Redash_**? Fork the project, edit in a [dev environment](https://redash.io/help-onpremise/dev/guide.html) and make a pull request. We need all the help we can get!
+* Want to help us build **_Redash_**? Fork the project, edit in a [dev environment](https://github.com/getredash/redash/wiki/Local-development-setup) and make a pull request. We need all the help we can get!
## Security
diff --git a/bin/bundle-extensions b/bin/bundle-extensions
deleted file mode 100755
index ce0e300854..0000000000
--- a/bin/bundle-extensions
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/usr/bin/env python3
-"""Copy bundle extension files to the client/app/extension directory"""
-import logging
-import os
-from pathlib import Path
-from shutil import copy
-from collections import OrderedDict as odict
-
-import importlib_metadata
-import importlib_resources
-
-# Name of the subdirectory
-BUNDLE_DIRECTORY = "bundle"
-
-logger = logging.getLogger(__name__)
-
-
-# Make a directory for extensions and set it as an environment variable
-# to be picked up by webpack.
-extensions_relative_path = Path("client", "app", "extensions")
-extensions_directory = Path(__file__).parent.parent / extensions_relative_path
-
-if not extensions_directory.exists():
- extensions_directory.mkdir()
-os.environ["EXTENSIONS_DIRECTORY"] = str(extensions_relative_path)
-
-
-def entry_point_module(entry_point):
- """Returns the dotted module path for the given entry point"""
- return entry_point.pattern.match(entry_point.value).group("module")
-
-
-def load_bundles():
- """"Load bundles as defined in Redash extensions.
-
- The bundle entry point can be defined as a dotted path to a module
- or a callable, but it won't be called but just used as a means
- to find the files under its file system path.
-
- The name of the directory it looks for files in is "bundle".
-
- So a Python package with an extension bundle could look like this::
-
- my_extensions/
- ├── __init__.py
- └── wide_footer
- ├── __init__.py
- └── bundle
- ├── extension.js
- └── styles.css
-
- and would then need to register the bundle with an entry point
- under the "redash.bundles" group, e.g. in your setup.py::
-
- setup(
- # ...
- entry_points={
- "redash.bundles": [
- "wide_footer = my_extensions.wide_footer",
- ]
- # ...
- },
- # ...
- )
-
- """
- bundles = odict()
- for entry_point in importlib_metadata.entry_points().get("redash.bundles", []):
- logger.info('Loading Redash bundle "%s".', entry_point.name)
- module = entry_point_module(entry_point)
- # Try to get a list of bundle files
- try:
- bundle_dir = importlib_resources.files(module).joinpath(BUNDLE_DIRECTORY)
- except (ImportError, TypeError):
- # Module isn't a package, so can't have a subdirectory/-package
- logger.error(
- 'Redash bundle module "%s" could not be imported: "%s"',
- entry_point.name,
- module,
- )
- continue
- if not bundle_dir.is_dir():
- logger.error(
- 'Redash bundle directory "%s" could not be found or is not a directory: "%s"',
- entry_point.name,
- bundle_dir,
- )
- continue
- bundles[entry_point.name] = list(bundle_dir.rglob("*"))
- return bundles
-
-
-bundles = load_bundles().items()
-if bundles:
- print("Number of extension bundles found: {}".format(len(bundles)))
-else:
- print("No extension bundles found.")
-
-for bundle_name, paths in bundles:
- # Shortcut in case not paths were found for the bundle
- if not paths:
- print('No paths found for bundle "{}".'.format(bundle_name))
- continue
-
- # The destination for the bundle files with the entry point name as the subdirectory
- destination = Path(extensions_directory, bundle_name)
- if not destination.exists():
- destination.mkdir()
-
- # Copy the bundle directory from the module to its destination.
- print('Copying "{}" bundle to {}:'.format(bundle_name, destination.resolve()))
- for src_path in paths:
- dest_path = destination / src_path.name
- print(" - {} -> {}".format(src_path, dest_path))
- copy(str(src_path), str(dest_path))
diff --git a/bin/docker-entrypoint b/bin/docker-entrypoint
index b5d7b0ac17..d78c7b383e 100755
--- a/bin/docker-entrypoint
+++ b/bin/docker-entrypoint
@@ -22,6 +22,19 @@ worker() {
exec supervisord -c worker.conf
}
+workers_healthcheck() {
+ WORKERS_COUNT=${WORKERS_COUNT}
+ echo "Checking active workers count against $WORKERS_COUNT..."
+ ACTIVE_WORKERS_COUNT=`echo $(rq info --url $REDASH_REDIS_URL -R | grep workers | grep -oP ^[0-9]+)`
+ if [ "$ACTIVE_WORKERS_COUNT" -lt "$WORKERS_COUNT" ]; then
+ echo "$ACTIVE_WORKERS_COUNT workers are active, Exiting"
+ exit 1
+ else
+ echo "$ACTIVE_WORKERS_COUNT workers are active"
+ exit 0
+ fi
+}
+
dev_worker() {
echo "Starting dev RQ worker..."
@@ -32,7 +45,9 @@ server() {
# Recycle gunicorn workers every n-th request. See http://docs.gunicorn.org/en/stable/settings.html#max-requests for more details.
MAX_REQUESTS=${MAX_REQUESTS:-1000}
MAX_REQUESTS_JITTER=${MAX_REQUESTS_JITTER:-100}
- exec /usr/local/bin/gunicorn -b 0.0.0.0:5000 --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app --max-requests $MAX_REQUESTS --max-requests-jitter $MAX_REQUESTS_JITTER
+ TIMEOUT=${REDASH_GUNICORN_TIMEOUT:-60}
+ BIND_ADDRESS=${REDASH_GUNICORN_BIND:-[::]:5000}
+ exec /usr/local/bin/gunicorn -b "$BIND_ADDRESS" --name redash -w${REDASH_WEB_WORKERS:-4} redash.wsgi:app --max-requests $MAX_REQUESTS --max-requests-jitter $MAX_REQUESTS_JITTER --timeout $TIMEOUT --limit-request-line ${REDASH_GUNICORN_LIMIT_REQUEST_LINE:-0}
}
create_db() {
@@ -53,7 +68,7 @@ help() {
echo ""
echo "shell -- open shell"
echo "dev_server -- start Flask development server with debugger and auto reload"
- echo "debug -- start Flask development server with remote debugger via ptvsd"
+ echo "debug -- start Flask development server with remote debugger via debugpy"
echo "create_db -- create database tables"
echo "manage -- CLI to manage redash"
echo "tests -- run tests"
@@ -75,6 +90,10 @@ case "$1" in
shift
worker
;;
+ workers_healthcheck)
+ shift
+ workers_healthcheck
+ ;;
server)
shift
server
diff --git a/bin/flake8_tests.sh b/bin/flake8_tests.sh
deleted file mode 100755
index 3c27f7fee2..0000000000
--- a/bin/flake8_tests.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set -o errexit # fail the build if any task fails
-
-flake8 --version ; pip --version
-# stop the build if there are Python syntax errors or undefined names
-flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
-# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
-flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
diff --git a/bin/get_changes.py b/bin/get_changes.py
index 60091bb772..aad1223837 100644
--- a/bin/get_changes.py
+++ b/bin/get_changes.py
@@ -1,35 +1,44 @@
#!/bin/env python3
-import sys
import re
import subprocess
+import sys
def get_change_log(previous_sha):
- args = ['git', '--no-pager', 'log', '--merges', '--grep', 'Merge pull request', '--pretty=format:"%h|%s|%b|%p"', 'master...{}'.format(previous_sha)]
+ args = [
+ "git",
+ "--no-pager",
+ "log",
+ "--merges",
+ "--grep",
+ "Merge pull request",
+ '--pretty=format:"%h|%s|%b|%p"',
+ "master...{}".format(previous_sha),
+ ]
log = subprocess.check_output(args)
changes = []
- for line in log.split('\n'):
+ for line in log.split("\n"):
try:
- sha, subject, body, parents = line[1:-1].split('|')
+ sha, subject, body, parents = line[1:-1].split("|")
except ValueError:
continue
try:
- pull_request = re.match("Merge pull request #(\d+)", subject).groups()[0]
+ pull_request = re.match(r"Merge pull request #(\d+)", subject).groups()[0]
pull_request = " #{}".format(pull_request)
- except Exception as ex:
+ except Exception:
pull_request = ""
- author = subprocess.check_output(['git', 'log', '-1', '--pretty=format:"%an"', parents.split(' ')[-1]])[1:-1]
+ author = subprocess.check_output(["git", "log", "-1", '--pretty=format:"%an"', parents.split(" ")[-1]])[1:-1]
changes.append("{}{}: {} ({})".format(sha, pull_request, body.strip(), author))
return changes
-if __name__ == '__main__':
+if __name__ == "__main__":
previous_sha = sys.argv[1]
changes = get_change_log(previous_sha)
diff --git a/bin/release_manager.py b/bin/release_manager.py
index 3d9b21c895..bd2200d523 100644
--- a/bin/release_manager.py
+++ b/bin/release_manager.py
@@ -1,17 +1,20 @@
#!/usr/bin/env python3
import os
-import sys
import re
import subprocess
+import sys
+from urllib.parse import urlparse
+
import requests
import simplejson
-github_token = os.environ['GITHUB_TOKEN']
-auth = (github_token, 'x-oauth-basic')
-repo = 'getredash/redash'
+github_token = os.environ["GITHUB_TOKEN"]
+auth = (github_token, "x-oauth-basic")
+repo = "getredash/redash"
+
def _github_request(method, path, params=None, headers={}):
- if not path.startswith('https://api.github.com'):
+ if urlparse(path).hostname != "api.github.com":
url = "https://api.github.com/{}".format(path)
else:
url = path
@@ -22,15 +25,18 @@ def _github_request(method, path, params=None, headers={}):
response = requests.request(method, url, data=params, auth=auth)
return response
+
def exception_from_error(message, response):
- return Exception("({}) {}: {}".format(response.status_code, message, response.json().get('message', '?')))
+ return Exception("({}) {}: {}".format(response.status_code, message, response.json().get("message", "?")))
+
def rc_tag_name(version):
return "v{}-rc".format(version)
+
def get_rc_release(version):
tag = rc_tag_name(version)
- response = _github_request('get', 'repos/{}/releases/tags/{}'.format(repo, tag))
+ response = _github_request("get", "repos/{}/releases/tags/{}".format(repo, tag))
if response.status_code == 404:
return None
@@ -39,84 +45,101 @@ def get_rc_release(version):
raise exception_from_error("Unknown error while looking RC release: ", response)
+
def create_release(version, commit_sha):
tag = rc_tag_name(version)
params = {
- 'tag_name': tag,
- 'name': "{} - RC".format(version),
- 'target_commitish': commit_sha,
- 'prerelease': True
+ "tag_name": tag,
+ "name": "{} - RC".format(version),
+ "target_commitish": commit_sha,
+ "prerelease": True,
}
- response = _github_request('post', 'repos/{}/releases'.format(repo), params)
+ response = _github_request("post", "repos/{}/releases".format(repo), params)
if response.status_code != 201:
raise exception_from_error("Failed creating new release", response)
return response.json()
+
def upload_asset(release, filepath):
- upload_url = release['upload_url'].replace('{?name,label}', '')
- filename = filepath.split('/')[-1]
+ upload_url = release["upload_url"].replace("{?name,label}", "")
+ filename = filepath.split("/")[-1]
with open(filepath) as file_content:
- headers = {'Content-Type': 'application/gzip'}
- response = requests.post(upload_url, file_content, params={'name': filename}, headers=headers, auth=auth, verify=False)
+ headers = {"Content-Type": "application/gzip"}
+ response = requests.post(
+ upload_url, file_content, params={"name": filename}, headers=headers, auth=auth, verify=False
+ )
if response.status_code != 201: # not 200/201/...
- raise exception_from_error('Failed uploading asset', response)
+ raise exception_from_error("Failed uploading asset", response)
return response
+
def remove_previous_builds(release):
- for asset in release['assets']:
- response = _github_request('delete', asset['url'])
+ for asset in release["assets"]:
+ response = _github_request("delete", asset["url"])
if response.status_code != 204:
raise exception_from_error("Failed deleting asset", response)
+
def get_changelog(commit_sha):
- latest_release = _github_request('get', 'repos/{}/releases/latest'.format(repo))
+ latest_release = _github_request("get", "repos/{}/releases/latest".format(repo))
if latest_release.status_code != 200:
- raise exception_from_error('Failed getting latest release', latest_release)
+ raise exception_from_error("Failed getting latest release", latest_release)
latest_release = latest_release.json()
- previous_sha = latest_release['target_commitish']
-
- args = ['git', '--no-pager', 'log', '--merges', '--grep', 'Merge pull request', '--pretty=format:"%h|%s|%b|%p"', '{}...{}'.format(previous_sha, commit_sha)]
+ previous_sha = latest_release["target_commitish"]
+
+ args = [
+ "git",
+ "--no-pager",
+ "log",
+ "--merges",
+ "--grep",
+ "Merge pull request",
+ '--pretty=format:"%h|%s|%b|%p"',
+ "{}...{}".format(previous_sha, commit_sha),
+ ]
log = subprocess.check_output(args)
- changes = ["Changes since {}:".format(latest_release['name'])]
+ changes = ["Changes since {}:".format(latest_release["name"])]
- for line in log.split('\n'):
+ for line in log.split("\n"):
try:
- sha, subject, body, parents = line[1:-1].split('|')
+ sha, subject, body, parents = line[1:-1].split("|")
except ValueError:
continue
try:
- pull_request = re.match("Merge pull request #(\d+)", subject).groups()[0]
+ pull_request = re.match(r"Merge pull request #(\d+)", subject).groups()[0]
pull_request = " #{}".format(pull_request)
- except Exception as ex:
+ except Exception:
pull_request = ""
- author = subprocess.check_output(['git', 'log', '-1', '--pretty=format:"%an"', parents.split(' ')[-1]])[1:-1]
+ author = subprocess.check_output(["git", "log", "-1", '--pretty=format:"%an"', parents.split(" ")[-1]])[1:-1]
changes.append("{}{}: {} ({})".format(sha, pull_request, body.strip(), author))
return "\n".join(changes)
+
def update_release_commit_sha(release, commit_sha):
params = {
- 'target_commitish': commit_sha,
+ "target_commitish": commit_sha,
}
- response = _github_request('patch', 'repos/{}/releases/{}'.format(repo, release['id']), params)
+ response = _github_request("patch", "repos/{}/releases/{}".format(repo, release["id"]), params)
if response.status_code != 200:
raise exception_from_error("Failed updating commit sha for existing release", response)
return response.json()
+
def update_release(version, build_filepath, commit_sha):
try:
release = get_rc_release(version)
@@ -125,21 +148,22 @@ def update_release(version, build_filepath, commit_sha):
else:
release = create_release(version, commit_sha)
- print("Using release id: {}".format(release['id']))
+ print("Using release id: {}".format(release["id"]))
remove_previous_builds(release)
response = upload_asset(release, build_filepath)
changelog = get_changelog(commit_sha)
- response = _github_request('patch', release['url'], {'body': changelog})
+ response = _github_request("patch", release["url"], {"body": changelog})
if response.status_code != 200:
raise exception_from_error("Failed updating release description", response)
except Exception as ex:
print(ex)
-if __name__ == '__main__':
+
+if __name__ == "__main__":
commit_sha = sys.argv[1]
version = sys.argv[2]
filepath = sys.argv[3]
diff --git a/bin/upgrade b/bin/upgrade
deleted file mode 100755
index 376866f1ed..0000000000
--- a/bin/upgrade
+++ /dev/null
@@ -1,242 +0,0 @@
-#!/usr/bin/env python3
-import urllib
-import argparse
-import os
-import subprocess
-import sys
-from collections import namedtuple
-from fnmatch import fnmatch
-
-import requests
-
-try:
- import semver
-except ImportError:
- print("Missing required library: semver.")
- exit(1)
-
-REDASH_HOME = os.environ.get('REDASH_HOME', '/opt/redash')
-CURRENT_VERSION_PATH = '{}/current'.format(REDASH_HOME)
-
-
-def run(cmd, cwd=None):
- if not cwd:
- cwd = REDASH_HOME
-
- return subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=subprocess.STDOUT)
-
-
-def confirm(question):
- reply = str(input(question + ' (y/n): ')).lower().strip()
-
- if reply[0] == 'y':
- return True
- if reply[0] == 'n':
- return False
- else:
- return confirm("Please use 'y' or 'n'")
-
-
-def version_path(version_name):
- return "{}/{}".format(REDASH_HOME, version_name)
-
-END_CODE = '\033[0m'
-
-
-def colored_string(text, color):
- if sys.stdout.isatty():
- return "{}{}{}".format(color, text, END_CODE)
- else:
- return text
-
-
-def h1(text):
- print(colored_string(text, '\033[4m\033[1m'))
-
-
-def green(text):
- print(colored_string(text, '\033[92m'))
-
-
-def red(text):
- print(colored_string(text, '\033[91m'))
-
-
-class Release(namedtuple('Release', ('version', 'download_url', 'filename', 'description'))):
- def v1_or_newer(self):
- return semver.compare(self.version, '1.0.0-alpha') >= 0
-
- def is_newer(self, version):
- return semver.compare(self.version, version) > 0
-
- @property
- def version_name(self):
- return self.filename.replace('.tar.gz', '')
-
-
-def get_latest_release_from_ci():
- response = requests.get('https://circleci.com/api/v1.1/project/github/getredash/redash/latest/artifacts?branch=master')
-
- if response.status_code != 200:
- exit("Failed getting releases (status code: %s)." % response.status_code)
-
- tarball_asset = filter(lambda asset: asset['url'].endswith('.tar.gz'), response.json())[0]
- filename = urllib.unquote(tarball_asset['pretty_path'].split('/')[-1])
- version = filename.replace('redash.', '').replace('.tar.gz', '')
-
- release = Release(version, tarball_asset['url'], filename, '')
-
- return release
-
-
-def get_release(channel):
- if channel == 'ci':
- return get_latest_release_from_ci()
-
- response = requests.get('https://version.redash.io/api/releases?channel={}'.format(channel))
- release = response.json()[0]
-
- filename = release['download_url'].split('/')[-1]
- release = Release(release['version'], release['download_url'], filename, release['description'])
-
- return release
-
-
-def link_to_current(version_name):
- green("Linking to current version...")
- run('ln -nfs {} {}'.format(version_path(version_name), CURRENT_VERSION_PATH))
-
-
-def restart_services():
- # We're doing this instead of simple 'supervisorctl restart all' because
- # otherwise it won't notice that /opt/redash/current pointing at a different
- # directory.
- green("Restarting...")
- try:
- run('sudo /etc/init.d/redash_supervisord restart')
- except subprocess.CalledProcessError as e:
- run('sudo service supervisor restart')
-
-
-def update_requirements(version_name):
- green("Installing new Python packages (if needed)...")
- new_requirements_file = '{}/requirements.txt'.format(version_path(version_name))
-
- install_requirements = False
-
- try:
- run('diff {}/requirements.txt {}'.format(CURRENT_VERSION_PATH, new_requirements_file)) != 0
- except subprocess.CalledProcessError as e:
- if e.returncode != 0:
- install_requirements = True
-
- if install_requirements:
- run('sudo pip install -r {}'.format(new_requirements_file))
-
-
-def apply_migrations(release):
- green("Running migrations (if needed)...")
- if not release.v1_or_newer():
- return apply_migrations_pre_v1(release.version_name)
-
- run("sudo -u redash bin/run ./manage.py db upgrade", cwd=version_path(release.version_name))
-
-
-def find_migrations(version_name):
- current_migrations = set([f for f in os.listdir("{}/migrations".format(CURRENT_VERSION_PATH)) if fnmatch(f, '*_*.py')])
- new_migrations = sorted([f for f in os.listdir("{}/migrations".format(version_path(version_name))) if fnmatch(f, '*_*.py')])
-
- return [m for m in new_migrations if m not in current_migrations]
-
-
-def apply_migrations_pre_v1(version_name):
- new_migrations = find_migrations(version_name)
-
- if new_migrations:
- green("New migrations to run: ")
- print(', '.join(new_migrations))
- else:
- print("No new migrations in this version.")
-
- if new_migrations and confirm("Apply new migrations? (make sure you have backup)"):
- for migration in new_migrations:
- print("Applying {}...".format(migration))
- run("sudo sudo -u redash PYTHONPATH=. bin/run python migrations/{}".format(migration), cwd=version_path(version_name))
-
-
-def download_and_unpack(release):
- directory_name = release.version_name
-
- green("Downloading release tarball...")
- run('sudo wget --header="Accept: application/octet-stream" -O {} {}'.format(release.filename, release.download_url))
- green("Unpacking to: {}...".format(directory_name))
- run('sudo mkdir -p {}'.format(directory_name))
- run('sudo tar -C {} -xvf {}'.format(directory_name, release.filename))
-
- green("Changing ownership to redash...")
- run('sudo chown redash {}'.format(directory_name))
-
- green("Linking .env file...")
- run('sudo ln -nfs {}/.env {}/.env'.format(REDASH_HOME, version_path(directory_name)))
-
-
-def current_version():
- real_current_path = os.path.realpath(CURRENT_VERSION_PATH).replace('.b', '+b')
- return real_current_path.replace(REDASH_HOME + '/', '').replace('redash.', '')
-
-
-def verify_minimum_version():
- green("Current version: " + current_version())
- if semver.compare(current_version(), '0.12.0') < 0:
- red("You need to have Redash v0.12.0 or newer to upgrade to post v1.0.0 releases.")
- green("To upgrade to v0.12.0, run the upgrade script set to the legacy channel (--channel legacy).")
- exit(1)
-
-
-def show_description_and_confirm(description):
- if description:
- print(description)
-
- if not confirm("Continue with upgrade?"):
- red("Cancelling upgrade.")
- exit(1)
-
-
-def verify_newer_version(release):
- if not release.is_newer(current_version()):
- red("The found release is not newer than your current deployed release ({}).".format(current_version()))
- if not confirm("Continue with upgrade?"):
- red("Cancelling upgrade.")
- exit(1)
-
-
-def deploy_release(channel):
- h1("Starting Redash upgrade:")
-
- release = get_release(channel)
- green("Found version: {}".format(release.version))
-
- if release.v1_or_newer():
- verify_minimum_version()
-
- verify_newer_version(release)
- show_description_and_confirm(release.description)
-
- try:
- download_and_unpack(release)
- update_requirements(release.version_name)
- apply_migrations(release)
- link_to_current(release.version_name)
- restart_services()
- green("Done! Enjoy.")
- except subprocess.CalledProcessError as e:
- red("Failed running: {}".format(e.cmd))
- red("Exit status: {}\nOutput:\n{}".format(e.returncode, e.output))
-
-
-if __name__ == '__main__':
- parser = argparse.ArgumentParser()
- parser.add_argument("--channel", help="The channel to get release from (default: stable).", default='stable')
- args = parser.parse_args()
-
- deploy_release(args.channel)
diff --git a/client/.babelrc b/client/.babelrc
index e8b6be2c9b..391c9446ac 100644
--- a/client/.babelrc
+++ b/client/.babelrc
@@ -12,7 +12,7 @@
"@babel/preset-typescript"
],
"plugins": [
- "@babel/plugin-proposal-class-properties",
+ "@babel/plugin-transform-class-properties",
"@babel/plugin-transform-object-assign",
[
"babel-plugin-transform-builtin-extend",
diff --git a/client/.eslintrc.js b/client/.eslintrc.js
index 45644f6d19..6a3a925417 100644
--- a/client/.eslintrc.js
+++ b/client/.eslintrc.js
@@ -5,12 +5,15 @@ module.exports = {
"react-app",
"plugin:compat/recommended",
"prettier",
- // Remove any typescript-eslint rules that would conflict with prettier
- "prettier/@typescript-eslint",
+ "plugin:jsx-a11y/recommended",
],
- plugins: ["jest", "compat", "no-only-tests", "@typescript-eslint"],
+ plugins: ["jest", "compat", "no-only-tests", "@typescript-eslint", "jsx-a11y"],
settings: {
"import/resolver": "webpack",
+ polyfills: [
+ "document.body",
+ "Notification",
+ ],
},
env: {
browser: true,
@@ -19,7 +22,23 @@ module.exports = {
rules: {
// allow debugger during development
"no-debugger": process.env.NODE_ENV === "production" ? 2 : 0,
- "jsx-a11y/anchor-is-valid": "off",
+ // Pre-existing patterns - anonymous default exports are used throughout
+ "import/no-anonymous-default-export": "off",
+ // Some tests verify no-throw behavior without explicit assertions
+ "jest/expect-expect": "off",
+ "jsx-a11y/anchor-is-valid": [
+ // TMP
+ "off",
+ {
+ components: ["Link"],
+ aspects: ["noHref", "invalidHref", "preferButton"],
+ },
+ ],
+ "jsx-a11y/no-redundant-roles": "error",
+ "jsx-a11y/no-autofocus": "off",
+ "jsx-a11y/click-events-have-key-events": "off", // TMP
+ "jsx-a11y/no-static-element-interactions": "off", // TMP
+ "jsx-a11y/no-noninteractive-element-interactions": "off", // TMP
"no-console": ["warn", { allow: ["warn", "error"] }],
"no-restricted-imports": [
"error",
@@ -51,7 +70,25 @@ module.exports = {
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
// Many API fields and generated types use camelcase
- "@typescript-eslint/camelcase": "off",
+ camelcase: "off",
+ // Allow {} type - used extensively in existing codebase
+ "@typescript-eslint/ban-types": ["error", { types: { "{}": false } }],
+ },
+ },
+ {
+ // Cypress test files
+ files: ["**/cypress/**/*.js"],
+ extends: ["plugin:cypress/recommended"],
+ plugins: ["cypress", "chai-friendly"],
+ env: {
+ "cypress/globals": true,
+ },
+ rules: {
+ "no-redeclare": "off",
+ "cypress/unsafe-to-chain-command": "off",
+ "func-names": ["error", "never"],
+ "no-unused-expressions": "off",
+ "chai-friendly/no-unused-expressions": "error",
},
},
],
diff --git a/client/app/assets/css/login.css b/client/app/assets/css/login.css
index cf46eefb0c..1120ec1e7c 100644
--- a/client/app/assets/css/login.css
+++ b/client/app/assets/css/login.css
@@ -15,7 +15,7 @@ body {
display: table;
width: 100%;
padding: 10px;
- height: calc(100vh - 116px);
+ height: calc(100% - 116px);
}
@media (min-width: 992px) {
diff --git a/client/app/assets/images/db-logos/arangodb.png b/client/app/assets/images/db-logos/arangodb.png
new file mode 100644
index 0000000000..1b2defd2d6
Binary files /dev/null and b/client/app/assets/images/db-logos/arangodb.png differ
diff --git a/client/app/assets/images/db-logos/corporate_memory.png b/client/app/assets/images/db-logos/corporate_memory.png
new file mode 100644
index 0000000000..f168b02ecd
Binary files /dev/null and b/client/app/assets/images/db-logos/corporate_memory.png differ
diff --git a/client/app/assets/images/db-logos/databend.png b/client/app/assets/images/db-logos/databend.png
new file mode 100644
index 0000000000..dec146f4cb
Binary files /dev/null and b/client/app/assets/images/db-logos/databend.png differ
diff --git a/client/app/assets/images/db-logos/duckdb.png b/client/app/assets/images/db-logos/duckdb.png
new file mode 100644
index 0000000000..d2c5b31e50
Binary files /dev/null and b/client/app/assets/images/db-logos/duckdb.png differ
diff --git a/client/app/assets/images/db-logos/dynamodb_sql.png b/client/app/assets/images/db-logos/dynamodb_sql.png
deleted file mode 100644
index 22d9e6430b..0000000000
Binary files a/client/app/assets/images/db-logos/dynamodb_sql.png and /dev/null differ
diff --git a/client/app/assets/images/db-logos/e6data.png b/client/app/assets/images/db-logos/e6data.png
new file mode 100644
index 0000000000..af5cf71c4b
Binary files /dev/null and b/client/app/assets/images/db-logos/e6data.png differ
diff --git a/client/app/assets/images/db-logos/elasticsearch2.png b/client/app/assets/images/db-logos/elasticsearch2.png
new file mode 100644
index 0000000000..e7cb9c8345
Binary files /dev/null and b/client/app/assets/images/db-logos/elasticsearch2.png differ
diff --git a/client/app/assets/images/db-logos/elasticsearch2_OpenDistroSQLElasticSearch.png b/client/app/assets/images/db-logos/elasticsearch2_OpenDistroSQLElasticSearch.png
new file mode 100644
index 0000000000..e7cb9c8345
Binary files /dev/null and b/client/app/assets/images/db-logos/elasticsearch2_OpenDistroSQLElasticSearch.png differ
diff --git a/client/app/assets/images/db-logos/elasticsearch2_XPackSQLElasticSearch.png b/client/app/assets/images/db-logos/elasticsearch2_XPackSQLElasticSearch.png
new file mode 100644
index 0000000000..e7cb9c8345
Binary files /dev/null and b/client/app/assets/images/db-logos/elasticsearch2_XPackSQLElasticSearch.png differ
diff --git a/client/app/assets/images/db-logos/excel.png b/client/app/assets/images/db-logos/excel.png
new file mode 100644
index 0000000000..0015044885
Binary files /dev/null and b/client/app/assets/images/db-logos/excel.png differ
diff --git a/client/app/assets/images/db-logos/firebolt.png b/client/app/assets/images/db-logos/firebolt.png
new file mode 100644
index 0000000000..7b6c02a66d
Binary files /dev/null and b/client/app/assets/images/db-logos/firebolt.png differ
diff --git a/client/app/assets/images/db-logos/google_analytics4.png b/client/app/assets/images/db-logos/google_analytics4.png
new file mode 100644
index 0000000000..eaddd9d569
Binary files /dev/null and b/client/app/assets/images/db-logos/google_analytics4.png differ
diff --git a/client/app/assets/images/db-logos/google_search_console.png b/client/app/assets/images/db-logos/google_search_console.png
new file mode 100644
index 0000000000..a302ca590f
Binary files /dev/null and b/client/app/assets/images/db-logos/google_search_console.png differ
diff --git a/client/app/assets/images/db-logos/ignite.png b/client/app/assets/images/db-logos/ignite.png
new file mode 100644
index 0000000000..046e381012
Binary files /dev/null and b/client/app/assets/images/db-logos/ignite.png differ
diff --git a/client/app/assets/images/db-logos/influxdbv2.png b/client/app/assets/images/db-logos/influxdbv2.png
new file mode 100644
index 0000000000..f3846cb199
Binary files /dev/null and b/client/app/assets/images/db-logos/influxdbv2.png differ
diff --git a/client/app/assets/images/db-logos/nz.png b/client/app/assets/images/db-logos/nz.png
new file mode 100644
index 0000000000..663687470c
Binary files /dev/null and b/client/app/assets/images/db-logos/nz.png differ
diff --git a/client/app/assets/images/db-logos/pinot.png b/client/app/assets/images/db-logos/pinot.png
new file mode 100644
index 0000000000..7527e7b157
Binary files /dev/null and b/client/app/assets/images/db-logos/pinot.png differ
diff --git a/client/app/assets/images/db-logos/qubole.png b/client/app/assets/images/db-logos/qubole.png
deleted file mode 100644
index dfdc2fa2e2..0000000000
Binary files a/client/app/assets/images/db-logos/qubole.png and /dev/null differ
diff --git a/client/app/assets/images/db-logos/risingwave.png b/client/app/assets/images/db-logos/risingwave.png
new file mode 100644
index 0000000000..ae4a13f129
Binary files /dev/null and b/client/app/assets/images/db-logos/risingwave.png differ
diff --git a/client/app/assets/images/db-logos/sparql_endpoint.png b/client/app/assets/images/db-logos/sparql_endpoint.png
new file mode 100644
index 0000000000..31ac155d44
Binary files /dev/null and b/client/app/assets/images/db-logos/sparql_endpoint.png differ
diff --git a/client/app/assets/images/db-logos/tinybird.png b/client/app/assets/images/db-logos/tinybird.png
new file mode 100644
index 0000000000..129555e39f
Binary files /dev/null and b/client/app/assets/images/db-logos/tinybird.png differ
diff --git a/client/app/assets/images/db-logos/trino.png b/client/app/assets/images/db-logos/trino.png
new file mode 100644
index 0000000000..904db40bb5
Binary files /dev/null and b/client/app/assets/images/db-logos/trino.png differ
diff --git a/client/app/assets/images/db-logos/yandex_disk.png b/client/app/assets/images/db-logos/yandex_disk.png
new file mode 100644
index 0000000000..7b375648df
Binary files /dev/null and b/client/app/assets/images/db-logos/yandex_disk.png differ
diff --git a/client/app/assets/images/destinations/asana.png b/client/app/assets/images/destinations/asana.png
new file mode 100644
index 0000000000..42ea1ab9cc
Binary files /dev/null and b/client/app/assets/images/destinations/asana.png differ
diff --git a/client/app/assets/images/destinations/datadog.png b/client/app/assets/images/destinations/datadog.png
new file mode 100644
index 0000000000..0c1cd4e583
Binary files /dev/null and b/client/app/assets/images/destinations/datadog.png differ
diff --git a/client/app/assets/images/destinations/discord.png b/client/app/assets/images/destinations/discord.png
new file mode 100644
index 0000000000..0781b84ce1
Binary files /dev/null and b/client/app/assets/images/destinations/discord.png differ
diff --git a/client/app/assets/images/destinations/hipchat.png b/client/app/assets/images/destinations/hipchat.png
deleted file mode 100644
index 88ac512102..0000000000
Binary files a/client/app/assets/images/destinations/hipchat.png and /dev/null differ
diff --git a/client/app/assets/images/destinations/microsoft_teams_webhook.png b/client/app/assets/images/destinations/microsoft_teams_webhook.png
new file mode 100644
index 0000000000..8ada5c8c69
Binary files /dev/null and b/client/app/assets/images/destinations/microsoft_teams_webhook.png differ
diff --git a/client/app/assets/images/destinations/webex.png b/client/app/assets/images/destinations/webex.png
new file mode 100644
index 0000000000..bea8fd1cad
Binary files /dev/null and b/client/app/assets/images/destinations/webex.png differ
diff --git a/client/app/assets/less/ant.less b/client/app/assets/less/ant.less
index 37c8c3b84d..925840b2fe 100644
--- a/client/app/assets/less/ant.less
+++ b/client/app/assets/less/ant.less
@@ -225,6 +225,16 @@
}
}
+ &-tbody > tr&-row {
+ &:hover,
+ &:focus,
+ &:focus-within {
+ & > td {
+ background: @table-row-hover-bg;
+ }
+ }
+ }
+
// Custom styles
&-headerless &-tbody > tr:first-child > td {
@@ -391,6 +401,18 @@
left: 0;
}
}
+
+ &:focus,
+ &:focus-within {
+ color: @menu-highlight-color;
+ }
+ }
+}
+
+.@{dropdown-prefix-cls}-menu-item {
+ &:focus,
+ &:focus-within {
+ background-color: @item-hover-bg;
}
}
diff --git a/client/app/assets/less/inc/base.less b/client/app/assets/less/inc/base.less
index 9a6b88ab37..80dc02e81d 100755
--- a/client/app/assets/less/inc/base.less
+++ b/client/app/assets/less/inc/base.less
@@ -20,7 +20,7 @@ html {
html,
body {
- min-height: 100vh;
+ height: 100%;
}
body {
@@ -35,7 +35,7 @@ body {
}
#application-root {
- min-height: 100vh;
+ height: 100%;
}
#application-root,
@@ -98,6 +98,10 @@ strong {
.clickable {
cursor: pointer;
+
+ button&:disabled {
+ cursor: not-allowed;
+ }
}
.resize-vertical {
diff --git a/client/app/assets/less/inc/edit-in-place.less b/client/app/assets/less/inc/edit-in-place.less
index 1afd359a48..cf7ef5bd8a 100755
--- a/client/app/assets/less/inc/edit-in-place.less
+++ b/client/app/assets/less/inc/edit-in-place.less
@@ -1,26 +1,23 @@
-.edit-in-place span {
+.edit-in-place {
white-space: pre-line;
+ display: inline-block;
p {
margin-bottom: 0;
}
-}
-.edit-in-place span.editable {
- display: inline-block;
- cursor: pointer;
-}
-
-.edit-in-place span.editable:hover {
- background: @redash-yellow;
- border-radius: @redash-radius;
-}
+ .editable {
+ display: inline-block;
+ cursor: pointer;
-.edit-in-place.active input,
-.edit-in-place.active textarea {
- display: inline-block;
-}
+ &:hover {
+ background: @redash-yellow;
+ border-radius: @redash-radius;
+ }
+ }
-.edit-in-place {
- display: inline-block;
+ &.active input,
+ &.active textarea {
+ display: inline-block;
+ }
}
diff --git a/client/app/assets/less/inc/generics.less b/client/app/assets/less/inc/generics.less
index d7f484da0a..4896b3b372 100755
--- a/client/app/assets/less/inc/generics.less
+++ b/client/app/assets/less/inc/generics.less
@@ -2,163 +2,218 @@
Generate Margin Classes (0px - 25px)
margin, margin-top, margin-bottom, margin-left, margin-right
-----------------------------------------------------------*/
-.margin (@label, @size: 1, @key:1) when (@size =< 30){
- .m-@{key} {
- margin: @size !important;
- }
-
- .m-t-@{key} {
- margin-top: @size !important;
- }
-
- .m-b-@{key} {
- margin-bottom: @size !important;
- }
-
- .m-l-@{key} {
- margin-left: @size !important;
- }
-
- .m-r-@{key} {
- margin-right: @size !important;
- }
-
- .margin(@label - 5; @size + 5; @key + 5);
+.margin (@label, @size: 1, @key:1) when (@size =< 30) {
+ .m-@{key} {
+ margin: @size !important;
+ }
+
+ .m-t-@{key} {
+ margin-top: @size !important;
+ }
+
+ .m-b-@{key} {
+ margin-bottom: @size !important;
+ }
+
+ .m-l-@{key} {
+ margin-left: @size !important;
+ }
+
+ .m-r-@{key} {
+ margin-right: @size !important;
+ }
+
+ .margin(@label - 5; @size + 5; @key + 5);
}
.margin(25, 0px, 0);
-.m-2{
- margin:2px;
+.m-2 {
+ margin: 2px;
}
/* --------------------------------------------------------
Generate Padding Classes (0px - 25px)
padding, padding-top, padding-bottom, padding-left, padding-right
-----------------------------------------------------------*/
-.padding (@label, @size: 1, @key:1) when (@size =< 30){
- .p-@{key} {
- padding: @size !important;
- }
-
- .p-t-@{key} {
- padding-top: @size !important;
- }
-
- .p-b-@{key} {
- padding-bottom: @size !important;
- }
-
- .p-l-@{key} {
- padding-left: @size !important;
- }
-
- .p-r-@{key} {
- padding-right: @size !important;
- }
-
- .padding(@label - 5; @size + 5; @key + 5);
-}
+.padding (@label, @size: 1, @key:1) when (@size =< 30) {
+ .p-@{key} {
+ padding: @size !important;
+ }
-.padding(25, 0px, 0);
+ .p-t-@{key} {
+ padding-top: @size !important;
+ }
+
+ .p-b-@{key} {
+ padding-bottom: @size !important;
+ }
+ .p-l-@{key} {
+ padding-left: @size !important;
+ }
+
+ .p-r-@{key} {
+ padding-right: @size !important;
+ }
+
+ .padding(@label - 5; @size + 5; @key + 5);
+}
+
+.padding(25, 0px, 0);
/* --------------------------------------------------------
Generate Font-Size Classes (8px - 20px)
-----------------------------------------------------------*/
-.font-size (@label, @size: 8, @key:10) when (@size =< 20){
- .f-@{key} {
- font-size: @size !important;
- }
-
- .font-size(@label - 1; @size + 1; @key + 1);
-}
+.font-size (@label, @size: 8, @key:10) when (@size =< 20) {
+ .f-@{key} {
+ font-size: @size !important;
+ }
-.font-size(20, 8px, 8);
+ .font-size(@label - 1; @size + 1; @key + 1);
+}
-.f-inherit { font-size: inherit !important; }
+.font-size(20, 8px, 8);
+.f-inherit {
+ font-size: inherit !important;
+}
/* --------------------------------------------------------
Font Weight
-----------------------------------------------------------*/
-.f-300 { font-weight: 300 !important; }
-.f-400 { font-weight: 400 !important; }
-.f-500 { font-weight: 500 !important; }
-.f-700 { font-weight: 700 !important; }
-
+.f-300 {
+ font-weight: 300 !important;
+}
+.f-400 {
+ font-weight: 400 !important;
+}
+.f-500 {
+ font-weight: 500 !important;
+}
+.f-700 {
+ font-weight: 700 !important;
+}
/* --------------------------------------------------------
Position
-----------------------------------------------------------*/
-.p-relative { position: relative !important; }
-.p-absolute { position: absolute !important; }
-.p-fixed { position: fixed !important; }
-.p-static { position: static !important; }
-
+.p-relative {
+ position: relative !important;
+}
+.p-absolute {
+ position: absolute !important;
+}
+.p-fixed {
+ position: fixed !important;
+}
+.p-static {
+ position: static !important;
+}
/* --------------------------------------------------------
Overflow
-----------------------------------------------------------*/
-.o-hidden { overflow: hidden !important; }
-.o-visible { overflow: visible !important; }
-.o-auto { overflow: auto !important; }
-
+.o-hidden {
+ overflow: hidden !important;
+}
+.o-visible {
+ overflow: visible !important;
+}
+.o-auto {
+ overflow: auto !important;
+}
/* --------------------------------------------------------
Display
-----------------------------------------------------------*/
-.di-block { display: inline-block !important; }
-.d-block { display: block; }
+.di-block {
+ display: inline-block !important;
+}
+.d-block {
+ display: block;
+}
/* --------------------------------------------------------
Background Colors and Colors
-----------------------------------------------------------*/
-@array: c-white bg-white @white, c-ace bg-ace @ace, c-black bg-black @black, c-brown bg-brown @brown, c-pink bg-pink @pink, c-red bg-red @red, c-blue bg-blue @blue, c-purple bg-purple @purple, c-deeppurple bg-deeppurple @deeppurple, c-lightblue bg-lightblue @lightblue, c-cyan bg-cyan @cyan, c-teal bg-teal @teal, c-green bg-green @green, c-lightgreen bg-lightgreen @lightgreen, c-lime bg-lime @lime, c-yellow bg-yellow @yellow, c-amber bg-amber @amber, c-orange bg-orange @orange, c-deeporange bg-deeporange @deeporange, c-gray bg-gray @gray, c-bluegray bg-bluegray @bluegray, c-indigo bg-indigo @indigo;
-
-.for(@array); .-each(@value) {
- @name: extract(@value, 1);
- @name2: extract(@value, 2);
- @color: extract(@value, 3);
- &.@{name2} {
- background-color: @color !important;
- }
-
- &.@{name} {
- color: @color !important;
- }
+@array: c-white bg-white @white, c-ace bg-ace @ace, c-black bg-black @black, c-brown bg-brown @brown,
+ c-pink bg-pink @pink, c-red bg-red @red, c-blue bg-blue @blue, c-purple bg-purple @purple,
+ c-deeppurple bg-deeppurple @deeppurple, c-lightblue bg-lightblue @lightblue, c-cyan bg-cyan @cyan,
+ c-teal bg-teal @teal, c-green bg-green @green, c-lightgreen bg-lightgreen @lightgreen, c-lime bg-lime @lime,
+ c-yellow bg-yellow @yellow, c-amber bg-amber @amber, c-orange bg-orange @orange,
+ c-deeporange bg-deeporange @deeporange, c-gray bg-gray @gray, c-bluegray bg-bluegray @bluegray,
+ c-indigo bg-indigo @indigo;
+
+.for(@array);
+.-each(@value) {
+ @name: extract(@value, 1);
+ @name2: extract(@value, 2);
+ @color: extract(@value, 3);
+ &.@{name2} {
+ background-color: @color !important;
+ }
+
+ &.@{name} {
+ color: @color !important;
+ }
}
-
/* --------------------------------------------------------
Background Colors
-----------------------------------------------------------*/
-.bg-brand { background-color: @brand-bg; }
-.bg-black-trp { background-color: rgba(0,0,0,0.12) !important; }
-
-
+.bg-brand {
+ background-color: @brand-bg;
+}
+.bg-black-trp {
+ background-color: rgba(0, 0, 0, 0.12) !important;
+}
/* --------------------------------------------------------
Borders
-----------------------------------------------------------*/
-.b-0 { border: 0 !important; }
-
+.b-0 {
+ border: 0 !important;
+}
/* --------------------------------------------------------
Width
-----------------------------------------------------------*/
-.w-100 { width: 100% !important; }
-.w-50 { width: 50% !important; }
-.w-25 { width: 25% !important; }
-
+.w-100 {
+ width: 100% !important;
+}
+.w-50 {
+ width: 50% !important;
+}
+.w-25 {
+ width: 25% !important;
+}
/* --------------------------------------------------------
Border Radius
-----------------------------------------------------------*/
-.brd-2 { border-radius: 2px; }
-
+.brd-2 {
+ border-radius: 2px;
+}
/* --------------------------------------------------------
Alignment
-----------------------------------------------------------*/
-.va-top { vertical-align: top; }
\ No newline at end of file
+.va-top {
+ vertical-align: top;
+}
+
+/* --------------------------------------------------------
+ Screen readers
+-----------------------------------------------------------*/
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
diff --git a/client/app/assets/less/inc/login.less b/client/app/assets/less/inc/login.less
index 81ee077790..a820159350 100755
--- a/client/app/assets/less/inc/login.less
+++ b/client/app/assets/less/inc/login.less
@@ -10,7 +10,7 @@
vertical-align: middle;
display: inline-block;
width: 1px;
- height: 100vh;
+ height: 100%;
}
}
@@ -135,4 +135,4 @@
}
}
-
\ No newline at end of file
+
diff --git a/client/app/assets/less/inc/schema-browser.less b/client/app/assets/less/inc/schema-browser.less
index 3f2e66f28d..f005239758 100644
--- a/client/app/assets/less/inc/schema-browser.less
+++ b/client/app/assets/less/inc/schema-browser.less
@@ -1,102 +1,107 @@
-div.table-name {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- cursor: pointer;
- padding: 2px 22px 2px 10px;
- border-radius: @redash-radius;
- position: relative;
- height: 22px;
-
- .copy-to-editor {
- display: none;
- }
-
- &:hover {
- background: fade(@redash-gray, 10%);
-
- .copy-to-editor {
- display: flex;
- }
- }
-}
-
.schema-container {
height: 100%;
z-index: 10;
background-color: white;
-}
-.schema-browser {
- overflow: hidden;
- border: none;
- padding-top: 10px;
- position: relative;
- height: 100%;
-
- .schema-loading-state {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100%;
- }
-
- .collapse.in {
- background: transparent;
- }
-
- .copy-to-editor {
- color: fade(@redash-gray, 90%);
- cursor: pointer;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- width: 20px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
-
- .table-open {
- padding: 0 22px 0 26px;
+ .schema-browser {
overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ border: none;
+ padding-top: 10px;
position: relative;
- height: 18px;
+ height: 100%;
- .column-type {
- color: fade(@text-color, 80%);
- font-size: 10px;
- margin-left: 2px;
- text-transform: uppercase;
+ .schema-loading-state {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100%;
+ }
+
+ .collapse.in {
+ background: transparent;
}
.copy-to-editor {
- display: none;
+ visibility: hidden;
+ color: fade(@redash-gray, 90%);
+ width: 20px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transition: none;
}
- &:hover {
- background: fade(@redash-gray, 10%);
+ .schema-list-item {
+ display: flex;
+ border-radius: @redash-radius;
+ height: 22px;
+
+ .table-name {
+ flex: 1;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ cursor: pointer;
+ padding: 2px 22px 2px 10px;
+ }
+
+ &:hover,
+ &:focus,
+ &:focus-within {
+ background: fade(@redash-gray, 10%);
- .copy-to-editor {
+ .copy-to-editor {
+ visibility: visible;
+ }
+ }
+ }
+
+ .table-open {
+ .table-open-item {
display: flex;
+ height: 18px;
+ width: calc(100% - 22px);
+ padding-left: 22px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ transition: none;
+
+ div:first-child {
+ flex: 1;
+ }
+
+ .column-type {
+ color: fade(@text-color, 80%);
+ font-size: 10px;
+ margin-left: 2px;
+ text-transform: uppercase;
+ }
+
+ &:hover,
+ &:focus,
+ &:focus-within {
+ background: fade(@redash-gray, 10%);
+
+ .copy-to-editor {
+ visibility: visible;
+ }
+ }
}
}
}
-}
-.schema-control {
- display: flex;
- flex-wrap: nowrap;
- padding: 0;
+ .schema-control {
+ display: flex;
+ flex-wrap: nowrap;
+ padding: 0;
- .ant-btn {
- height: auto;
+ .ant-btn {
+ height: auto;
+ }
}
-}
-.parameter-label {
- display: block;
+ .parameter-label {
+ display: block;
+ }
}
diff --git a/client/app/assets/less/inc/table.less b/client/app/assets/less/inc/table.less
index 9b562f1f01..b610686925 100755
--- a/client/app/assets/less/inc/table.less
+++ b/client/app/assets/less/inc/table.less
@@ -103,7 +103,7 @@
padding-top: 5px !important;
}
- .btn-favourite,
+ .btn-favorite,
.btn-archive {
font-size: 15px;
}
@@ -114,18 +114,23 @@
line-height: 1.7 !important;
}
-.btn-favourite {
+.btn-favorite {
color: #d4d4d4;
transition: all 0.25s ease-in-out;
+ .fa-star {
+ color: @yellow-darker;
+ }
+
&:hover,
&:focus {
color: @yellow-darker;
cursor: pointer;
- }
- .fa-star {
- color: @yellow-darker;
+ .fa-star {
+ filter: saturate(75%);
+ opacity: 0.75;
+ }
}
}
diff --git a/client/app/assets/less/redash/query.less b/client/app/assets/less/redash/query.less
index 03f7400402..6a5e872fc6 100644
--- a/client/app/assets/less/redash/query.less
+++ b/client/app/assets/less/redash/query.less
@@ -8,7 +8,7 @@ body.fixed-layout {
padding-bottom: 0;
width: 100vw;
- height: 100vh;
+ height: 100%;
.application-layout-content > div {
display: flex;
@@ -90,6 +90,23 @@ body.fixed-layout {
.embed__vis {
display: flex;
flex-flow: column;
+ height: calc(~'100% - 25px');
+
+ > .embed-heading {
+ flex: 0 0 auto;
+ }
+
+ > .query__vis {
+ flex: 1 1 auto;
+
+ .chart-visualization-container, .visualization-renderer-wrapper, .visualization-renderer {
+ height: 100%
+ }
+ }
+
+ > .tile__bottom-control {
+ flex: 0 0 auto;
+ }
width: 100%;
}
@@ -127,11 +144,13 @@ body.fixed-layout {
}
}
-a.label-tag {
+.label-tag {
background: fade(@redash-gray, 15%);
color: darken(@redash-gray, 15%);
- &:hover {
+ &:hover,
+ &:focus,
+ &:active {
color: darken(@redash-gray, 15%);
background: fade(@redash-gray, 25%);
}
@@ -204,6 +223,7 @@ a.label-tag {
}
.editor__left__schema {
+ min-height: 120px;
flex-grow: 1;
display: flex;
flex-direction: column;
diff --git a/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx
index 4576cdc447..a1550f60dc 100644
--- a/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx
+++ b/client/app/components/ApplicationArea/ApplicationLayout/DesktopNavbar.jsx
@@ -2,6 +2,7 @@ import React, { useMemo } from "react";
import { first, includes } from "lodash";
import Menu from "antd/lib/menu";
import Link from "@/components/Link";
+import PlainButton from "@/components/PlainButton";
import HelpTrigger from "@/components/HelpTrigger";
import CreateDashboardDialog from "@/components/dashboards/CreateDashboardDialog";
import { useCurrentRoute } from "@/components/ApplicationArea/Router";
@@ -15,8 +16,8 @@ import AlertOutlinedIcon from "@ant-design/icons/AlertOutlined";
import PlusOutlinedIcon from "@ant-design/icons/PlusOutlined";
import QuestionCircleOutlinedIcon from "@ant-design/icons/QuestionCircleOutlined";
import SettingOutlinedIcon from "@ant-design/icons/SettingOutlined";
-
import VersionInfo from "./VersionInfo";
+
import "./DesktopNavbar.less";
function NavbarSection({ children, ...props }) {
@@ -71,9 +72,9 @@ export default function DesktopNavbar() {
const canCreateAlert = currentUser.hasPermission("list_alerts");
return (
-