2019-01-31 20:26:41 -05:00
|
|
|
{
|
|
|
|
"name": "web-console",
|
2024-09-10 01:31:20 -04:00
|
|
|
"version": "32.0.0",
|
2019-01-31 20:26:41 -05:00
|
|
|
"description": "A web console for Apache Druid",
|
2020-07-12 21:51:08 -04:00
|
|
|
"author": "Apache Druid Developers <dev@druid.apache.org>",
|
2019-01-31 20:26:41 -05:00
|
|
|
"license": "Apache-2.0",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2020-10-13 16:19:39 -04:00
|
|
|
"url": "https://github.com/apache/druid"
|
2019-01-31 20:26:41 -05:00
|
|
|
},
|
2021-04-22 22:33:03 -04:00
|
|
|
"prettier": "@awesome-code-style/prettier-config",
|
2019-01-31 20:26:41 -05:00
|
|
|
"scripts": {
|
|
|
|
"compile": "./script/build",
|
|
|
|
"pretest": "./script/build",
|
2024-10-21 14:38:19 -04:00
|
|
|
"jest": "jest --config jest.config.js src",
|
2021-04-22 22:33:03 -04:00
|
|
|
"test-base": "npm run eslint && npm run sasslint && npm run prettify-check && npm run jest",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"test": "npm run test-base -- --silent 2>&1",
|
|
|
|
"test-ci": "npm run test-base -- --coverage",
|
2022-08-31 00:55:53 -04:00
|
|
|
"test-e2e": "jest --runInBand --config jest.e2e.config.js e2e-tests",
|
2019-08-28 11:49:30 -04:00
|
|
|
"codecov": "codecov --disable=gcov -p ..",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"coverage": "jest --coverage src",
|
2024-10-21 14:38:19 -04:00
|
|
|
"update-snapshots": "jest -u --config jest.config.js",
|
2021-04-22 22:33:03 -04:00
|
|
|
"autofix": "npm run eslint-fix && npm run sasslint-fix && npm run prettify",
|
2024-10-17 18:28:01 -04:00
|
|
|
"eslint": "eslint",
|
2021-04-22 22:33:03 -04:00
|
|
|
"eslint-fix": "npm run eslint -- --fix",
|
|
|
|
"eslint-changed-only": "git diff --diff-filter=ACMR --cached --name-only | grep -E \\.tsx\\?$ | xargs ./node_modules/.bin/eslint",
|
|
|
|
"eslint-fix-changed-only": "npm run eslint-changed-only -- --fix",
|
|
|
|
"sasslint": "./node_modules/.bin/stylelint 'src/**/*.scss'",
|
2019-07-29 17:41:27 -04:00
|
|
|
"sasslint-fix": "npm run sasslint -- --fix",
|
2021-04-22 22:33:03 -04:00
|
|
|
"sasslint-changed-only": "git diff --diff-filter=ACMR --name-only | grep -E \\.scss$ | xargs ./node_modules/.bin/stylelint",
|
2019-07-29 17:41:27 -04:00
|
|
|
"sasslint-fix-changed-only": "npm run sasslint-changed-only -- --fix",
|
2021-04-22 22:33:03 -04:00
|
|
|
"prettify": "prettier --write '{src,e2e-tests}/**/*.{ts,tsx,scss}' './*.js'",
|
|
|
|
"prettify-check": "prettier --check '{src,e2e-tests}/**/*.{ts,tsx,scss}' './*.js'",
|
2019-03-02 15:22:54 -05:00
|
|
|
"generate-licenses-file": "license-checker --production --json --out licenses.json",
|
2024-07-24 00:28:59 -04:00
|
|
|
"check-licenses": "license-checker --production --onlyAllow 'Apache-1.1;Apache-2.0;BSD-2-Clause;BSD-3-Clause;0BSD;MIT;ISC;CC0-1.0;OFL-1.1' --summary",
|
2023-12-13 19:16:54 -05:00
|
|
|
"start": "webpack serve"
|
2019-01-31 20:26:41 -05:00
|
|
|
},
|
2021-06-04 12:29:00 -04:00
|
|
|
"engines": {
|
2024-10-16 16:15:10 -04:00
|
|
|
"node": ">=20"
|
2021-06-04 12:29:00 -04:00
|
|
|
},
|
|
|
|
"volta": {
|
2024-10-16 16:15:10 -04:00
|
|
|
"node": "20.9.0",
|
|
|
|
"npm": "10.9.0"
|
2021-06-04 12:29:00 -04:00
|
|
|
},
|
2021-06-10 22:05:40 -04:00
|
|
|
"browserslist": [
|
|
|
|
"> 1% and supports es6",
|
|
|
|
"last 3 versions and supports es6",
|
|
|
|
"Firefox ESR",
|
|
|
|
"not dead",
|
|
|
|
"not ie 11"
|
|
|
|
],
|
2019-01-31 20:26:41 -05:00
|
|
|
"dependencies": {
|
2024-10-21 14:38:19 -04:00
|
|
|
"@blueprintjs/core": "^5.13.1",
|
|
|
|
"@blueprintjs/datetime": "^5.3.11",
|
|
|
|
"@blueprintjs/datetime2": "^2.3.11",
|
|
|
|
"@blueprintjs/icons": "^5.13.0",
|
|
|
|
"@blueprintjs/select": "^5.2.5",
|
|
|
|
"@druid-toolkit/query": "^0.22.23",
|
|
|
|
"@fontsource/open-sans": "^5.0.30",
|
|
|
|
"ace-builds": "~1.5.3",
|
|
|
|
"axios": "^1.7.7",
|
2023-11-27 15:15:47 -05:00
|
|
|
"chronoshift": "^0.10.0",
|
2019-01-31 20:26:41 -05:00
|
|
|
"classnames": "^2.2.6",
|
2024-10-21 14:38:19 -04:00
|
|
|
"copy-to-clipboard": "^3.3.3",
|
|
|
|
"d3-array": "^3.2.4",
|
|
|
|
"d3-axis": "^3.0.0",
|
|
|
|
"d3-dsv": "^3.0.1",
|
|
|
|
"d3-scale": "^4.0.2",
|
2024-09-30 02:15:21 -04:00
|
|
|
"d3-scale-chromatic": "^3.1.0",
|
2024-10-21 14:38:19 -04:00
|
|
|
"d3-selection": "^3.0.0",
|
2024-07-18 23:47:44 -04:00
|
|
|
"date-fns": "^2.28.0",
|
2024-10-21 14:38:19 -04:00
|
|
|
"echarts": "^5.5.1",
|
2023-12-05 17:25:07 -05:00
|
|
|
"file-saver": "^2.0.5",
|
|
|
|
"hjson": "^3.2.2",
|
2022-02-02 21:46:17 -05:00
|
|
|
"json-bigint-native": "^1.2.0",
|
2019-01-31 20:26:41 -05:00
|
|
|
"lodash.debounce": "^4.0.8",
|
2019-07-27 04:46:37 -04:00
|
|
|
"lodash.escape": "^4.0.1",
|
2024-10-21 14:38:19 -04:00
|
|
|
"memoize-one": "^5.2.1",
|
2019-01-31 20:26:41 -05:00
|
|
|
"numeral": "^2.0.6",
|
2024-10-21 14:38:19 -04:00
|
|
|
"react": "^18.3.1",
|
2023-06-09 15:09:13 -04:00
|
|
|
"react-ace": "^10.1.0",
|
2021-12-22 19:31:17 -05:00
|
|
|
"react-diff-viewer": "^3.1.1",
|
2024-10-21 14:38:19 -04:00
|
|
|
"react-dom": "^18.3.1",
|
2023-06-09 15:09:13 -04:00
|
|
|
"react-router": "^5.3.4",
|
|
|
|
"react-router-dom": "^5.3.4",
|
2024-10-17 18:28:01 -04:00
|
|
|
"react-table": "~6.11.5",
|
2021-04-16 23:15:19 -04:00
|
|
|
"regenerator-runtime": "^0.13.7",
|
2024-10-21 14:38:19 -04:00
|
|
|
"tslib": "^2.8.0",
|
|
|
|
"uuid": "^7.0.3",
|
|
|
|
"zustand": "^4.5.5"
|
2019-01-31 20:26:41 -05:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2024-10-17 18:28:01 -04:00
|
|
|
"@awesome-code-style/eslint-config": "^6.0.0",
|
2022-02-08 19:37:36 -05:00
|
|
|
"@awesome-code-style/prettier-config": "^4.0.0",
|
2024-10-17 18:28:01 -04:00
|
|
|
"@awesome-code-style/stylelint-config": "^6.0.0",
|
2024-10-21 14:38:19 -04:00
|
|
|
"@testing-library/dom": "^10.4.0",
|
|
|
|
"@testing-library/react": "^16.0.1",
|
2019-07-16 12:22:12 -04:00
|
|
|
"@types/classnames": "^2.2.9",
|
2024-10-21 14:38:19 -04:00
|
|
|
"@types/d3-array": "^3.2.1",
|
|
|
|
"@types/d3-axis": "^3.0.6",
|
|
|
|
"@types/d3-dsv": "^3.0.7",
|
|
|
|
"@types/d3-scale": "^4.0.8",
|
2024-09-30 02:15:21 -04:00
|
|
|
"@types/d3-scale-chromatic": "^3.0.3",
|
2024-10-21 14:38:19 -04:00
|
|
|
"@types/d3-selection": "^3.0.11",
|
|
|
|
"@types/enzyme": "^3.10.18",
|
2023-12-05 17:25:07 -05:00
|
|
|
"@types/enzyme-adapter-react-16": "^1.0.9",
|
|
|
|
"@types/file-saver": "^2.0.7",
|
|
|
|
"@types/hjson": "^2.4.6",
|
2022-02-08 19:37:36 -05:00
|
|
|
"@types/jest": "^27.4.0",
|
2024-10-21 14:38:19 -04:00
|
|
|
"@types/lodash.debounce": "^4.0.8",
|
|
|
|
"@types/lodash.escape": "^4.0.9",
|
2019-07-16 12:22:12 -04:00
|
|
|
"@types/memoize-one": "^4.1.1",
|
2024-10-21 14:38:19 -04:00
|
|
|
"@types/node": "^18.19.56",
|
|
|
|
"@types/numeral": "^2.0.5",
|
|
|
|
"@types/react": "^18.3.11",
|
|
|
|
"@types/react-dom": "^18.3.1",
|
2023-06-09 15:09:13 -04:00
|
|
|
"@types/react-router-dom": "^5.3.3",
|
2019-07-30 20:54:39 -04:00
|
|
|
"@types/react-table": "6.8.5",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"@types/uuid": "^7.0.2",
|
2024-10-17 18:28:01 -04:00
|
|
|
"autoprefixer": "^10.4.20",
|
|
|
|
"browserslist": "^4.24.0",
|
2022-02-08 19:37:36 -05:00
|
|
|
"codecov": "^3.8.2",
|
2021-04-16 23:15:19 -04:00
|
|
|
"css-loader": "^5.2.1",
|
2024-10-17 18:28:01 -04:00
|
|
|
"eslint": "^9.12.0",
|
|
|
|
"eslint-plugin-notice": "^1.0.0",
|
|
|
|
"eslint-plugin-react": "^7.37.1",
|
|
|
|
"eslint-plugin-react-hooks": "^5.0.0",
|
2019-07-16 12:22:12 -04:00
|
|
|
"fs-extra": "^8.1.0",
|
2024-10-17 18:28:01 -04:00
|
|
|
"globals": "^15.11.0",
|
2019-01-31 20:26:41 -05:00
|
|
|
"identity-obj-proxy": "^3.0.0",
|
2024-03-11 21:57:00 -04:00
|
|
|
"jest": "^29.7.0",
|
|
|
|
"jest-environment-jsdom": "^29.7.0",
|
2019-03-02 15:22:54 -05:00
|
|
|
"license-checker": "^25.0.1",
|
2022-08-24 19:17:12 -04:00
|
|
|
"playwright-chromium": "^1.24.1",
|
2024-10-17 18:28:01 -04:00
|
|
|
"postcss": "^8.4.47",
|
2021-06-10 22:05:40 -04:00
|
|
|
"postcss-loader": "^5.3.0",
|
2024-10-17 18:28:01 -04:00
|
|
|
"postcss-preset-env": "^10.0.7",
|
2022-02-08 19:37:36 -05:00
|
|
|
"prettier": "^2.5.1",
|
2023-02-07 02:12:54 -05:00
|
|
|
"react-shallow-renderer": "^16.15.0",
|
2022-11-23 15:16:00 -05:00
|
|
|
"replace": "^1.2.2",
|
2023-03-16 15:44:24 -04:00
|
|
|
"sass": "^1.59.3",
|
|
|
|
"sass-loader": "^13.2.0",
|
2021-12-22 19:31:17 -05:00
|
|
|
"snarkdown": "^2.0.0",
|
2021-04-16 23:15:19 -04:00
|
|
|
"style-loader": "^2.0.0",
|
2024-10-17 18:28:01 -04:00
|
|
|
"stylelint": "^16.1.0",
|
2024-10-21 14:38:19 -04:00
|
|
|
"ts-jest": "^29.2.5",
|
|
|
|
"ts-loader": "^9.5.1",
|
|
|
|
"ts-node": "^10.9.2",
|
|
|
|
"typescript": "~5.5.4",
|
2023-12-13 19:16:54 -05:00
|
|
|
"webpack": "^5.89.0",
|
|
|
|
"webpack-bundle-analyzer": "^4.10.1",
|
|
|
|
"webpack-cli": "^5.1.4",
|
|
|
|
"webpack-dev-server": "^4.15.1"
|
2023-06-09 15:09:13 -04:00
|
|
|
},
|
|
|
|
"overrides": {
|
|
|
|
"@types/react": "$@types/react"
|
2019-01-31 20:26:41 -05:00
|
|
|
}
|
|
|
|
}
|