Skip to content

Identical Stacks can interfere with each other's Merge Queue #1121

@eldad87

Description

@eldad87

Currently,
I'm able to create 2 stacks for the same repo & branch.
If Merge-Queue is enabled on both, they can interfere with each other.

Suggestion:
Merge-Queue can be enabled only once for a given set of Repo & Branch, regardless of the stack environment.

module Shipit
  class Stack < Record
    module NoDeployedCommit

...

    validates :merge_queue_enabled, uniqueness: {
        scope: %i(repository branch),
        message: 'cannot be used more than once with this repository and branch. Check (archived) stacks.'
    }

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions