gitlab-exporter 11.12.0 → 11.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a32d2d434759d54a6661dc050113ac3d20eeaaf5abc453db48926984755e658
4
- data.tar.gz: 1911db0aaa4991db904318248cfb2e144bcc7725ac03a860eafde62574037262
3
+ metadata.gz: d1df01fb9af6b719ede7d27727599d47dcfd46baf27fd4b31c20540803340011
4
+ data.tar.gz: 90513cdcb659dc6e08f00b90d1042df60c14854d65a90a5603270e2b06324452
5
5
  SHA512:
6
- metadata.gz: a50c437ce7c0a7571c65364541a317fba5d469d5b4f21e21cd9f447291e8c3a6c7ecc9a131858259c23f47d11feb63501d5d7f35e906c0f819a63c26c3270f08
7
- data.tar.gz: e79d81db7723357408c28eccfd0c4470e7644adda4314442b9f19474005cc612752c1270e64b7898f5f287ddcdb9ee777738284ed54525ba3ad16c3218a54921
6
+ metadata.gz: 0bf8914ed4a7ac133c5cef0f34b5a49307d84b3c95eece363ea627d0e80ecb65e976c01ccb73cd58f4e611654d583c099bd10b6944d78b1dbd95308c98d61c70
7
+ data.tar.gz: ee65ee08b42d0c1b4313d72202d6849c9d9e6e45124a87eab4f0c66d8aebd360d4212a85b4889940399908045fba07fc0eb1798688939ad7c35b44c28d12dae2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlab-exporter (11.12.0)
4
+ gitlab-exporter (11.14.0)
5
5
  connection_pool (= 2.2.5)
6
6
  faraday (~> 1.8.0)
7
7
  pg (= 1.2.3)
@@ -162,6 +162,51 @@ module GitLab
162
162
  container_repositories_import_aborted: {
163
163
  select: :container_repositories,
164
164
  where: "migration_state = 'import_aborted'"
165
+ },
166
+ container_repositories_migration_all_free: {
167
+ select: :container_repositories,
168
+ where: <<~SQL
169
+ migration_plan IN ('free', 'early_adopter')
170
+ OR migration_plan IS NULL
171
+ SQL
172
+ },
173
+ container_repositories_migration_pending_free: {
174
+ select: :container_repositories,
175
+ where: <<~SQL
176
+ migration_state <> 'import_done'
177
+ AND created_at < '2022-01-23 00:00:00'
178
+ AND (migration_plan IN ('free', 'early_adopter')
179
+ OR migration_plan IS NULL)
180
+ SQL
181
+ },
182
+ container_repositories_import_done_free: {
183
+ select: :container_repositories,
184
+ where: <<~SQL
185
+ migration_state = 'import_done'
186
+ AND (migration_plan IN ('free', 'early_adopter')
187
+ OR migration_plan IS NULL)
188
+ SQL
189
+ },
190
+ container_repositories_stalled_pre_importing: {
191
+ select: :container_repositories,
192
+ where: <<~SQL
193
+ migration_state = 'pre_importing'
194
+ AND (COALESCE(migration_pre_import_started_at, '01-01-1970') < (now() - INTERVAL '10 minutes'))
195
+ SQL
196
+ },
197
+ container_repositories_stalled_pre_import_done: {
198
+ select: :container_repositories,
199
+ where: <<~SQL
200
+ migration_state = 'pre_import_done'
201
+ AND (COALESCE(migration_pre_import_done_at, '01-01-1970') < (now() - INTERVAL '5 minutes'))
202
+ SQL
203
+ },
204
+ container_repositories_stalled_importing: {
205
+ select: :container_repositories,
206
+ where: <<~SQL
207
+ migration_state = 'importing'
208
+ AND (COALESCE(migration_import_started_at, '01-01-1970') < (now() - INTERVAL '5 minutes'))
209
+ SQL
165
210
  }
166
211
  }.freeze
167
212
 
@@ -1,5 +1,5 @@
1
1
  module GitLab
2
2
  module Exporter
3
- VERSION = "11.12.0".freeze
3
+ VERSION = "11.14.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.12.0
4
+ version: 11.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Carranza