-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat(feature-flags): migrate 3 env-flags to AppConfig-backed runtime flags #5086
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
Changes from all commits
f6376eb
4745d51
850bd7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ import { createLogger } from '@sim/logger' | |
| import { decodeVfsPathSegments, encodeVfsPathSegments } from '@/lib/copilot/vfs/path-utils' | ||
| import { resolveWorkflowAliasForWorkspace } from '@/lib/copilot/vfs/workflow-alias-resolver' | ||
| import { isPlanAliasPath, workflowAliasSandboxPath } from '@/lib/copilot/vfs/workflow-aliases' | ||
| import { isMothershipBetaFeaturesEnabled } from '@/lib/core/config/env-flags' | ||
| import { isFeatureEnabled } from '@/lib/core/config/feature-flags' | ||
| import { queryRows } from '@/lib/table/rows/service' | ||
| import { getTableById, listTables } from '@/lib/table/service' | ||
| import { listWorkspaceFileFolders } from '@/lib/uploads/contexts/workspace/workspace-file-folder-manager' | ||
|
|
@@ -71,10 +71,11 @@ async function resolveInputFiles( | |
| ): Promise<SandboxFile[]> { | ||
| const sandboxFiles: SandboxFile[] = [] | ||
| let totalSize = 0 | ||
| const betaEnabled = await isFeatureEnabled('mothership-beta') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
cursor[bot] marked this conversation as resolved.
|
||
|
|
||
| if (inputFiles?.length && workspaceId) { | ||
| const allFiles = await listWorkspaceFiles(workspaceId, { | ||
| includeReservedSystemFiles: isMothershipBetaFeaturesEnabled, | ||
| includeReservedSystemFiles: betaEnabled, | ||
| }) | ||
| for (const fileRef of inputFiles) { | ||
| const filePath = | ||
|
|
@@ -136,11 +137,11 @@ async function resolveInputFiles( | |
|
|
||
| if (inputDirectories?.length && workspaceId) { | ||
| const folders = await listWorkspaceFileFolders(workspaceId, { | ||
| includeReservedSystemFolders: isMothershipBetaFeaturesEnabled, | ||
| includeReservedSystemFolders: betaEnabled, | ||
| }) | ||
| const allFiles = await listWorkspaceFiles(workspaceId, { | ||
| folders, | ||
| includeReservedSystemFiles: isMothershipBetaFeaturesEnabled, | ||
| includeReservedSystemFiles: betaEnabled, | ||
| }) | ||
| for (const dirRef of inputDirectories) { | ||
| const dirPath = | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.