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

fix: dashboard promote buttons disabled during deploy #1669

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

bpoland
Copy link
Contributor

@bpoland bpoland commented Nov 24, 2021

  • keep promote and abort buttons enabled while deploying
  • disable them at all other times
  • also, only enable retry button when Rollout is degraded

Fixes #1581

Signed-off-by: Ben Poland [email protected]

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

- keep promote and abort buttons enabled while deploying
- disable them at all other times
- also, only enable retry button when Rollout is degraded

Fixes argoproj#1581

Signed-off-by: Ben Poland <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Nov 24, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -36,6 +37,7 @@ export const RolloutActionButton = (props: {action: RolloutAction; rollout: Roll
label: 'RETRY',
icon: 'fa-redo-alt',
action: api.rolloutServiceRetryRollout,
disabled: props.rollout.status !== RolloutStatus.Degraded,
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this added? you can retry degraded rollout as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I think the button should only be enabled when the rollout is degraded, right? The double negative is a little confusing :)

Copy link
Contributor

Choose a reason for hiding this comment

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

i misread the line..yes you are correct

@alexmt alexmt merged commit c291d2d into argoproj:master Jan 4, 2022
@bpoland bpoland deleted the fix-dashboard-button-disable branch January 4, 2022 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard should allow promote/promote-full at any time
3 participants