Skip to content

Commit 762f92a

Browse files
authored
Merge pull request #1861 from running-elephant/dev
Release RC.1
2 parents 35cb1af + 5d2862c commit 762f92a

File tree

191 files changed

+4292
-2155
lines changed

Some content is hidden

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

191 files changed

+4292
-2155
lines changed

.github/workflows/dev-ut-stage.js.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ jobs:
3333
working-directory: ./frontend
3434
- run: npm run test:ci
3535
working-directory: ./frontend
36+
- run: npm run lint:css
37+
working-directory: ./frontend
38+
- run: npm run lint:style
39+
working-directory: ./frontend

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-rc.0</version>
8+
<version>1.0.0-rc.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/src/main/java/datart/core/mappers/ext/VariableMapperExt.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ public interface VariableMapperExt extends VariableMapper {
1818
})
1919
List<Variable> selectByIds(Collection<String> ids);
2020

21+
@Select({
22+
"<script>",
23+
"SELECT count(1) FROM variable WHERE org_id=#{orgId} AND `name` = #{name}",
24+
"<if test=\"viewId==null\">",
25+
" AND view_id IS NULL ",
26+
"</if>",
27+
"<if test=\"viewId!=null\">",
28+
" AND view_id=#{viewId} ",
29+
"</if>",
30+
"</script>",
31+
})
32+
int checkVariableName(String orgId, String viewId, String name);
33+
2134
@Select({
2235
"SELECT * FROM variable WHERE view_id = #{viewId}"
2336
})

data-providers/data-provider-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-data-provider</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-rc.0</version>
8+
<version>1.0.0-rc.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

data-providers/data-provider-base/src/main/java/datart/data/provider/ProviderManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ private void excludeColumns(Dataframe data, Set<SelectColumn> include) {
195195
if (include
196196
.stream()
197197
.noneMatch(selectColumn ->
198-
column.columnKey().equals(selectColumn.getColumnKey()) || column.columnKey().equals(selectColumn.getAlias()))) {
198+
column.columnKey().equals(selectColumn.getColumnKey())
199+
|| column.columnKey().equals(selectColumn.getAlias())
200+
|| column.columnKey().contains(selectColumn.getColumnKey()))) {
199201
excludeIndex.add(i);
200202
}
201203
}

data-providers/file-data-provider/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-data-provider</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-rc.0</version>
8+
<version>1.0.0-rc.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

data-providers/http-data-provider/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-data-provider</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-rc.0</version>
8+
<version>1.0.0-rc.1</version>
99
</parent>
1010

1111
<modelVersion>4.0.0</modelVersion>

data-providers/jdbc-data-provider/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-data-provider</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-rc.0</version>
8+
<version>1.0.0-rc.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

data-providers/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>datart-parent</artifactId>
77
<groupId>datart</groupId>
8-
<version>1.0.0-rc.0</version>
8+
<version>1.0.0-rc.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

frontend/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ yarn-error.log*
3434
# docs
3535
/types
3636

37+
/public/custom-chart-plugins/
3738
/public/task
3839
/public/antd/theme.less

frontend/.husky/pre-commit

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
cd frontend
5+
npm run lint:css
6+
npm run lint:style

frontend/.husky/pre-push

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33

44
cd frontend
55
npm run test:ci
6+
npm run lint:css
7+
npm run lint:style
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
{
2-
"processors": ["stylelint-processor-styled-components"],
32
"extends": [
43
"stylelint-config-recommended",
54
"stylelint-config-styled-components",
65
"stylelint-config-recess-order"
76
],
7+
"rules": {
8+
"function-no-unknown": null,
9+
"font-family-no-missing-generic-family-keyword": null
10+
},
811
"overrides": [
912
{
1013
"files": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
11-
"customSyntax": "postcss"
14+
"customSyntax": "@stylelint/postcss-css-in-js"
1215
}
1316
]
1417
}

frontend/craco.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ module.exports = {
136136
},
137137
};
138138

139+
const instanceOfMiniCssExtractPlugin = webpackConfig.plugins.filter(
140+
plugin => plugin.constructor.name === 'MiniCssExtractPlugin',
141+
)[0];
142+
if (instanceOfMiniCssExtractPlugin) {
143+
instanceOfMiniCssExtractPlugin.options.ignoreOrder = true;
144+
}
145+
139146
const defaultEntryHTMLPlugin = webpackConfig.plugins.filter(plugin => {
140147
return plugin.constructor.name === 'HtmlWebpackPlugin';
141148
})[0];
@@ -189,15 +196,14 @@ module.exports = {
189196
},
190197
modulePaths: ['../'],
191198
},
192-
193199
devServer: {
194200
before: function (app, server, compiler) {
195201
app.get('/api/v1/plugins/custom/charts', function (req, res) {
196202
const pluginPath = 'custom-chart-plugins';
197203
const dir = fs.readdirSync(`./public/${pluginPath}`);
198204
res.json({
199205
data: (dir || [])
200-
.filter(file => path.extname(file) == '.js')
206+
.filter(file => path.extname(file) === '.js')
201207
.map(file => `${pluginPath}/${file}`),
202208
errCode: 0,
203209
success: true,

0 commit comments

Comments
 (0)