Skip to content

feat: handle update build for dynamic params #18226

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

Merged
merged 16 commits into from
Jun 5, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: format
  • Loading branch information
jaaydenh committed Jun 5, 2025
commit 9878ade44034fd5ac05a39906e7a62ce24a6e5cd
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const WorkspaceMoreActions: FC<WorkspaceMoreActionsProps> = ({
onClose={() => setIsDownloadDialogOpen(false)}
/>

{(!isDynamicParametersEnabled || optOutQuery.data?.optedOut) ? (
{!isDynamicParametersEnabled || optOutQuery.data?.optedOut ? (
<UpdateBuildParametersDialog
missedParameters={
changeVersionMutation.error instanceof MissingBuildParameters
Expand Down
3 changes: 2 additions & 1 deletion site/src/modules/workspaces/WorkspaceUpdateDialogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ const MissingBuildParametersDialog: FC<MissingBuildParametersDialogProps> = ({
}

// If dynamic parameters experiment is not enabled, or if opted out, use classic dialog
const shouldUseClassicDialog = !isDynamicParametersEnabled || optOutQuery.data?.optedOut;
const shouldUseClassicDialog =
!isDynamicParametersEnabled || optOutQuery.data?.optedOut;

return shouldUseClassicDialog ? (
<UpdateBuildParametersDialog
Expand Down
Loading