Skip to content

Conversation

@mdeloupy
Copy link

This allows lock messages to be displayed as warnings in the banner without actually
locking deploys.

This allows lock messages to be displayed as warnings in the banner without actually
locking deploys.
@mdeloupy mdeloupy requested review from byroot and eapache and removed request for byroot and eapache June 11, 2019 18:41
Copy link
Contributor

@byroot byroot left a 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?
it renders a template based on the 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?
Copy link
Contributor

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".

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.

3 participants