-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: add support for skipping hibernated apps in bulk deploy #2613
base: develop
Are you sure you want to change the base?
Conversation
…nto feat/skip-hibernated-deploy
…nto feat/skip-hibernated-deploy
@@ -157,6 +157,7 @@ export default function NavigationRoutes() { | |||
isManifestScanningEnabled: false, | |||
canOnlyViewPermittedEnvOrgLevel: false, | |||
featureGitOpsFlags: structuredClone(DEFAULT_GIT_OPS_FEATURE_FLAGS), | |||
deployUnhibernatedAppOnly: false, |
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.
Pls move to const
@@ -339,6 +340,7 @@ export default function NavigationRoutes() { | |||
isManifestScanningEnabled: false, | |||
canOnlyViewPermittedEnvOrgLevel: false, | |||
featureGitOpsFlags: structuredClone(DEFAULT_GIT_OPS_FEATURE_FLAGS), | |||
deployUnhibernatedAppOnly: false, |
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.
Lets derive the fallbacks from newly made const as suggested.
@@ -892,7 +915,7 @@ export default function BulkCDTrigger({ | |||
closePopup={closeBulkCDModal} | |||
responseList={responseList} | |||
isLoading={isLoading} | |||
onClickRetryBuild={onClickTriggerBulkCD} | |||
onClickRetryBuild={triggerBulkCD} |
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.
This is a bug we are not sending appsToRetry here
<button | ||
type="button" | ||
className="dc__transparent flex icon-dim-24" | ||
<h2 className="fs-16 fw-6 lh-1-5 m-0">Deploy to {appList[0].envName}</h2> |
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.
We should add truncate
@@ -1482,6 +1483,7 @@ export default function EnvTriggerView({ filteredAppIds, isVirtualEnv }: AppGrou | |||
...(getRuntimeParamsPayload | |||
? { runtimeParamsPayload: getRuntimeParamsPayload(runtimeParams[currentAppId] ?? []) } | |||
: {}), | |||
skipIfHibernated: skipIfHibernated, |
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.
skipIfHibernated: skipIfHibernated, | |
skipIfHibernated, |
@@ -848,8 +856,22 @@ export default function BulkCDTrigger({ | |||
|
|||
const renderFooterSection = (): JSX.Element => { | |||
const isDeployButtonDisabled: boolean = isDeployDisabled() | |||
const showSkipHibernatedCheckbox = | |||
stage === DeploymentNodeType.CD && !!SkipHibernatedCheckbox && canFetchHelmAppStatus |
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.
Pls confirm if we should show this in PRE/POST CD
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.
done
|
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes devtron-labs/devtron#6359
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: