mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
remove resolution link prop
This commit is contained in:
@@ -221,7 +221,6 @@ class Chart extends React.PureComponent {
|
||||
<StackTraceMessage
|
||||
message={this.props.chartAlert}
|
||||
queryResponse={this.props.queryResponse}
|
||||
resolutionLink={this.props.resolutionLink}
|
||||
/>
|
||||
}
|
||||
|
||||
|
||||
@@ -7,11 +7,9 @@ const propTypes = {
|
||||
message: PropTypes.string,
|
||||
queryResponse: PropTypes.object,
|
||||
showStackTrace: PropTypes.bool,
|
||||
resolutionLink: PropTypes.string,
|
||||
};
|
||||
const defaultProps = {
|
||||
showStackTrace: false,
|
||||
resolutionLink: '',
|
||||
};
|
||||
|
||||
class StackTraceMessage extends React.PureComponent {
|
||||
|
||||
@@ -1083,9 +1083,9 @@ class Superset(BaseSupersetView):
|
||||
stacktrace=traceback.format_exc())
|
||||
|
||||
if not security_manager.datasource_access(viz_obj.datasource, g.user):
|
||||
perms_instruction_link = config.get('PERMISSION_INSTRUCTIONS_LINK')
|
||||
return json_error_response(
|
||||
DATASOURCE_ACCESS_ERR, status=404, link=perms_instruction_link)
|
||||
DATASOURCE_ACCESS_ERR, status=404, link=config.get(
|
||||
'PERMISSION_INSTRUCTIONS_LINK'))
|
||||
|
||||
if csv:
|
||||
return CsvResponse(
|
||||
@@ -2703,7 +2703,9 @@ class Superset(BaseSupersetView):
|
||||
"""
|
||||
viz_obj = self.get_viz(slice_id)
|
||||
if not security_manager.datasource_access(viz_obj.datasource):
|
||||
return json_error_response(DATASOURCE_ACCESS_ERR, status=401)
|
||||
return json_error_response(
|
||||
DATASOURCE_ACCESS_ERR, status=401, link=config.get(
|
||||
'PERMISSION_INSTRUCTIONS_LINK'))
|
||||
return self.get_query_string_response(viz_obj)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user