Skip to content

Commit

Permalink
Ensure exported snapshot is set with latest execution version
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBurgess committed Mar 5, 2024
1 parent d072a57 commit b9a1790
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/dashboard/src/components/SaveSnapshotButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
DashboardDataModeCLISnapshot,
DashboardSnapshotMetadata,
} from "@powerpipe/types";
import { EXECUTION_SCHEMA_VERSION_20240130 } from "@powerpipe/constants/versions";
import {
filterToSnapshotMetadata,
groupingToSnapshotMetadata,
Expand Down Expand Up @@ -48,6 +49,7 @@ const SaveSnapshotButton = () => {
metadata.view.group_by = groupingToSnapshotMetadata(groupingConfig);
}
withMetadata.metadata = metadata;
withMetadata.schema_version = EXECUTION_SCHEMA_VERSION_20240130;
}

const blob = new Blob([JSON.stringify(withMetadata)], {
Expand Down

0 comments on commit b9a1790

Please sign in to comment.