Skip to content

Commit 4780bd9

Browse files
authored
Merge pull request #3196 from getredash/master
Sync release/6.0.x branch with master
2 parents 3ee7537 + ef66da7 commit 4780bd9

Some content is hidden

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

41 files changed

+353
-168
lines changed

.circleci/config.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
command: docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests;"
3535
- run:
3636
name: Run Tests
37-
command: docker-compose run --name tests redash tests --junitxml=junit.xml tests/
37+
command: docker-compose run --name tests redash tests --junitxml=junit.xml --cov-report xml --cov=redash --cov-config .coveragerc tests/
3838
- run:
3939
name: Copy Test Results
4040
command: |
@@ -58,32 +58,34 @@ jobs:
5858
environment:
5959
COMPOSE_FILE: .circleci/docker-compose.cypress.yml
6060
COMPOSE_PROJECT_NAME: cypress
61+
PERCY_TOKEN_ENCODED: MWM3OGUzNzk4ZWQ2NTE4YTBhMDAwZDNiNWE1Nzc4ZjEzZjYyMzY1MjE0NjY0NDRiOGE5ODc5ZGYzYTU4ZmE4NQ==
6162
docker:
6263
- image: circleci/node:8
6364
steps:
6465
- setup_remote_docker
6566
- checkout
6667
- run:
6768
name: Install npm dependencies
68-
command: npm install
69+
command: |
70+
npm install
6971
- run:
7072
name: Setup Redash server
7173
command: |
72-
npm run cypress:server start-ci
73-
docker-compose run cypress node ./cypress/cypress-server.js setup
74+
npm run cypress start
75+
docker-compose run cypress node ./cypress/cypress.js db-seed
7476
- run:
7577
name: Execute Cypress tests
76-
command: docker-compose run cypress ./node_modules/.bin/cypress run
78+
command: npm run cypress run-ci
7779
build-tarball:
7880
docker:
7981
- image: circleci/node:8
8082
steps:
8183
- checkout
8284
- run: sudo apt install python-pip
8385
- run: npm install
86+
- run: .circleci/update_version
8487
- run: npm run bundle
8588
- run: npm run build
86-
- run: .circleci/update_version
8789
- run: .circleci/pack
8890
- store_artifacts:
8991
path: /tmp/artifacts/

.circleci/docker-compose.cypress.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ services:
3434
- worker
3535
environment:
3636
CYPRESS_baseUrl: "http://server:5000"
37+
PERCY_TOKEN: ${PERCY_TOKEN}
38+
PERCY_BRANCH: ${CIRCLE_BRANCH}
39+
PERCY_COMMIT: ${CIRCLE_SHA1}
40+
PERCY_PULL_REQUEST: ${CIRCLE_PR_NUMBER}
3741
redis:
3842
image: redis:3.0-alpine
3943
restart: unless-stopped

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: "\U0001F41B Bug report"
3+
about: Report reproducible software issues so we can improve
4+
---
5+
6+
<!--
7+
8+
We use GitHub only for bug reports 🐛
9+
10+
Anything else should be posted to https://discuss.redash.io 👫
11+
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
14+
15+
**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.
16+
17+
-->
18+
19+
### Issue Summary
20+
21+
A summary of the issue and the browser/OS environment in which it occurs.
22+
23+
### Steps to Reproduce
24+
25+
1. This is the first step
26+
2. This is the second step, etc.
27+
28+
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
29+
30+
### Technical details:
31+
32+
* Redash Version:
33+
* Browser/OS:
34+
* How did you install Redash:
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: "\U0001F4A1Anything else"
3+
about: "For help, support, features & ideas - please use https://discuss.redash.io \U0001F46B "
4+
labels: "Support Question"
5+
---
6+
7+
We use GitHub only for bug reports 🐛
8+
9+
Anything else should be posted to https://discuss.redash.io 👫
10+
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
13+
14+
Alternatively, check out these resources below. Thanks! 😁.
15+
16+
- [Forum](https://disucss.redash.io)
17+
- [Knowledge Base](https://redash.io/help)

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Change Log
22

3+
## v6.0.0 - 2018-12-16
4+
5+
v6.0.0 release version. Mainly includes fixes for regressions from the beta version.
6+
7+
This release had contributions from 5 people: @rauchy, @denisov-vlad, @arikfr, @ariarijp, and @gabrieldutra. Thank you, everyone 🙏
8+
9+
### Changed
10+
11+
* #3183 Make refresh_queries less noisey in logs. @arikfr
12+
13+
### Fixed
14+
15+
* #3163 Include correct version in production builds. @rauchy
16+
* #3161 Clickhouse: fix int() conversion error. @denisov-vlad
17+
* #3166 Directly using record_event task requires timestamp. @arikfr
18+
* #3167 Alert.evaluate failing when the column is missing. @arikfr
19+
* ##3162 Remove API permissions for users who have been disabled. @rauchy
20+
* #3171 Reject empty query name. @ariarijp
21+
* #3175, #3186 Fix disable error message. @rauchy, @gabrieldutra
22+
* #3182 [Redshift] support for schema names with dots. @arikfr
23+
* #3187 Safely create_app in Celery code (try to fetch current_app first). @arikfr
24+
25+
### Other
26+
27+
* #3155 Add DB Seed to Cypress and setup Percy. @gabrieldutra
28+
* #3180 Remove coverage from pytest terminal output. @rauchy
29+
30+
331
## v6.0.0-beta - 2018-12-03
432

533
This release was 2 months in the making and it is full with good stuff!

Dockerfile.cypress

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
FROM cypress/browsers:chrome67
22

3-
WORKDIR /usr/src/app
3+
ENV APP /usr/src/app
4+
WORKDIR $APP
45

5-
RUN npm install cypress > /dev/null
6+
RUN npm install --no-save cypress @percy/cypress > /dev/null
67

7-
COPY cypress /usr/src/app/cypress
8-
COPY cypress.json /usr/src/app/cypress.json
8+
COPY cypress $APP/cypress
9+
COPY cypress.json $APP/cypress.json
910

1011
RUN ./node_modules/.bin/cypress verify

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ Today **_Redash_** has support for querying multiple databases, including: Redsh
2828

2929
## Supported Data Sources
3030

31-
Redash supports more than 25 [data sources](https://redash.io/help/data-sources/supported-data-sources).
31+
Redash supports more than 35 [data sources](https://redash.io/help/data-sources/supported-data-sources).
3232

3333
## Getting Help
3434

3535
* Issues: https://github.com/getredash/redash/issues
3636
* Discussion Forum: https://discuss.redash.io/
37-
* Slack: http://slack.redash.io/
3837

3938
## Reporting Bugs and Contributing Code
4039

client/app/components/EditInPlace.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class EditInPlace extends React.Component {
4040

4141
stopEditing = () => {
4242
const newValue = this.inputRef.current.value;
43-
const ignorableBlank = this.props.ignoreBlanks && this.props.value === '';
43+
const ignorableBlank = this.props.ignoreBlanks && newValue === '';
4444
if (!ignorableBlank && newValue !== this.props.value) {
4545
this.props.onDone(newValue);
4646
}

client/app/components/QueryEditor.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class QueryEditor extends React.Component {
179179
const isExecuteDisabled = this.props.queryExecuting || !this.props.canExecuteQuery();
180180

181181
return (
182-
<section style={{ height: '100%' }}>
182+
<section style={{ height: '100%' }} data-test="QueryEditor">
183183
<div className="container p-15 m-b-10" style={{ height: '100%' }}>
184184
<div style={{ height: 'calc(100% - 40px)', marginBottom: '0px' }} className="editor__container">
185185
<AceEditor
@@ -262,6 +262,7 @@ class QueryEditor extends React.Component {
262262
className={'btn btn-primary m-l-5' + (isExecuteDisabled ? ' disabled' : '')}
263263
disabled={isExecuteDisabled}
264264
onClick={this.props.executeQuery}
265+
data-test="ExecuteButton"
265266
>
266267
<span className="zmdi zmdi-play" />
267268
<span className="hidden-xs m-l-5">Execute</span>

0 commit comments

Comments
 (0)