Skip to content

Commit f39e135

Browse files
authored
Merge pull request #2248 from scottsut/master
Release 1.0.0-RC.3
2 parents f52621a + 11d5764 commit f39e135

File tree

72 files changed

+1118
-507
lines changed

Some content is hidden

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

72 files changed

+1118
-507
lines changed

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.2</version>
8+
<version>1.0.0-rc.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

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.2</version>
8+
<version>1.0.0-rc.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

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.2</version>
8+
<version>1.0.0-rc.3</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.2</version>
8+
<version>1.0.0-rc.3</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.2</version>
8+
<version>1.0.0-rc.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

data-providers/jdbc-data-provider/src/main/java/datart/data/provider/jdbc/adapters/JdbcDataProviderAdapter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
package datart.data.provider.jdbc.adapters;
2020

21+
import com.alibaba.fastjson.JSON;
2122
import datart.core.base.PageInfo;
2223
import datart.core.base.consts.ValueType;
2324
import datart.core.base.exception.Exceptions;
@@ -183,7 +184,7 @@ public Set<Column> readTableColumn(String database, String table) throws SQLExce
183184

184185
public String getQueryKey(QueryScript script, ExecuteParam executeParam) throws SqlParseException {
185186
SqlScriptRender render = new SqlScriptRender(script, executeParam, getSqlDialect(), jdbcProperties.isEnableSpecialSql(), driverInfo.getQuoteIdentifiers());
186-
return "Q" + DigestUtils.md5Hex(render.render(true, supportPaging(), true));
187+
return "Q" + DigestUtils.md5Hex(render.render(true, supportPaging(), true) + ";includeColumns:" + JSON.toJSONString(executeParam.getIncludeColumns()) + ";viewId:" + script.getViewId() + ";pageInfo:" + JSON.toJSONString(executeParam.getPageInfo()));
187188
}
188189

189190
protected Column readTableColumn(ResultSet columnMetadata) throws SQLException {
@@ -484,4 +485,4 @@ protected Object getObjFromResultSet(ResultSet rs, int columnIndex) throws SQLEx
484485
}
485486
return obj;
486487
}
487-
}
488+
}

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.2</version>
8+
<version>1.0.0-rc.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

frontend/craco.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module.exports = {
6161
chunkFilename: 'static/js/[name].[contenthash:8].js',
6262
},
6363
// path: path.resolve(__dirname, 'dist'), // 修改输出文件目录
64-
publicPath: '/',
64+
publicPath: `${process.env.PUBLIC_URL || ''}/`,
6565
};
6666
/**
6767
* webpack split chunks

frontend/src/app/AppRouter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import { ConfigProvider, message } from 'antd';
2020
import echartsDefaultTheme from 'app/assets/theme/echarts_default_theme.json';
2121
import { registerTheme } from 'echarts';
22-
import { StorageKeys } from 'globalConstants';
22+
import { PUBLIC_URL, StorageKeys } from 'globalConstants';
2323
import { antdLocales } from 'locales/i18n';
2424
import { useEffect, useLayoutEffect } from 'react';
2525
import { Helmet } from 'react-helmet-async';
@@ -65,7 +65,7 @@ export function AppRouter() {
6565

6666
return (
6767
<ConfigProvider locale={antdLocales[i18n.language]}>
68-
<BrowserRouter>
68+
<BrowserRouter basename={PUBLIC_URL}>
6969
<Helmet
7070
titleTemplate="%s - Datart"
7171
defaultTitle="Datart"

frontend/src/app/components/ChartDrill/ChartDrillContextMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const ChartDrillContextMenu: FC<{
8080
} else {
8181
rows = groupSection?.rows?.filter(v => v.uid === allFields[0].uid);
8282
}
83+
rows = rows?.filter(row => row.type === DataViewFieldType.DATE);
8384
return getRuntimeDateLevelFields(rows);
8485
}, [drillOption, chartConfig?.datas, currentFields]);
8586

0 commit comments

Comments
 (0)