Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
8e9166ff
Commit
8e9166ff
authored
9 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
return our older more cryptic error response when the user is running native queries.
parent
abb92fa1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/app/css/query_builder.css
+7
-0
7 additions, 0 deletions
frontend/app/css/query_builder.css
frontend/app/query_builder/QueryVisualization.react.js
+25
-11
25 additions, 11 deletions
frontend/app/query_builder/QueryVisualization.react.js
with
32 additions
and
11 deletions
frontend/app/css/query_builder.css
+
7
−
0
View file @
8e9166ff
...
...
@@ -230,6 +230,13 @@
margin-right
:
auto
;
}
.QueryError-iconWrapper
{
padding
:
2em
;
margin-bottom
:
2em
;
border
:
4px
solid
var
(
--error-color
);
border-radius
:
99px
;
}
.QueryError-image
{
background-repeat
:
no-repeat
;
margin-bottom
:
1rem
;
...
...
This diff is collapsed.
Click to expand it.
frontend/app/query_builder/QueryVisualization.react.js
+
25
−
11
View file @
8e9166ff
...
...
@@ -165,18 +165,32 @@ export default React.createClass({
);
}
else
{
if
(
this
.
props
.
result
.
error
)
{
viz
=
(
<
div
className
=
"
QueryError flex full align-center
"
>
<
div
className
=
"
QueryError
-image QueryError-image--queryError
"
><
/div
>
<
div
className
=
"
QueryError-
message text-centered
"
>
<
h1
className
=
"
text-bold
"
>
We
couldn
'
t understand your question.</h1
>
<p className="QueryError-messageText">Your question might contain an invalid parameter or some other error.</p
>
<button className="Button" onClick={() => window.history.back() }
>
Back to last run
<
/butto
n>
if
(
this
.
props
.
card
.
dataset_query
&&
this
.
props
.
card
.
dataset_query
.
type
===
'
native
'
)
{
viz
=
(
<
div
className
=
"
QueryError
flex full align-center text-error
"
>
<
div
className
=
"
QueryError-
iconWrapper
"
>
<
svg
className
=
"
QueryError-icon
"
viewBox
=
"
0 0 32 32
"
width
=
"
64
"
height
=
"
64
"
fill
=
"
currentcolor
"
>
<
path
d
=
"
M4 8 L8 4 L16 12 L24 4 L28 8 L20 16 L28 24 L24 28 L16 20 L8 28 L4 24 L12 16 z
"
><
/path
>
<
/svg
>
<
/div
>
<
span
className
=
"
QueryError-message
"
>
{
this
.
props
.
result
.
error
}
<
/spa
n
>
<
/div
>
</div>
);
);
}
else
{
viz
=
(
<
div
className
=
"
QueryError flex full align-center
"
>
<
div
className
=
"
QueryError-image QueryError-image--queryError
"
><
/div
>
<
div
className
=
"
QueryError-message text-centered
"
>
<
h1
className
=
"
text-bold
"
>
We
couldn
'
t understand your question.</h1>
<p className="QueryError-messageText">Your question might contain an invalid parameter or some other error.</p>
<button className="Button" onClick={() => window.history.back() }>
Back to last run
</button>
</div>
</div>
);
}
} else if (this.props.result.data) {
if (this.props.isObjectDetail) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment