Skip to content

Commit

Permalink
fix backfill url
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Oct 2, 2023
1 parent efea247 commit 38485ea
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ export async function showBackfillSuccessToast(
backfillId: string,
isAssetBackfill: boolean,
) {
const url = isAssetBackfill
? `/overview/backfills/${backfillId}`
: runsPathWithFilters([
{
token: 'tag',
value: `dagster/backfill=${backfillId}`,
},
]);
const [pathname, search] = url.split('?');
await showSharedToaster({
intent: 'success',
message: (
Expand All @@ -80,14 +89,7 @@ export async function showBackfillSuccessToast(
),
action: {
text: 'View',
href: isAssetBackfill
? `/overview/backfills/${backfillId}`
: runsPathWithFilters([
{
token: 'tag',
value: `dagster/backfill=${backfillId}`,
},
]),
href: history.createHref({pathname, search}),
},
});
}
Expand Down

0 comments on commit 38485ea

Please sign in to comment.