Skip to content

Commit

Permalink
remove resolution link prop
Browse files Browse the repository at this point in the history
  • Loading branch information
timifasubaa committed Jun 14, 2018
1 parent 7a107fa commit 7fa5559
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion superset/assets/src/chart/Chart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ class Chart extends React.PureComponent {
<StackTraceMessage
message={this.props.chartAlert}
queryResponse={this.props.queryResponse}
resolutionLink={this.props.resolutionLink}
/>
}

Expand Down
2 changes: 0 additions & 2 deletions superset/assets/src/components/StackTraceMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 5 additions & 3 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1083,9 +1083,9 @@ def generate_json(self, datasource_type, datasource_id, form_data,
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(
Expand Down Expand Up @@ -2703,7 +2703,9 @@ def sliceQuery(self, slice_id):
"""
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)


Expand Down

0 comments on commit 7fa5559

Please sign in to comment.