gitlab-exporter 11.11.0 → 11.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitlab_exporter/database/row_count.rb +55 -0
- data/lib/gitlab_exporter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5402d26356c57a44d17cfe4bc0671a18db3c80b7fabc3452446f57a58dd26f0
|
4
|
+
data.tar.gz: 70998dd64701d73c13aabb21bba32d66010cb316a60edaf251572950a6408dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f81d4d8b7394e8f58169a02886371ff0c70b0137511270cb26169473079b05b4407b8decd4ee376579606be9c2379b16494c8f2c32264a62c6d7bb9711624fb
|
7
|
+
data.tar.gz: 82f705c5933bd7671010c2336dc2bff6d06dc90957c662ebf3c19af9a7dc46b6905ff7da4f5074eb7e4f44ce5a2c9d18f060e115e039303a8adbb007f6d4b7ae
|
data/Gemfile.lock
CHANGED
@@ -131,6 +131,61 @@ module GitLab
|
|
131
131
|
visibility_level: {},
|
132
132
|
root: { definition: "(parent_id IS NULL)" }
|
133
133
|
}
|
134
|
+
},
|
135
|
+
container_repositories_migration_pending: {
|
136
|
+
select: :container_repositories,
|
137
|
+
where: <<~SQL
|
138
|
+
migration_state <> 'import_done'
|
139
|
+
AND created_at < '2022-01-23 00:00:00'
|
140
|
+
SQL
|
141
|
+
},
|
142
|
+
container_repositories_pre_importing: {
|
143
|
+
select: :container_repositories,
|
144
|
+
where: "migration_state = 'pre_importing'"
|
145
|
+
},
|
146
|
+
container_repositories_importing: {
|
147
|
+
select: :container_repositories,
|
148
|
+
where: "migration_state = 'importing'"
|
149
|
+
},
|
150
|
+
container_repositories_pre_import_done: {
|
151
|
+
select: :container_repositories,
|
152
|
+
where: "migration_state = 'pre_import_done'"
|
153
|
+
},
|
154
|
+
container_repositories_import_done: {
|
155
|
+
select: :container_repositories,
|
156
|
+
where: "migration_state = 'import_done'"
|
157
|
+
},
|
158
|
+
container_repositories_import_skipped: {
|
159
|
+
select: :container_repositories,
|
160
|
+
where: "migration_state = 'import_skipped'"
|
161
|
+
},
|
162
|
+
container_repositories_import_aborted: {
|
163
|
+
select: :container_repositories,
|
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
|
134
189
|
}
|
135
190
|
}.freeze
|
136
191
|
|