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

[UI/deploy screen] call updateDeployInfo() more reliably to ensure recent deploys and restrictions reflect the choices #1385

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented Oct 18, 2024

Noticed that since the 'defaulting' to CODE thing was introduced a while back and/or the allowed stages functionality (not sure which) that the list of recent deploys doesn't filter to the selected stage as it does when stage is manually updated.

Similarly and perhaps more importantly it doesn't show deploy restrictions, meaning that you attempt the deploy only for it to fail with a scarier/red message.

This PR addresses that by calling updateDeployInfo() in a few further places, such as when build is chosen (which is what causes the stage list to be activated with the default).

Tested in CODE riff-raff and it's definitely better than it was.

@twrichards twrichards force-pushed the refresh-deploy-info-on-blur-of-build branch from ee6aef5 to 4a60021 Compare October 18, 2024 10:25
@twrichards twrichards marked this pull request as ready for review October 18, 2024 10:29
@twrichards twrichards requested a review from a team as a code owner October 18, 2024 10:29
@twrichards twrichards force-pushed the refresh-deploy-info-on-blur-of-build branch 2 times, most recently from 55f0fe5 to 2b2aa87 Compare October 18, 2024 10:56
…restrictions reflect the choices more so than now
@twrichards twrichards force-pushed the refresh-deploy-info-on-blur-of-build branch from 2b2aa87 to 609e509 Compare October 18, 2024 11:12
Copy link
Member

@akash1810 akash1810 left a comment

Choose a reason for hiding this comment

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

LGTM. Worth adding a before and after GIF to the PR description to further illustrate the problem being fixed?

@twrichards twrichards merged commit 979728c into main Oct 21, 2024
3 checks passed
@twrichards twrichards deleted the refresh-deploy-info-on-blur-of-build branch October 21, 2024 11:20
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.

2 participants