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

Add lock_level property to stacks #909

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

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
app/models/shipit/stack.rb Outdated Show resolved Hide resolved
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.

app/models/shipit/stack.rb Outdated Show resolved Hide resolved
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