uffizzi_core 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/lib/uffizzi_core/concerns/models/deployment.rb +1 -1
- data/app/lib/uffizzi_core/concerns/models/event.rb +1 -1
- data/app/services/uffizzi_core/activity_item_service.rb +1 -1
- data/app/services/uffizzi_core/manage_activity_items_service.rb +2 -5
- data/lib/uffizzi_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cdb60e96f3b8c14cd7252cd6678a477c3310bf92ed4399e2937226254372d8d0
|
|
4
|
+
data.tar.gz: 8dde8627ca3a6cab2adc2d6626e17f31209d72f47f708be1574ab8a1f096dbc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 011b91d508325ff8fed51a194dcecb515a46993e463f12e5c3a42b46354ab07662c7320669a535918281043a8bf7152ec58cda36f9da52413c433df2a0431c47
|
|
7
|
+
data.tar.gz: c2c87e1cb3c22260c77c7ad1c5c6a36875cd0a470a98bf039165407975c5312cf562cb8c64166d7768d7480a04de55dbfafeb04035f2b6c246f92178d208ec6d
|
|
@@ -9,7 +9,7 @@ module UffizziCore::Concerns::Models::Event
|
|
|
9
9
|
|
|
10
10
|
self.table_name = UffizziCore.table_names[:events]
|
|
11
11
|
|
|
12
|
-
enumerize :state, in: [:waiting, :queued, :successful, :deployed, :failed, :building, :timeout, :cancelled, :deploying],
|
|
12
|
+
enumerize :state, in: [:waiting, :queued, :successful, :deployed, :failed, :building, :timeout, :cancelled, :deploying, :failed_build],
|
|
13
13
|
predicates: true, scope: true
|
|
14
14
|
|
|
15
15
|
belongs_to :activity_item, touch: true
|
|
@@ -72,7 +72,7 @@ class UffizziCore::ActivityItemService
|
|
|
72
72
|
def completed?(activity_item)
|
|
73
73
|
return true if activity_item.nil?
|
|
74
74
|
|
|
75
|
-
last_event = activity_item.events.last
|
|
75
|
+
last_event = activity_item.events.order_by_id.last
|
|
76
76
|
COMPLETED_STATES.include?(last_event.state)
|
|
77
77
|
end
|
|
78
78
|
|
|
@@ -15,10 +15,7 @@ class UffizziCore::ManageActivityItemsService
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def container_status_items
|
|
18
|
-
|
|
19
|
-
containers_replicas = build_containers_replicas
|
|
20
|
-
|
|
21
|
-
build_container_status_items(network_connectivities, containers_replicas)
|
|
18
|
+
build_container_status_items(build_network_connectivities, build_containers_replicas)
|
|
22
19
|
end
|
|
23
20
|
|
|
24
21
|
private
|
|
@@ -127,7 +124,7 @@ class UffizziCore::ManageActivityItemsService
|
|
|
127
124
|
network_connectivity = Hashie::Mash.new(JSON.parse(deployment_network_connectivity))
|
|
128
125
|
containers_network_connectivity = network_connectivity&.containers
|
|
129
126
|
|
|
130
|
-
containers_network_connectivity[container.id.to_s]
|
|
127
|
+
containers_network_connectivity[container.id.to_s] unless containers_network_connectivity.nil?
|
|
131
128
|
end
|
|
132
129
|
|
|
133
130
|
def deployment_network_connectivity
|
data/lib/uffizzi_core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: uffizzi_core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josh Thurman
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2023-03-
|
|
12
|
+
date: 2023-03-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: aasm
|