-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3/n][Runs feed] Feature gating (#24621)
## Summary & Motivation Add feature gating for runs feed. Currently its commented out since we don't want to release it yet. ## How I Tested These Changes - Navigated to /runs - Navigated to a backfill - Clicked around RunsFeed making sure the routing worked correctly. ## Changelog NOCHANGELOG
- Loading branch information
Showing
11 changed files
with
83 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
js_modules/dagster-ui/packages/ui-core/src/runs/RunsFeedUtils.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {FeatureFlag} from 'shared/app/FeatureFlags.oss'; | ||
|
||
import {featureEnabled} from '../app/Flags'; | ||
|
||
export function getRunFeedPath() { | ||
return featureEnabled(FeatureFlag.flagRunsFeed) ? `/runs/` : `/runs-feed/`; | ||
} | ||
|
||
export function getBackfillPath(id: string) { | ||
// THis is hacky but basically we're dark launching runs-feed, so if we're on the runs-feed path, stay on it. | ||
if (location.pathname.includes('runs-feed')) { | ||
return `/runs-feed/b/${id}?tab=runs`; | ||
} | ||
return featureEnabled(FeatureFlag.flagRunsFeed) | ||
? `/runs/b/${id}?tab=runs` | ||
: `/overview/backfills/${id}`; | ||
} |
721126f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-dih0rcpkh-elementl.vercel.app
Built with commit 721126f.
This pull request is being automatically deployed with vercel-action