Skip to content

Commit 239a922

Browse files
authored
Merge pull request #12 from MasterworksIO/development
Merge Development into Production
2 parents a7323d3 + d6d447d commit 239a922

File tree

400 files changed

+27119
-16179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+27119
-16179
lines changed

.circleci/Dockerfile.cypress .ci/Dockerfile.cypress

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM cypress/browsers:node14.17.0-chrome91-ff89
1+
FROM cypress/browsers:node16.18.0-chrome90-ff88
22

33
ENV APP /usr/src/app
44
WORKDIR $APP
55

66
COPY package.json yarn.lock .yarnrc $APP/
77
COPY viz-lib $APP/viz-lib
8-
RUN npm install [email protected].10 -g && yarn --frozen-lockfile --network-concurrency 1 > /dev/null
8+
RUN npm install [email protected].19 -g && yarn --frozen-lockfile --network-concurrency 1 > /dev/null
99

1010
COPY . $APP
1111

.circleci/docker-compose.circle.yml .ci/docker-compose.ci.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ services:
1212
PYTHONUNBUFFERED: 0
1313
REDASH_LOG_LEVEL: "INFO"
1414
REDASH_REDIS_URL: "redis://redis:6379/0"
15-
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
15+
POSTGRES_PASSWORD: "FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb"
16+
REDASH_DATABASE_URL: "postgresql://postgres:FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb@postgres/postgres"
1617
REDASH_COOKIE_SECRET: "2H9gNG9obnAQ9qnR9BDTQUph6CbXKCzF"
1718
redis:
18-
image: redis:3.0-alpine
19+
image: redis:7-alpine
1920
restart: unless-stopped
2021
postgres:
21-
image: postgres:9.5.6-alpine
22+
image: pgautoupgrade/pgautoupgrade:15-alpine3.8
2223
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
2324
restart: unless-stopped
25+
environment:
26+
POSTGRES_HOST_AUTH_METHOD: "trust"

.circleci/docker-compose.cypress.yml .ci/docker-compose.cypress.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ x-redash-service: &redash-service
33
build:
44
context: ../
55
args:
6-
skip_dev_deps: "true"
7-
skip_ds_deps: "true"
6+
install_groups: "main"
87
code_coverage: ${CODE_COVERAGE}
98
x-redash-environment: &redash-environment
109
REDASH_LOG_LEVEL: "INFO"
1110
REDASH_REDIS_URL: "redis://redis:6379/0"
12-
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
11+
POSTGRES_PASSWORD: "FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb"
12+
REDASH_DATABASE_URL: "postgresql://postgres:FmTKs5vX52ufKR1rd8tn4MoSP7zvCJwb@postgres/postgres"
1313
REDASH_RATELIMIT_ENABLED: "false"
1414
REDASH_ENFORCE_CSRF: "true"
1515
REDASH_COOKIE_SECRET: "2H9gNG9obnAQ9qnR9BDTQUph6CbXKCzF"
@@ -44,7 +44,7 @@ services:
4444
ipc: host
4545
build:
4646
context: ../
47-
dockerfile: .circleci/Dockerfile.cypress
47+
dockerfile: .ci/Dockerfile.cypress
4848
depends_on:
4949
- server
5050
- worker
@@ -64,9 +64,11 @@ services:
6464
CYPRESS_PROJECT_ID: ${CYPRESS_PROJECT_ID}
6565
CYPRESS_RECORD_KEY: ${CYPRESS_RECORD_KEY}
6666
redis:
67-
image: redis:3.0-alpine
67+
image: redis:7-alpine
6868
restart: unless-stopped
6969
postgres:
70-
image: postgres:9.5.6-alpine
70+
image: pgautoupgrade/pgautoupgrade:15-alpine3.8
7171
command: "postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF"
7272
restart: unless-stopped
73+
environment:
74+
POSTGRES_HOST_AUTH_METHOD: "trust"

.ci/docker_build

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# This script only needs to run on the main Redash repo
4+
5+
if [ "${GITHUB_REPOSITORY}" != "getredash/redash" ]; then
6+
echo "Skipping image build for Docker Hub, as this isn't the main Redash repository"
7+
exit 0
8+
fi
9+
10+
if [ "${GITHUB_REF_NAME}" != "master" ] && [ "${GITHUB_REF_NAME}" != "preview-image" ]; then
11+
echo "Skipping image build for Docker Hub, as this isn't the 'master' nor 'preview-image' branch"
12+
exit 0
13+
fi
14+
15+
if [ "x${DOCKER_USER}" = "x" ] || [ "x${DOCKER_PASS}" = "x" ]; then
16+
echo "Skipping image build for Docker Hub, as the login details aren't available"
17+
exit 0
18+
fi
19+
20+
set -e
21+
VERSION=$(jq -r .version package.json)
22+
VERSION_TAG="$VERSION.b${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}"
23+
24+
export DOCKER_BUILDKIT=1
25+
export COMPOSE_DOCKER_CLI_BUILD=1
26+
27+
docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}"
28+
29+
DOCKERHUB_REPO="redash/redash"
30+
DOCKER_TAGS="-t redash/redash:preview -t redash/preview:${VERSION_TAG}"
31+
32+
# Build the docker container
33+
docker build --build-arg install_groups="main,all_ds,dev" ${DOCKER_TAGS} .
34+
35+
# Push the container to the preview build locations
36+
docker push "${DOCKERHUB_REPO}:preview"
37+
docker push "redash/preview:${VERSION_TAG}"
38+
39+
echo "Built: ${VERSION_TAG}"

.circleci/pack .ci/pack

File renamed without changes.

.ci/update_version

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
VERSION=$(jq -r .version package.json)
3+
FULL_VERSION=${VERSION}+b${GITHUB_RUN_ID}.${GITHUB_RUN_NUMBER}
4+
5+
sed -ri "s/^__version__ = '([A-Za-z0-9.-]*)'/__version__ = '${FULL_VERSION}'/" redash/__init__.py
6+
sed -i "s/dev/${GITHUB_SHA}/" client/app/version.json

.circleci/config.yml

-183
This file was deleted.

.circleci/docker_build

-20
This file was deleted.

.circleci/update_version

-6
This file was deleted.

.github/ISSUE_TEMPLATE/---bug_report.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ about: Report reproducible software issues so we can improve
77
88
We use GitHub only for bug reports 🐛
99
10-
Anything else should be posted to https://discuss.redash.io 👫
10+
Anything else should be a discussion: https://github.com/getredash/redash/discussions/ 👫
1111
12-
🚨For support, help & questions use https://discuss.redash.io/c/support
13-
💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests
12+
🚨For support, help & questions use https://github.com/getredash/redash/discussions/categories/q-a
13+
💡For feature requests & ideas use https://github.com/getredash/redash/discussions/categories/ideas
1414
1515
**Found a security vulnerability?** Please email [email protected] 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.
1616
+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: "\U0001F4A1Anything else"
3-
about: "For help, support, features & ideas - please use https://discuss.redash.io \U0001F46B "
3+
about: "For help, support, features & ideas - please use Discussions \U0001F46B "
44
labels: "Support Question"
55
---
66

77
We use GitHub only for bug reports 🐛
88

9-
Anything else should be posted to https://discuss.redash.io 👫
9+
Anything else should be a discussion: https://github.com/getredash/redash/discussions/ 👫
1010

11-
🚨For support, help & questions use https://discuss.redash.io/c/support
12-
💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests
11+
🚨For support, help & questions use https://github.com/getredash/redash/discussions/categories/q-a
12+
💡For feature requests & ideas use https://github.com/getredash/redash/discussions/categories/ideas
1313

1414
Alternatively, check out these resources below. Thanks! 😁.
1515

16-
- [Forum](https://disucss.redash.io)
16+
- [Discussions](https://github.com/getredash/redash/discussions/)
1717
- [Knowledge Base](https://redash.io/help)

.github/support.yml

-23
This file was deleted.

0 commit comments

Comments
 (0)