Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_22812535
incubator-superset
提交
60796da3
I
incubator-superset
项目概览
qq_22812535
/
incubator-superset
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-superset
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
60796da3
编写于
10月 24, 2018
作者:
C
Chris Williams
提交者:
GitHub
10月 24, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[superset-client][bugfix] fix stop query (#6179)
上级
6ec9e1a4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
7 deletion
+8
-7
superset/assets/src/chart/chartAction.js
superset/assets/src/chart/chartAction.js
+1
-1
superset/assets/src/chart/chartReducer.js
superset/assets/src/chart/chartReducer.js
+4
-3
superset/assets/src/common.js
superset/assets/src/common.js
+3
-3
未找到文件。
superset/assets/src/chart/chartAction.js
浏览文件 @
60796da3
...
...
@@ -174,7 +174,7 @@ export function runQuery(formData, force = false, timeout = 60, key) {
if
(
response
.
statusText
===
'
timeout
'
)
{
return
dispatch
(
chartUpdateTimeout
(
response
.
statusText
,
timeout
,
key
));
}
else
if
(
response
.
statusText
===
'
AbortError
'
)
{
}
else
if
(
response
.
name
===
'
AbortError
'
)
{
return
dispatch
(
chartUpdateStopped
(
key
));
}
return
getClientErrorObject
(
response
).
then
(
parsedResponse
=>
...
...
superset/assets/src/chart/chartReducer.js
浏览文件 @
60796da3
...
...
@@ -10,7 +10,7 @@ export const chart = {
chartUpdateEndTime
:
null
,
chartUpdateStartTime
:
0
,
latestQueryFormData
:
{},
query
Request
:
null
,
query
Controller
:
null
,
queryResponse
:
null
,
triggerQuery
:
true
,
lastRendered
:
0
,
...
...
@@ -32,12 +32,13 @@ export default function chartReducer(charts = {}, action) {
};
},
[
actions
.
CHART_UPDATE_STARTED
](
state
)
{
return
{
...
state
,
return
{
...
state
,
chartStatus
:
'
loading
'
,
chartAlert
:
null
,
chartUpdateEndTime
:
null
,
chartUpdateStartTime
:
now
(),
query
Request
:
action
.
queryRequest
,
query
Controller
:
action
.
queryController
,
};
},
[
actions
.
CHART_UPDATE_STOPPED
](
state
)
{
...
...
superset/assets/src/common.js
浏览文件 @
60796da3
...
...
@@ -6,9 +6,6 @@ import { toggleCheckbox } from './modules/utils';
import
setupClient
from
'
./setup/setupClient
'
;
import
setupColors
from
'
./setup/setupColors
'
;
setupClient
();
setupColors
();
$
(
document
).
ready
(
function
()
{
$
(
'
:checkbox[data-checkbox-api-prefix]
'
).
change
(
function
()
{
const
$this
=
$
(
this
);
...
...
@@ -31,6 +28,9 @@ $(document).ready(function () {
});
export
function
appSetup
()
{
setupClient
();
setupColors
();
// A set of hacks to allow apps to run within a FAB template
// this allows for the server side generated menus to function
window
.
$
=
$
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录