Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge from edp963/davinci dev-0.3 #2

Merged
merged 137 commits into from
Nov 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
751f2a3
refactor: WIP react-router-5
AndyFong Sep 3, 2019
e7d0b0c
chore: fix request ts function override typings
AndyFong Sep 11, 2019
9c1668f
refactor: react-router-5 done, remain test
AndyFong Sep 11, 2019
da61141
chore: rename Source components name & path
AndyFong Sep 23, 2019
6191d91
feat(Components): add Editable Table component
AndyFong Sep 25, 2019
c82fbd2
chore: add copyright header & fix hooks deps error
AndyFong Sep 26, 2019
37e85c2
feat(Source): update Source config with properties k/v setting
AndyFong Sep 26, 2019
e8f8a99
feat(Source): autofill url prefix by datasource selection
AndyFong Sep 26, 2019
fc2fbe6
feat(Source): add Source reset operation
AndyFong Oct 8, 2019
4f923c1
chore(Source): move to ./components
AndyFong Oct 8, 2019
ed7c941
Fix: always flush cache when polling
scottsut Oct 9, 2019
97f73de
Merge pull request #1256 from scottsut/dev-0.3
scottsut Oct 9, 2019
c4ffb64
fix(View): remove duplicate copy button
AndyFong Oct 9, 2019
777d227
Merge pull request #1261 from xxxllluuu/dev-0.3
RichardShan Oct 11, 2019
c29062f
fix: add properties field for `source` in init connect, refactor jdbc…
RichardShan Sep 24, 2019
0f59b9c
fix: Source reconnect check user/pwd
RichardShan Oct 10, 2019
65574be
fix: check prefix and suffix in load custom datasource config
RichardShan Oct 11, 2019
0c30220
fix: view and source
RichardShan Oct 12, 2019
5b34852
Chore: temporary increase visual data limit to 600 for business
scottsut Oct 10, 2019
df46724
Feat: add gauge widget type
scottsut Oct 14, 2019
e089abb
Chore: add copyright notices
scottsut Oct 14, 2019
d2fa2f8
Chore: optimize relative path
scottsut Oct 14, 2019
3466739
Merge pull request #1267 from scottsut/dev-0.3
AndyFong Oct 14, 2019
f08f380
Fix: support display share page screenshot in schedule
scottsut Oct 16, 2019
ae9ff82
Merge pull request #1268 from scottsut/dev-0.3
AndyFong Oct 17, 2019
b3bd009
chore: rename Source components name & path
AndyFong Sep 23, 2019
e010083
feat(Components): add Editable Table component
AndyFong Sep 25, 2019
b061b1a
chore: add copyright header & fix hooks deps error
AndyFong Sep 26, 2019
f39312a
feat(Source): update Source config with properties k/v setting
AndyFong Sep 26, 2019
a0e1232
feat(Source): autofill url prefix by datasource selection
AndyFong Sep 26, 2019
7f482b0
feat(Source): add Source reset operation
AndyFong Oct 8, 2019
7bfe493
chore(Source): move to ./components
AndyFong Oct 8, 2019
3eef036
fix(View): remove duplicate copy button
AndyFong Oct 9, 2019
440d1f4
fix(Share): flights map widget render error in Share page
AndyFong Oct 18, 2019
d63f44f
fix: deplucate and wrong quill bundle
AndyFong Oct 18, 2019
9180def
chore: add .png module typescript typing
AndyFong Oct 18, 2019
3a3b418
feat(hook): add custom hook for table pagination simple or not
AndyFong Oct 18, 2019
972641f
fix(Dashboard): make loadDashboards saga effect to takeEvery for mult…
AndyFong Oct 18, 2019
ae2f528
refactor(Schedule): refactor schedule and feature improvement
AndyFong Oct 19, 2019
707db28
style(Schedule): lift up mail to/cc/bcc input position
AndyFong Oct 19, 2019
6d0292b
fix typo connot ==> cannot
Oct 23, 2019
161f75b
Merge pull request #1278 from yangyanqing/frank/fix-typo-connot
RichardShan Oct 23, 2019
79ead09
fix: shareParams date type
ruanhan Oct 24, 2019
7fead19
Merge pull request #1257 from AndyFong/dev-0.3
scottsut Oct 28, 2019
d3ece4d
fix: shareParams date type
ruanhan Oct 24, 2019
dddfdeb
fix: fix date type filters in dashboard and display
ruanhan Oct 28, 2019
867763e
fix: update getSqlType in widgetProps model
ruanhan Oct 29, 2019
8719652
Merge branch 'dev-0.3' of https://github.com/ruanhan1988/davinci into…
ruanhan Oct 29, 2019
b3ed8c5
fix: optimization
ruanhan Oct 29, 2019
fdd6915
Merge pull request #1264 from RichardShan/dev-0.3
RichardShan Oct 29, 2019
51eb4e7
update ST authParamMap
Oct 29, 2019
1848887
fix(Share): flights map widget render error in Share page
AndyFong Oct 18, 2019
ba936f8
fix: deplucate and wrong quill bundle
AndyFong Oct 18, 2019
2e739c9
chore: add .png module typescript typing
AndyFong Oct 18, 2019
cb53fd0
feat(hook): add custom hook for table pagination simple or not
AndyFong Oct 18, 2019
3694541
fix(Dashboard): make loadDashboards saga effect to takeEvery for mult…
AndyFong Oct 18, 2019
a7142da
refactor(Schedule): refactor schedule and feature improvement
AndyFong Oct 19, 2019
f580f94
style(Schedule): lift up mail to/cc/bcc input position
AndyFong Oct 19, 2019
6d75bcf
Merge branch 'refactor/schedule' of https://github.com/AndyFong/davin…
AndyFong Oct 29, 2019
24e71df
style(Schedule): update ScheduleMailConfig UI
AndyFong Oct 29, 2019
7a9fbdc
fix(Schedule): fix ScheduleBaseConfig form typing
AndyFong Oct 29, 2019
e42bac3
fix(Schedule): cron expression minute min 10 error
AndyFong Oct 29, 2019
a1bebae
Merge pull request #1284 from AndyFong/refactor/schedule
scottsut Oct 29, 2019
0e2b4fd
Merge pull request #1282 from ruanhan/dev-0.3
scottsut Oct 30, 2019
f8dab7c
Merge pull request #1283 from Mrclg/dev-0.3
RichardShan Oct 31, 2019
7682552
fix and optimize: schedule, screenshots...
RichardShan Oct 22, 2019
dda8b53
feature: copy display
RichardShan Oct 28, 2019
4e76cb7
fix: schedule, auth variable not enable, optimize parse sql
RichardShan Nov 1, 2019
c509e39
fix: profile info is modified and saved,no changed on page #1231
ruanhan Nov 4, 2019
8c95f91
fix: MailUtil add "fromAddress" config #1145
RichardShan Nov 4, 2019
86eea23
rebuild: mail util
RichardShan Nov 4, 2019
869bff6
fix: data import
RichardShan Nov 5, 2019
bd7b5b8
Merge pull request #1291 from RichardShan/dev-0.3
Mrclg Nov 5, 2019
b1d2f0d
fix: update profile error
ruanhan Nov 5, 2019
f55584d
fix: select search style in View&Widget edit
AndyFong Nov 6, 2019
db825b1
fix(Schedule): Quill imageResize custom module loading error
AndyFong Nov 6, 2019
d4c0b5d
Fix: year dynamic date widget filter bug
scottsut Nov 6, 2019
e0efe12
Merge pull request #1293 from AndyFong/hotfix/source-view-search
scottsut Nov 6, 2019
69aaf8c
Merge pull request #1295 from scottsut/dev-0.3
AndyFong Nov 6, 2019
c23c794
Merge pull request #1289 from ruanhan/dev-0.3
scottsut Nov 6, 2019
0356eb8
feat(Schedule): allow add no exists mail mode to MailTag
AndyFong Nov 6, 2019
d947f52
fix: mail from address property, jdbc url check
RichardShan Nov 6, 2019
443c82a
Merge pull request #1296 from AndyFong/hotfix/schedule-mail-input
AndyFong Nov 6, 2019
3093df4
Merge pull request #1297 from RichardShan/dev-0.3
scottsut Nov 6, 2019
1139471
Chore: Emphasize reset button functionality
scottsut Nov 6, 2019
64a4959
Fix: change schedule rich text to inline style
scottsut Nov 6, 2019
da691f2
Merge pull request #1299 from scottsut/dev-0.3
AndyFong Nov 7, 2019
67e6166
Fix: avoid frequent clicks on the dashboard menu cause the request to…
scottsut Nov 7, 2019
cbd0c37
fix(Schedule): editing schedule not reset after leave
AndyFong Nov 7, 2019
86075fd
fix(Schedule): fix initial Dashboards loading for Portal from setting…
AndyFong Nov 7, 2019
c76522d
fix(Schedule): Dashboards are not tree view under Portal
AndyFong Nov 7, 2019
46df089
fix(Components): remove empty email from input
AndyFong Nov 7, 2019
f45485b
Merge pull request #1300 from scottsut/dev-0.3
AndyFong Nov 7, 2019
933171e
Merge pull request #1301 from AndyFong/hotfix/schedule-editing
AndyFong Nov 7, 2019
b92d2b8
Fix: incorrectly auto load when change dashboards
scottsut Nov 7, 2019
b9324f7
Merge pull request #1302 from scottsut/dev-0.3
AndyFong Nov 7, 2019
ffc40d5
Fix: incorrectly auto load when change dashboards -- immediately quer…
scottsut Nov 7, 2019
2a2963c
Merge pull request #1303 from scottsut/dev-0.3
scottsut Nov 7, 2019
5505645
refactor(Schedule): remove Portal Config migration codes
AndyFong Nov 11, 2019
424fdd4
refactor: WIP react-router-5
AndyFong Sep 3, 2019
e3263f9
chore: fix request ts function override typings
AndyFong Sep 11, 2019
b029916
refactor: react-router-5 done, remain test
AndyFong Sep 11, 2019
c6ae60c
chore: use transform-imports to avoid full import
AndyFong Nov 12, 2019
6f47e76
Merge branch 'feature/react-router-5' of https://github.com/AndyFong/…
AndyFong Nov 12, 2019
401b302
fix(Router): fix ScheduleEditor & vizs router error
AndyFong Nov 12, 2019
41f62b3
fix(Router): Navigator visibility error when Route changed
AndyFong Nov 12, 2019
0352575
refactor(Router): update RouteParams wid,pid to widgetId,projectId
AndyFong Nov 12, 2019
835eafe
fix(Schedule): remove `displays` judgement after Display reducer to i…
AndyFong Nov 12, 2019
1398814
refactor(Router): change param :uid to :userId
AndyFong Nov 12, 2019
585c7fc
Merge pull request #1309 from AndyFong/refactor/schedule-migration
scottsut Nov 13, 2019
6a05066
fix: mail util, delete project
RichardShan Nov 14, 2019
c20aaae
Merge pull request #1312 from RichardShan/dev-0.3
RichardShan Nov 14, 2019
0bc54b0
dev-0.3 beta.8 ui
RichardShan Nov 14, 2019
2970b81
Merge pull request #1314 from RichardShan/dev-0.3
AndyFong Nov 14, 2019
136be16
fix: fix fastjson version and davinci assembly config
RichardShan Nov 14, 2019
b3ddb91
Merge pull request #1315 from RichardShan/dev-0.3
RichardShan Nov 14, 2019
399d45a
Merge branch 'dev-0.3' of https://github.com/edp963/davinci into feat…
AndyFong Nov 17, 2019
873d56d
fix: redux statistics middleware
AndyFong Nov 18, 2019
70ceb7b
fix: code review errors(reducer & router)
AndyFong Nov 18, 2019
fa1a124
Merge pull request #1322 from AndyFong/feature/react-router-5
scottsut Nov 19, 2019
ade15dc
fix: (shareParams) decodeURIComponent chinese key
ruanhan Nov 19, 2019
19d38d1
fix:(fullscreen) fix fullscreen error when change dashboard and refac…
ruanhan Nov 19, 2019
1751219
Merge pull request #1326 from ruanhan/sharefilter
scottsut Nov 19, 2019
83933db
fix:(fullscreen) fix fullscreen error when change dashboard and refac…
ruanhan Nov 19, 2019
2ab846d
fix:(fullscreen) fix fullscreen in share
ruanhan Nov 19, 2019
bc741de
merge prev commit
ruanhan Nov 19, 2019
61d3f69
Fix: mistakes by refactor
scottsut Nov 19, 2019
5c0d588
Merge pull request #1328 from scottsut/dev-0.3
AndyFong Nov 19, 2019
920ddbc
Fix: linkager config list should present all columns of view model
scottsut Nov 19, 2019
1e17f54
Merge pull request #1329 from scottsut/dev-0.3
AndyFong Nov 19, 2019
1ce1bdc
fix:(share) global control lose select options
ruanhan Nov 21, 2019
ab55439
fix:(fullscreen) fix fullscreen error when change dashboard and refac…
ruanhan Nov 19, 2019
77cd9aa
fix:(fullscreen) fix fullscreen in share
ruanhan Nov 19, 2019
c4979e3
fix:(share) global control lose select options
ruanhan Nov 21, 2019
32fd156
fix(fullscreen): fix code spaces and remove invalid typescript interface
ruanhan Nov 25, 2019
e6f0689
fix(fullscreen): merge origin
ruanhan Nov 25, 2019
c898cb1
Merge pull request #1327 from ruanhan/fullscreen
scottsut Nov 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion assembly/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


<assembly>
<id>dist-beta.7</id>
<id>dist-beta.8</id>
<formats>
<format>zip</format>
</formats>
Expand Down
6 changes: 3 additions & 3 deletions bin/davinci.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CREATE TABLE `cron_job`
`description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`exec_log` text COLLATE utf8_unicode_ci,
`create_by` bigint(20) NOT NULL,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`update_time` timestamp NULL DEFAULT NULL,
`parent_id` bigint(20) DEFAULT NULL,
Expand Down Expand Up @@ -216,7 +216,7 @@ CREATE TABLE `organization`
`role_num` int(20) DEFAULT '0',
`allow_create_project` tinyint(1) DEFAULT '1',
`member_permission` smallint(1) NOT NULL DEFAULT '0',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_by` bigint(20) NOT NULL DEFAULT '0',
`update_time` timestamp NULL DEFAULT NULL,
`update_by` bigint(20) DEFAULT '0',
Expand Down Expand Up @@ -510,7 +510,7 @@ CREATE TABLE `user`
`description` varchar(255) DEFAULT NULL,
`department` varchar(255) DEFAULT NULL,
`avatar` varchar(255) DEFAULT NULL,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`create_by` bigint(20) NOT NULL DEFAULT '0',
`update_time` timestamp NOT NULL DEFAULT '1970-01-01 08:00:01',
`update_by` bigint(20) NOT NULL DEFAULT '0',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions bin/migration/beta8/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### 注意!

1. **升级前请务必备份数据!!!, 升级前请务必备份数据!!!, 升级前请务必备份数据!!!**
2. 本次升级只针对 davinci0.3 beta.7 升级至 beta.8, 其他版本请不要执行!
3. 已安装 beta.8 及之后版本无须执行此脚本;
4. 本次升级默认读取 config 下 application.yml 中配置的 davinci 数据源,也可通过参数指定,更多信息请执行 ‘upgrade -help’ 查看;
5. 升级脚本为二进制文件,不同平台执行相应脚本即可,无须重复执行:

| 平台 | 对应脚本 |
| --- | --- |
|Windows | upgrade.exe |
|Mac OS | upgrade_darwin |
|Linux | upgrade_linux |
Binary file added bin/migration/beta8/upgrade.exe
Binary file not shown.
Binary file added bin/migration/beta8/upgrade_darwin
Binary file not shown.
Binary file added bin/migration/beta8/upgrade_linux
Binary file not shown.
10 changes: 10 additions & 0 deletions bin/patch/003_beta8.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ALTER TABLE `cron_job`
MODIFY COLUMN `create_time` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `create_by`;


ALTER TABLE `organization`
MODIFY COLUMN `create_time` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `member_permission`;


ALTER TABLE `user`
MODIFY COLUMN `create_time` timestamp(0) NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `avatar`;
1 change: 1 addition & 0 deletions config/application.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ spring:
host:
port:
username:
fromAddress:
password:
nickname:

Expand Down
27 changes: 27 additions & 0 deletions config/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<property name="USER" value="user"/>

<property name="SQL" value="sql"/>
<property name="SCHEDULE" value="schedule"/>
<property name="OPT" value="opt"/>

<property name="LOG_HOME_PATH" value="${DAVINCI3_HOME}/logs"/>
Expand All @@ -42,6 +43,9 @@
<property name="BUSINESS_OPERATION_LOG_PATTERN"
value="${BUSINESS_OPERATION_LOG_PATTERN:-%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} --- %file:%line : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>

<property name="BUSINESS_SCHEDULE_LOG_PATTERN"
value="${BUSINESS_SCHEDULE_LOG_PATTERN:-%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} --- %file:%line : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>

<appender name="SYS_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
Expand Down Expand Up @@ -95,12 +99,35 @@
</appender>


<appender name="BUSINESS_SCHEDULE_LOG_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">

<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>

<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>${LOG_HOME_PATH}/${USER}/${SCHEDULE}/%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>10</MaxHistory>
</rollingPolicy>

<encoder>
<charset>UTF-8</charset>
<pattern>${BUSINESS_SCHEDULE_LOG_PATTERN}</pattern>
</encoder>
</appender>


<logger name="BUSINESS_SQL" additivity="false" level="INFO">
<appender-ref ref="BUSINESS_SQL_LOG_APPENDER"/>
</logger>
<logger name="BUSINESS_OPERATION" additivity="false" level="INFO">
<appender-ref ref="BUSINESS_OPERATION_LOG_APPENDER"/>
</logger>
<logger name="BUSINESS_SCHEDULE" additivity="false" level="INFO">
<appender-ref ref="BUSINESS_SCHEDULE_LOG_APPENDER"/>
</logger>


<root level="INFO">
Expand Down
52 changes: 52 additions & 0 deletions davinci-ui/.htaccess.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<ifModule mod_rewrite.c>


#######################################################################
# GENERAL #
#######################################################################

# Make apache follow sym links to files
Options +FollowSymLinks
# If somebody opens a folder, hide all files from the resulting folder list
IndexIgnore */*


#######################################################################
# REWRITING #
#######################################################################

# Enable rewriting
RewriteEngine On

# If its not HTTPS
RewriteCond %{HTTPS} off

# Comment out the RewriteCond above, and uncomment the RewriteCond below if you're using a load balancer (e.g. CloudFlare) for SSL
# RewriteCond %{HTTP:X-Forwarded-Proto} !https

# Redirect to the same URL with https://, ignoring all further rules if this one is in effect
RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L]

# If we get to here, it means we are on https://

# If the file with the specified name in the browser doesn't exist
RewriteCond %{REQUEST_FILENAME} !-f

# and the directory with the specified name in the browser doesn't exist
RewriteCond %{REQUEST_FILENAME} !-d

# and we are not opening the root already (otherwise we get a redirect loop)
RewriteCond %{REQUEST_FILENAME} !\/$

# Rewrite all requests to the root
RewriteRule ^(.*) /

</ifModule>

<IfModule mod_headers.c>
# Do not cache sw.js, required for offline-first updates.
<FilesMatch "sw\.js$">
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
</IfModule>

Large diffs are not rendered by default.

Binary file not shown.
1 change: 0 additions & 1 deletion davinci-ui/12.a221b5769e91ee84acee.chunk.js

This file was deleted.

Binary file removed davinci-ui/12.a221b5769e91ee84acee.chunk.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Loading