Skip to content

Commit

Permalink
Added usage for InactiveDomain Invariant (uber#5144)
Browse files Browse the repository at this point in the history
  • Loading branch information
agautam478 authored Mar 13, 2023
1 parent 45c3cee commit b0cbe1c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
12 changes: 8 additions & 4 deletions common/reconciliation/invariant/collection_enumer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions common/reconciliation/invariant/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ const (
CollectionMutableState Collection = 0
// CollectionHistory is the collection of invariants relating to history
CollectionHistory Collection = 1
// CollectionDomain is the collection of invariants relating to domain status
CollectionDomain Collection = 2
)

type (
Expand Down
3 changes: 3 additions & 0 deletions service/worker/scanner/executions/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func (st ScanType) ToInvariants(collections []invariant.Collection) []InvariantF
case ConcreteExecutionType:
for _, collection := range collections {
switch collection {
case invariant.CollectionDomain:
fns = append(fns, invariant.NewInactiveDomainExists)

case invariant.CollectionHistory:

fns = append(fns, invariant.NewHistoryExists)
Expand Down

0 comments on commit b0cbe1c

Please sign in to comment.