Skip to content
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

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

arunjaindev
Copy link
Contributor

@arunjaindev arunjaindev commented Apr 2, 2025

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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

  • Test A
  • Test B

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@github-actions github-actions bot added the PR:Issue-verification-failed PR:Issue-verification-failed label Apr 2, 2025
@@ -157,6 +157,7 @@ export default function NavigationRoutes() {
isManifestScanningEnabled: false,
canOnlyViewPermittedEnvOrgLevel: false,
featureGitOpsFlags: structuredClone(DEFAULT_GIT_OPS_FEATURE_FLAGS),
deployUnhibernatedAppOnly: false,
Copy link
Member

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,
Copy link
Member

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}
Copy link
Member

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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add truncate

@github-actions github-actions bot added PR:Ready-to-Review PR:Ready-to-Review and removed PR:Issue-verification-failed PR:Issue-verification-failed labels Apr 10, 2025
@@ -1482,6 +1483,7 @@ export default function EnvTriggerView({ filteredAppIds, isVirtualEnv }: AppGrou
...(getRuntimeParamsPayload
? { runtimeParamsPayload: getRuntimeParamsPayload(runtimeParams[currentAppId] ?? []) }
: {}),
skipIfHibernated: skipIfHibernated,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

AbhishekA1509
AbhishekA1509 previously approved these changes Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR:Ready-to-Review PR:Ready-to-Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Provide a solution deploy only unhibernated apps
2 participants