Skip to content

Commit 5f4c848

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

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
@@ -187,153 +187,36 @@ def get_usage_data(datetime_from=None, datetime_to=None, top=10):
187187
jobs:
188188
copr_build_targets:
189189
job_runs: 530955
190-
per_event:
191-
branch_push:
192-
job_runs: 48160
193-
top_projects_by_job_runs:
194-
https://github.com/osandov/drgn: 5812
195-
https://github.com/osbuild/osbuild: 7078
196-
https://github.com/osbuild/osbuild-composer: 12847
197-
issue:
198-
job_runs: 0
199-
top_projects_by_job_runs: {}
200-
pull_request:
201-
job_runs: 481561
202-
top_projects_by_job_runs:
203-
https://github.com/osbuild/osbuild: 31108
204-
https://github.com/osbuild/osbuild-composer: 93939
205-
https://github.com/systemd/systemd: 60158
206-
release:
207-
job_runs: 1234
208-
top_projects_by_job_runs:
209-
https://github.com/facebook/folly: 340
210-
https://github.com/packit/ogr: 104
211-
https://github.com/packit/packit: 174
212190
top_projects_by_job_runs:
213191
https://github.com/osbuild/osbuild: 38186
214192
https://github.com/osbuild/osbuild-composer: 106786
215193
https://github.com/systemd/systemd: 60158
216194
koji_build_targets:
217195
job_runs: 1466
218-
per_event:
219-
branch_push:
220-
job_runs: 56
221-
top_projects_by_job_runs:
222-
https://github.com/besser82/libxcrypt: 46
223-
https://github.com/ostreedev/ostree: 10
224-
issue:
225-
job_runs: 0
226-
top_projects_by_job_runs: {}
227-
pull_request:
228-
job_runs: 1410
229-
top_projects_by_job_runs:
230-
https://github.com/containers/podman: 297
231-
https://github.com/packit/ogr: 509
232-
https://github.com/rear/rear: 267
233-
release:
234-
job_runs: 0
235-
top_projects_by_job_runs: {}
236196
top_projects_by_job_runs:
237197
https://github.com/containers/podman: 297
238198
https://github.com/packit/ogr: 509
239199
https://github.com/rear/rear: 267
240200
srpm_builds:
241201
job_runs: 103695
242-
per_event:
243-
branch_push:
244-
job_runs: 7084
245-
top_projects_by_job_runs:
246-
https://github.com/osbuild/osbuild-composer: 646
247-
https://github.com/packit/packit: 549
248-
https://github.com/rhinstaller/anaconda: 1015
249-
issue:
250-
job_runs: 0
251-
top_projects_by_job_runs: {}
252-
pull_request:
253-
job_runs: 96305
254-
top_projects_by_job_runs:
255-
https://github.com/cockpit-project/cockpit: 6915
256-
https://github.com/packit/hello-world: 10401
257-
https://github.com/systemd/systemd: 14489
258-
release:
259-
job_runs: 306
260-
top_projects_by_job_runs:
261-
https://github.com/facebook/folly: 40
262-
https://github.com/packit/ogr: 34
263-
https://github.com/packit/packit: 54
264202
top_projects_by_job_runs:
265203
https://github.com/cockpit-project/cockpit: 6937
266204
https://github.com/packit/hello-world: 10409
267205
https://github.com/systemd/systemd: 14489
268206
sync_release_runs:
269207
job_runs: 419
270-
per_event:
271-
branch_push:
272-
job_runs: 0
273-
top_projects_by_job_runs: {}
274-
issue:
275-
job_runs: 22
276-
top_projects_by_job_runs:
277-
https://github.com/martinpitt/python-dbusmock: 3
278-
https://github.com/packit/packit: 3
279-
https://github.com/packit/specfile: 6
280-
pull_request:
281-
job_runs: 0
282-
top_projects_by_job_runs: {}
283-
release:
284-
job_runs: 397
285-
top_projects_by_job_runs:
286-
https://github.com/martinpitt/python-dbusmock: 35
287-
https://github.com/packit/packit: 35
288-
https://github.com/rhinstaller/anaconda: 34
289208
top_projects_by_job_runs:
290209
https://github.com/martinpitt/python-dbusmock: 38
291210
https://github.com/packit/packit: 38
292211
https://github.com/rhinstaller/anaconda: 34
293212
tft_test_run_targets:
294213
job_runs: 150525
295-
per_event:
296-
branch_push:
297-
job_runs: 441
298-
top_projects_by_job_runs:
299-
https://github.com/oamg/convert2rhel: 209
300-
https://github.com/packit-service/packit: 50
301-
https://github.com/python-bugzilla/python-bugzilla: 88
302-
issue:
303-
job_runs: 0
304-
top_projects_by_job_runs: {}
305-
pull_request:
306-
job_runs: 150026
307-
top_projects_by_job_runs:
308-
https://github.com/cockpit-project/cockpit: 21157
309-
https://github.com/oamg/convert2rhel: 15297
310-
https://github.com/teemtee/tmt: 22136
311-
release:
312-
job_runs: 58
313-
top_projects_by_job_runs:
314-
https://github.com/fedora-infra/fedora-messaging: 8
315-
https://github.com/fedora-iot/zezere: 8
316-
https://github.com/psss/tmt: 21
317214
top_projects_by_job_runs:
318215
https://github.com/cockpit-project/cockpit: 21157
319216
https://github.com/oamg/convert2rhel: 15506
320217
https://github.com/teemtee/tmt: 22136
321218
vm_image_build_targets:
322219
job_runs: 2
323-
per_event:
324-
branch_push:
325-
job_runs: 0
326-
top_projects_by_job_runs: {}
327-
issue:
328-
job_runs: 0
329-
top_projects_by_job_runs: {}
330-
pull_request:
331-
job_runs: 2
332-
top_projects_by_job_runs:
333-
https://github.com/packit/ogr: 2
334-
release:
335-
job_runs: 0
336-
top_projects_by_job_runs: {}
337220
top_projects_by_job_runs:
338221
https://github.com/packit/ogr: 2
339222
@@ -361,27 +244,6 @@ def get_usage_data(datetime_from=None, datetime_to=None, top=10):
361244
job_result_model=job_model,
362245
),
363246
)
364-
jobs[job_model.__tablename__]["per_event"] = {}
365-
jobs[job_model.__tablename__]["per_event"].update(
366-
{
367-
project_event_type.value: dict(
368-
job_runs=GitProjectModel.get_job_usage_numbers_count(
369-
datetime_from=datetime_from,
370-
datetime_to=datetime_to,
371-
job_result_model=job_model,
372-
project_event_type=project_event_type,
373-
),
374-
top_projects_by_job_runs=GitProjectModel.get_job_usage_numbers(
375-
datetime_from=datetime_from,
376-
datetime_to=datetime_to,
377-
top=top,
378-
job_result_model=job_model,
379-
project_event_type=project_event_type,
380-
),
381-
)
382-
for project_event_type in ProjectEventModelType
383-
}
384-
)
385247

386248
return dict(
387249
all_projects=dict(

0 commit comments

Comments
 (0)