Skip to content

Commit

Permalink
Merge pull request apache#126 from kristw/kristw-cherry-verbose
Browse files Browse the repository at this point in the history
[bugfix] chart legend verbose name
  • Loading branch information
kristw committed Nov 9, 2018
2 parents 96e09a1 + c451065 commit a52fcdd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion superset/assets/src/dashboard/actions/dashboardState.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export function saveDashboardRequest(data, id, saveType) {
SupersetClient.post({
endpoint: `/superset/${path}/${id}/`,
postPayload: { data },
parseMethod: null,
})
.then(response =>
Promise.all([
Expand Down
2 changes: 1 addition & 1 deletion superset/assets/src/visualizations/nvd3/transformProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function transformProps(chartProps) {
const data = Array.isArray(rawData)
? rawData.map(row => ({
...row,
key: formatLabel(row.key, datasource.verbose_map),
key: formatLabel(row.key, datasource.verboseMap),
}))
: rawData;

Expand Down
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ def save_dash(self, dashboard_id):
session.merge(dash)
session.commit()
session.close()
return 'SUCCESS'
return json_success(json.dumps({'status': 'SUCCESS'}))

@staticmethod
def _set_dash_metadata(dashboard, data):
Expand Down

0 comments on commit a52fcdd

Please sign in to comment.