-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add lock_level property to stacks #909
base: main
Are you sure you want to change the base?
Conversation
This allows lock messages to be displayed as warnings in the banner without actually locking deploys.
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.
It's a good start, but there's likely some missing changes in view code.
One I can think of the the browser extension controller here:
render stack_status, layout: !request.xhr? |
stack.merge_status
, so I think it wouldn't display the "advisory lock" at all right now.
lock_reason.present? && lock_level != LOCK_LEVEL_ADVISORY | ||
end | ||
|
||
def soft_locked? |
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.
It's not clear to me without looking at the implementation whether soft_locked?
means "locked, and level == advisory", or just "locked, and level is at least advisory".
This allows lock messages to be displayed as warnings in the banner without actually
locking deploys.