This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
# Conflicts: # src/metabase/server.clj
- Loading branch information
Showing
1,911 changed files
with
303,195 additions
and
63,247 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Feature Implementation | ||
about: This issue is used to track a feature implementation for a solution to a user | ||
problem that may span days to weeks to implement. This is used by the core Metabase | ||
team to project plan and mange work. | ||
title: Feature X Implementation | ||
labels: ".Feature" | ||
assignees: '' | ||
|
||
--- | ||
|
||
This demonstrates a workflow and implementation plan around feature X that we can use in features that go out in a release. There should be a paragraph description of the problem we're trying to solve and a high level what the solution will be. | ||
|
||
**Links** | ||
- product doc: _link to product doc_ | ||
- eng doc: _link to technical design doc_ | ||
- feature branch: `branch-name` _this should be the feature branch where this work will be done in. PRs will be delivered against this branch_ | ||
- Issue links: _list of issues this should close when this is delivered_ | ||
|
||
**Implementation Plan** | ||
|
||
**ETA**: MM/DD/YYYY (ETA of merged feature when we start work) | ||
|
||
_(each individual item in list should correspond to a PR and be less than one week of work maximum!)_ | ||
|
||
- [x] step 1: #somePRnumber | ||
- [ ] step 2 | ||
- [ ] step 3 | ||
|
||
**Needs to happen before merge** | ||
|
||
_(we can put stuff like translations, docs, testing, etc)_ | ||
|
||
- [ ] Design polish | ||
- [ ] String translations | ||
- [ ] Test on case X, Y, Z | ||
- [ ] Write rough pass documents for handoff to customer success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
|
||
|
||
###### Before submitting the PR, please make sure you do the following | ||
|
||
- [ ] If you're attempting to fix a translation issue, please submit your changes to our [POEditor project](https://poeditor.com/join/project/ynjQmwSsGh) instead of opening a PR. | ||
|
||
### Tests | ||
- [ ] Run the frontend and integration tests with `yarn lint && yarn flow && yarn test`) | ||
- [ ] If there are changes to the backend codebase, run the backend tests with `lein test && lein lint && ./bin/reflection-linter` | ||
|
||
- [ ] Sign the [Contributor License Agreement](https://docs.google.com/a/metabase.com/forms/d/1oV38o7b9ONFSwuzwmERRMi9SYrhYeOrkbmNaq9pOJ_E/viewform) | ||
(unless it's a tiny documentation change). | ||
- [ ] Run the frontend and Cypress end-to-end tests with `yarn lint && yarn test`) | ||
- [ ] If there are changes to the backend codebase, run the backend tests with `lein test && lein lint && ./bin/reflection-linter` | ||
|
||
- [ ] Sign the [Contributor License Agreement](https://docs.google.com/a/metabase.com/forms/d/1oV38o7b9ONFSwuzwmERRMi9SYrhYeOrkbmNaq9pOJ_E/viewform) | ||
(unless it's a tiny documentation change). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
### Status | ||
|
||
PENDING CI / PENDING REVIEW / READY _(choose one and update accordingly)_ | ||
|
||
### What does this PR accomplish? | ||
|
||
- Reproduces #XXXXX | ||
|
||
### How to test this manually? | ||
|
||
- `yarn test-cypress-open` | ||
- `relative/path/to/the/file` _(optionally, include the line number on which the test starts)_ | ||
> _(For still unfixed bug)_ | ||
- Replace `it.skip()` with `it.only()` to test this in isolation | ||
- The test should fail until the related issue is fixed | ||
> _(For a fixed bug)_ | ||
- The test should pass | ||
|
||
### Additional notes: | ||
|
||
> _(For still unfixed bug)_ | ||
- Once the issue is fixed, please remove the `.skip` part (unskip the test completely) | ||
- Make sure the test is passing and | ||
- Merge it together with the fix | ||
> _(For a fixed bug)_ | ||
- Please merge this repro unskipped | ||
- The bug was fixed in #YYYYY | ||
|
||
### Questions: | ||
|
||
- this is optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: javascript | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
name: Uberjar | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- 'release-**' | ||
tags: | ||
- '**' | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'frontend/test/**' | ||
- 'enterprise/frontend/test/**' | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
edition: [ee, oss] | ||
env: | ||
MB_EDITION: ${{ matrix.edition }} | ||
INTERACTIVE: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14.x | ||
- name: Prepare JDK 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Install gettext | ||
run: sudo apt install gettext | ||
- name: Install Clojure CLI | ||
run: | | ||
curl -O https://download.clojure.org/install/linux-install-1.10.1.708.sh && | ||
sudo bash ./linux-install-1.10.1.708.sh | ||
- name: Check versions | ||
run: | | ||
echo "Node.js `node --version`" | ||
echo "yarn `yarn --version`" | ||
java -version | ||
echo "Clojure `clojure -e "(println (clojure-version))"`" | ||
lein --version | ||
msgfmt --version | ||
- name: Get yarn cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/yarn | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
- name: Get M2 cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/project.clj') }}-${{ hashFiles('**/deps.edn') }} | ||
|
||
- run: yarn install --lockfile | ||
- run: lein with-profile +include-all-drivers,+cloverage,+junit,+${{ matrix.edition }} deps | ||
- run: ./bin/build | ||
|
||
- name: Mark with the commit hash | ||
run: git rev-parse --short HEAD > COMMIT-ID | ||
- name: Calculate SHA256 checksum | ||
run: sha256sum ./target/uberjar/metabase.jar > SHA256.sum | ||
- name: Upload JARs as artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: metabase-${{ matrix.edition }}-uberjar | ||
path: | | ||
./target/uberjar/metabase.jar | ||
./COMMIT-ID | ||
./SHA256.sum | ||
check: | ||
runs-on: ubuntu-20.04 | ||
name: check ${{ matrix.edition }} (java ${{ matrix.java-version }}) | ||
needs: build | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
edition: [ee, oss] | ||
java-version: [8, 11, 13] | ||
steps: | ||
- name: Prepare JRE (Java Run-time Environment) | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-package: jre | ||
java-version: ${{ matrix.java-version }} | ||
- run: java -version | ||
|
||
- uses: actions/download-artifact@v2 | ||
name: Retrieve uberjar artifact | ||
with: | ||
name: metabase-${{ matrix.edition }}-uberjar | ||
|
||
- name: Launch uberjar | ||
run: | | ||
java -jar ./target/uberjar/metabase.jar & | ||
sleep 180 | ||
timeout-minutes: 5 | ||
|
||
- name: Check API health | ||
run: curl -s localhost:3000/api/health | ||
|
||
known-issue-java15: | ||
runs-on: ubuntu-20.04 | ||
needs: build | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
edition: [ee, oss] | ||
steps: | ||
- name: Prepare JRE 15 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-package: jre | ||
java-version: 15 | ||
- run: java -version | ||
|
||
- uses: actions/download-artifact@v2 | ||
name: Retrieve uberjar artifact | ||
with: | ||
name: metabase-${{ matrix.edition }}-uberjar | ||
|
||
- name: Launch uberjar | ||
run: | | ||
java -jar ./target/uberjar/metabase.jar & | ||
sleep 180 | ||
timeout-minutes: 5 | ||
|
||
- name: Check API health | ||
run: curl -s localhost:3000/api/health | ||
continue-on-error: true |
Oops, something went wrong.