Skip to content

Commit d11a4dc

Browse files
Remove per_event job usage data for no use
Signed-off-by: Frantisek Lachman <[email protected]>
1 parent dcb8957 commit d11a4dc

File tree

1 file changed

+0
-138
lines changed

1 file changed

+0
-138
lines changed

packit_service/service/api/usage.py

-138
Original file line numberDiff line numberDiff line change
@@ -176,153 +176,36 @@ def get_usage_data(datetime_from=None, datetime_to=None, top=10):
176176
jobs:
177177
copr_build_targets:
178178
job_runs: 530955
179-
per_event:
180-
branch_push:
181-
job_runs: 48160
182-
top_projects_by_job_runs:
183-
https://github.com/osandov/drgn: 5812
184-
https://github.com/osbuild/osbuild: 7078
185-
https://github.com/osbuild/osbuild-composer: 12847
186-
issue:
187-
job_runs: 0
188-
top_projects_by_job_runs: {}
189-
pull_request:
190-
job_runs: 481561
191-
top_projects_by_job_runs:
192-
https://github.com/osbuild/osbuild: 31108
193-
https://github.com/osbuild/osbuild-composer: 93939
194-
https://github.com/systemd/systemd: 60158
195-
release:
196-
job_runs: 1234
197-
top_projects_by_job_runs:
198-
https://github.com/facebook/folly: 340
199-
https://github.com/packit/ogr: 104
200-
https://github.com/packit/packit: 174
201179
top_projects_by_job_runs:
202180
https://github.com/osbuild/osbuild: 38186
203181
https://github.com/osbuild/osbuild-composer: 106786
204182
https://github.com/systemd/systemd: 60158
205183
koji_build_targets:
206184
job_runs: 1466
207-
per_event:
208-
branch_push:
209-
job_runs: 56
210-
top_projects_by_job_runs:
211-
https://github.com/besser82/libxcrypt: 46
212-
https://github.com/ostreedev/ostree: 10
213-
issue:
214-
job_runs: 0
215-
top_projects_by_job_runs: {}
216-
pull_request:
217-
job_runs: 1410
218-
top_projects_by_job_runs:
219-
https://github.com/containers/podman: 297
220-
https://github.com/packit/ogr: 509
221-
https://github.com/rear/rear: 267
222-
release:
223-
job_runs: 0
224-
top_projects_by_job_runs: {}
225185
top_projects_by_job_runs:
226186
https://github.com/containers/podman: 297
227187
https://github.com/packit/ogr: 509
228188
https://github.com/rear/rear: 267
229189
srpm_builds:
230190
job_runs: 103695
231-
per_event:
232-
branch_push:
233-
job_runs: 7084
234-
top_projects_by_job_runs:
235-
https://github.com/osbuild/osbuild-composer: 646
236-
https://github.com/packit/packit: 549
237-
https://github.com/rhinstaller/anaconda: 1015
238-
issue:
239-
job_runs: 0
240-
top_projects_by_job_runs: {}
241-
pull_request:
242-
job_runs: 96305
243-
top_projects_by_job_runs:
244-
https://github.com/cockpit-project/cockpit: 6915
245-
https://github.com/packit/hello-world: 10401
246-
https://github.com/systemd/systemd: 14489
247-
release:
248-
job_runs: 306
249-
top_projects_by_job_runs:
250-
https://github.com/facebook/folly: 40
251-
https://github.com/packit/ogr: 34
252-
https://github.com/packit/packit: 54
253191
top_projects_by_job_runs:
254192
https://github.com/cockpit-project/cockpit: 6937
255193
https://github.com/packit/hello-world: 10409
256194
https://github.com/systemd/systemd: 14489
257195
sync_release_runs:
258196
job_runs: 419
259-
per_event:
260-
branch_push:
261-
job_runs: 0
262-
top_projects_by_job_runs: {}
263-
issue:
264-
job_runs: 22
265-
top_projects_by_job_runs:
266-
https://github.com/martinpitt/python-dbusmock: 3
267-
https://github.com/packit/packit: 3
268-
https://github.com/packit/specfile: 6
269-
pull_request:
270-
job_runs: 0
271-
top_projects_by_job_runs: {}
272-
release:
273-
job_runs: 397
274-
top_projects_by_job_runs:
275-
https://github.com/martinpitt/python-dbusmock: 35
276-
https://github.com/packit/packit: 35
277-
https://github.com/rhinstaller/anaconda: 34
278197
top_projects_by_job_runs:
279198
https://github.com/martinpitt/python-dbusmock: 38
280199
https://github.com/packit/packit: 38
281200
https://github.com/rhinstaller/anaconda: 34
282201
tft_test_run_targets:
283202
job_runs: 150525
284-
per_event:
285-
branch_push:
286-
job_runs: 441
287-
top_projects_by_job_runs:
288-
https://github.com/oamg/convert2rhel: 209
289-
https://github.com/packit-service/packit: 50
290-
https://github.com/python-bugzilla/python-bugzilla: 88
291-
issue:
292-
job_runs: 0
293-
top_projects_by_job_runs: {}
294-
pull_request:
295-
job_runs: 150026
296-
top_projects_by_job_runs:
297-
https://github.com/cockpit-project/cockpit: 21157
298-
https://github.com/oamg/convert2rhel: 15297
299-
https://github.com/teemtee/tmt: 22136
300-
release:
301-
job_runs: 58
302-
top_projects_by_job_runs:
303-
https://github.com/fedora-infra/fedora-messaging: 8
304-
https://github.com/fedora-iot/zezere: 8
305-
https://github.com/psss/tmt: 21
306203
top_projects_by_job_runs:
307204
https://github.com/cockpit-project/cockpit: 21157
308205
https://github.com/oamg/convert2rhel: 15506
309206
https://github.com/teemtee/tmt: 22136
310207
vm_image_build_targets:
311208
job_runs: 2
312-
per_event:
313-
branch_push:
314-
job_runs: 0
315-
top_projects_by_job_runs: {}
316-
issue:
317-
job_runs: 0
318-
top_projects_by_job_runs: {}
319-
pull_request:
320-
job_runs: 2
321-
top_projects_by_job_runs:
322-
https://github.com/packit/ogr: 2
323-
release:
324-
job_runs: 0
325-
top_projects_by_job_runs: {}
326209
top_projects_by_job_runs:
327210
https://github.com/packit/ogr: 2
328211
@@ -350,27 +233,6 @@ def get_usage_data(datetime_from=None, datetime_to=None, top=10):
350233
job_result_model=job_model,
351234
),
352235
)
353-
jobs[job_model.__tablename__]["per_event"] = {}
354-
jobs[job_model.__tablename__]["per_event"].update(
355-
{
356-
project_event_type.value: dict(
357-
job_runs=GitProjectModel.get_job_usage_numbers_count(
358-
datetime_from=datetime_from,
359-
datetime_to=datetime_to,
360-
job_result_model=job_model,
361-
project_event_type=project_event_type,
362-
),
363-
top_projects_by_job_runs=GitProjectModel.get_job_usage_numbers(
364-
datetime_from=datetime_from,
365-
datetime_to=datetime_to,
366-
top=top,
367-
job_result_model=job_model,
368-
project_event_type=project_event_type,
369-
),
370-
)
371-
for project_event_type in ProjectEventModelType
372-
}
373-
)
374236

375237
return dict(
376238
all_projects=dict(

0 commit comments

Comments
 (0)