Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused dashboard fields in export #6787

Merged
merged 13 commits into from
Jun 9, 2020
Prev Previous commit
Use updated payload
  • Loading branch information
sarah-witt committed Jun 9, 2020
commit 6911c653a6d5701f838a04c8c18d546e7309d62e
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def export(ctx, url, integration, author):
location = path_join(get_root(), integration, 'assets', 'dashboards')
ensure_dir_exists(location)

manifest['assets']['dashboards'][payload['board_title']] = f'assets/dashboards/{file_name}'
manifest['assets']['dashboards'][new_payload['board_title']] = f'assets/dashboards/{file_name}'
write_manifest(manifest, integration)
else:
file_name = f"{file_name.replace(' ', '_')}.json"
Expand Down